From: Steven Rostedt (Red Hat) Date: Tue, 24 Mar 2015 13:57:52 +0000 (-0400) Subject: tools lib traceevent: Add pevent_data_pid_from_comm() X-Git-Tag: omap-for-v4.2/o2_dc~146^2~57^2~7 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2771984c7f5e6cab812e86ec152da4fb5f6df908;p=pandora-kernel.git 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 Cc: Andrew Morton Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/r/20150324135923.001103479@goodmis.org Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed