aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <[email protected]>2015-03-24 13:57:52 +0000
committerArnaldo Carvalho de Melo <[email protected]>2015-03-24 15:19:06 +0000
commit2771984c7f5e6cab812e86ec152da4fb5f6df908 (patch)
treed64fc4817823894a6a069707812f16bd197c72fa /tools/perf/util/scripting-engines/trace-event-perl.c
parenttools lib traceevent: Handle %z in bprint format (diff)
downloadkernel-2771984c7f5e6cab812e86ec152da4fb5f6df908.tar.gz
kernel-2771984c7f5e6cab812e86ec152da4fb5f6df908.zip
tools lib traceevent: Add pevent_data_pid_from_comm()
There is a pevent_data_comm_from_pid() that returns the cmdline stored for a given pid in order for users to map pids to comms, but there's no method to convert a comm back to a pid. This is useful for filters that specify a comm instead of a PID (it's faster than searching each individual event). Add a way to retrieve a comm from a pid. Since there can be more than one pid associated to a comm, it returns a data structure that lets the user iterate over all the saved comms for a given pid. Signed-off-by: Steven Rostedt <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions