]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Add pid/tid filtering to report and script commands
authorDavid Ahern <dsahern@gmail.com>
Tue, 24 Mar 2015 15:52:41 +0000 (09:52 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 24 Mar 2015 16:02:46 +0000 (13:02 -0300)
commita5e973c3d900b6e161989d4a3562fd87ba664225
tree50864d78ede1a333b0b6fb8fe09486ed3f3ad1c2
parent5c42cc0d99cc69f6964cf0f88e79340dd363868f
perf tools: Add pid/tid filtering to report and script commands

The 'record' and 'top' tools already allow a user to specify a CSV of
pids and/or tids of tasks to collect data.

Add those options to the 'report' and 'script' analysis commands to only
consider samples related to the given pids/tids.

This is also inline with the existing comm option.

Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1427212361-7066-1-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Documentation/perf-report.txt
tools/perf/Documentation/perf-script.txt
tools/perf/builtin-report.c
tools/perf/builtin-script.c
tools/perf/util/symbol.c
tools/perf/util/symbol.h
tools/perf/util/thread.h