diff options
author | Steven Rostedt <srostedt@redhat.com> | 2012-04-05 18:47:55 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2012-04-25 07:12:26 -0400 |
commit | 668fe01f1cea2154da479dd12946eeb53413396e (patch) | |
tree | a3c4f8bc431c61fde7a136d88c45538893bff829 /tools/lib/traceevent/event-utils.h | |
parent | d0e7b850b7d45ff86868e7df4eb1f3cdd283f776 (diff) |
events: Update tools/lib/traceevent to work with perf
Some of the util functions of libtraceevent.a conflict with perf,
such as die(), warning() and others. Move them into event-util.h
that is not included by the perf tools.
Also, as perf compiles with 'bool' the filter_arg->bool needs to
be renamed to filter_arg->boolean.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Arun Sharma <asharma@fb.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Diffstat (limited to 'tools/lib/traceevent/event-utils.h')
-rw-r--r-- | tools/lib/traceevent/event-utils.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/lib/traceevent/event-utils.h b/tools/lib/traceevent/event-utils.h index a8fb48f19224..08296383d1e6 100644 --- a/tools/lib/traceevent/event-utils.h +++ b/tools/lib/traceevent/event-utils.h | |||
@@ -23,6 +23,22 @@ | |||
23 | 23 | ||
24 | #include <ctype.h> | 24 | #include <ctype.h> |
25 | 25 | ||
26 | /* Can be overridden */ | ||
27 | void die(const char *fmt, ...); | ||
28 | void *malloc_or_die(unsigned int size); | ||
29 | void warning(const char *fmt, ...); | ||
30 | void pr_stat(const char *fmt, ...); | ||
31 | void vpr_stat(const char *fmt, va_list ap); | ||
32 | |||
33 | /* Always available */ | ||
34 | void __die(const char *fmt, ...); | ||
35 | void __warning(const char *fmt, ...); | ||
36 | void __pr_stat(const char *fmt, ...); | ||
37 | |||
38 | void __vdie(const char *fmt, ...); | ||
39 | void __vwarning(const char *fmt, ...); | ||
40 | void __vpr_stat(const char *fmt, ...); | ||
41 | |||
26 | static inline char *strim(char *string) | 42 | static inline char *strim(char *string) |
27 | { | 43 | { |
28 | char *ret; | 44 | char *ret; |