diff options
author | Masami Hiramatsu <mhiramat@redhat.com> | 2010-04-12 13:17:42 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-04-14 16:28:36 -0400 |
commit | 146a143948ed9e8b248c0ec59937f3e9e1bbc7e5 (patch) | |
tree | d43df31997010bd3650264a3c5325f20679614ac /tools/perf/util/probe-event.h | |
parent | b55a87ade3839c33ab94768a0b5955734073f987 (diff) |
perf probe: Remove die() from probe-event code
Remove die() and DIE_IF() code from util/probe-event.c since
these 'sudden death' in utility functions make reusing it from
other code (especially tui/gui) difficult.
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <20100412171742.3790.33650.stgit@localhost6.localdomain6>
Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/probe-event.h')
-rw-r--r-- | tools/perf/util/probe-event.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tools/perf/util/probe-event.h b/tools/perf/util/probe-event.h index ff2f26b1822c..ab5492901708 100644 --- a/tools/perf/util/probe-event.h +++ b/tools/perf/util/probe-event.h | |||
@@ -89,10 +89,10 @@ struct line_range { | |||
89 | }; | 89 | }; |
90 | 90 | ||
91 | /* Command string to events */ | 91 | /* Command string to events */ |
92 | extern void parse_perf_probe_command(const char *cmd, | 92 | extern int parse_perf_probe_command(const char *cmd, |
93 | struct perf_probe_event *pev); | 93 | struct perf_probe_event *pev); |
94 | extern void parse_kprobe_trace_command(const char *cmd, | 94 | extern int parse_kprobe_trace_command(const char *cmd, |
95 | struct kprobe_trace_event *tev); | 95 | struct kprobe_trace_event *tev); |
96 | 96 | ||
97 | /* Events to command string */ | 97 | /* Events to command string */ |
98 | extern char *synthesize_perf_probe_command(struct perf_probe_event *pev); | 98 | extern char *synthesize_perf_probe_command(struct perf_probe_event *pev); |
@@ -104,22 +104,22 @@ extern int synthesize_perf_probe_arg(struct perf_probe_arg *pa, char *buf, | |||
104 | extern bool perf_probe_event_need_dwarf(struct perf_probe_event *pev); | 104 | extern bool perf_probe_event_need_dwarf(struct perf_probe_event *pev); |
105 | 105 | ||
106 | /* Convert from kprobe_trace_event to perf_probe_event */ | 106 | /* Convert from kprobe_trace_event to perf_probe_event */ |
107 | extern void convert_to_perf_probe_event(struct kprobe_trace_event *tev, | 107 | extern int convert_to_perf_probe_event(struct kprobe_trace_event *tev, |
108 | struct perf_probe_event *pev); | 108 | struct perf_probe_event *pev); |
109 | 109 | ||
110 | /* Release event contents */ | 110 | /* Release event contents */ |
111 | extern void clear_perf_probe_event(struct perf_probe_event *pev); | 111 | extern void clear_perf_probe_event(struct perf_probe_event *pev); |
112 | extern void clear_kprobe_trace_event(struct kprobe_trace_event *tev); | 112 | extern void clear_kprobe_trace_event(struct kprobe_trace_event *tev); |
113 | 113 | ||
114 | /* Command string to line-range */ | 114 | /* Command string to line-range */ |
115 | extern void parse_line_range_desc(const char *cmd, struct line_range *lr); | 115 | extern int parse_line_range_desc(const char *cmd, struct line_range *lr); |
116 | 116 | ||
117 | 117 | ||
118 | extern void add_perf_probe_events(struct perf_probe_event *pevs, int ntevs, | 118 | extern int add_perf_probe_events(struct perf_probe_event *pevs, int ntevs, |
119 | bool force_add); | 119 | bool force_add); |
120 | extern void del_perf_probe_events(struct strlist *dellist); | 120 | extern int del_perf_probe_events(struct strlist *dellist); |
121 | extern void show_perf_probe_events(void); | 121 | extern int show_perf_probe_events(void); |
122 | extern void show_line_range(struct line_range *lr); | 122 | extern int show_line_range(struct line_range *lr); |
123 | 123 | ||
124 | 124 | ||
125 | /* Maximum index number of event-name postfix */ | 125 | /* Maximum index number of event-name postfix */ |