aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <[email protected]>2015-03-24 09:57:52 -0400
committerArnaldo Carvalho de Melo <[email protected]>2015-03-24 12:19:06 -0300
commit2771984c7f5e6cab812e86ec152da4fb5f6df908 (patch)
treed64fc4817823894a6a069707812f16bd197c72fa /net/lapb/lapb_timer.c
parent55426296963c678650e26fc5e61ea75a5598ef5a (diff)
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 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions