Re: [PATCH 4/9] tools lib traceevent: Add pevent_data_pid_from_comm()

2015-03-24 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 24, 2015 at 09:57:52AM -0400, Steven Rostedt escreveu: > From: "Steven Rostedt (Red Hat)" > > 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.

[PATCH 4/9] tools lib traceevent: Add pevent_data_pid_from_comm()

2015-03-24 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" 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

[PATCH 4/9] tools lib traceevent: Add pevent_data_pid_from_comm()

2015-03-24 Thread Steven Rostedt
From: Steven Rostedt (Red Hat) rost...@goodmis.org 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

Re: [PATCH 4/9] tools lib traceevent: Add pevent_data_pid_from_comm()

2015-03-24 Thread Arnaldo Carvalho de Melo
Em Tue, Mar 24, 2015 at 09:57:52AM -0400, Steven Rostedt escreveu: From: Steven Rostedt (Red Hat) rost...@goodmis.org 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