perf probe: Support event name for --add option
Support event name syntax for --add option. This allows users to specify event name for each new event. The --add syntax is: perf probe --add '[EVENT=]SRC:LINE ARGS' or perf probe --add '[EVENT=]FUNC[+OFFS|%return|:RLN][@SRC] ARGS' e.g. ./perf probe --add myprobe1=schedule Note: currently group name is not supported yet, because it can cause name-space confliction with other tracepoint/ hw-breakpoint events. Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Jim Keniston <jkenisto@us.ibm.com> Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Cc: Christoph Hellwig <hch@infradead.org> Cc: Frank Ch. Eigler <fche@redhat.com> Cc: Jason Baron <jbaron@redhat.com> Cc: K.Prasad <prasad@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Cc: systemtap <systemtap@sources.redhat.com> Cc: DLE <dle-develop@lists.sourceforge.net> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <20091215153218.17436.84675.stgit@dhcp-100-2-132.bos.redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
bbbb521bc6
commit
af663d75a6
@@ -8,8 +8,7 @@
|
||||
extern void parse_perf_probe_event(const char *str, struct probe_point *pp,
|
||||
bool *need_dwarf);
|
||||
extern int synthesize_perf_probe_event(struct probe_point *pp);
|
||||
extern void parse_trace_kprobe_event(const char *str, char **group,
|
||||
char **event, struct probe_point *pp);
|
||||
extern void parse_trace_kprobe_event(const char *str, struct probe_point *pp);
|
||||
extern int synthesize_trace_kprobe_event(struct probe_point *pp);
|
||||
extern void add_trace_kprobe_events(struct probe_point *probes, int nr_probes);
|
||||
extern void del_trace_kprobe_events(struct strlist *dellist);
|
||||
|
Reference in New Issue
Block a user