]> git.openfabrics.org - ~emulex/infiniband.git/commit
perf machine: Add method to loop over threads and invoke handler
authorDavid Ahern <dsahern@gmail.com>
Sat, 28 Sep 2013 19:12:58 +0000 (13:12 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 11 Oct 2013 15:17:51 +0000 (12:17 -0300)
commit35feee19f9fda7447f51073b5be3f6d082b508f5
tree53a42e1713716a05659a7f4866b3141f10194927
parent5e2485b1a2813faa6b80007c653f8bbbed9457ee
perf machine: Add method to loop over threads and invoke handler

Loop over all threads within a machine - including threads moved to the
dead threads list -- and invoked a function.

This allows commands to run some specific function on each thread (eg.,
dump statistics) yet hides how the threads are maintained within the
machine.

Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1380395584-9025-2-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c
tools/perf/util/machine.h