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-parse.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-parse.h')
-rw-r--r-- | tools/lib/traceevent/event-parse.h | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/tools/lib/traceevent/event-parse.h b/tools/lib/traceevent/event-parse.h index c32d7153a8d6..2e0222dd3a8b 100644 --- a/tools/lib/traceevent/event-parse.h +++ b/tools/lib/traceevent/event-parse.h | |||
@@ -167,6 +167,8 @@ enum format_flags { | |||
167 | FIELD_IS_STRING = 8, | 167 | FIELD_IS_STRING = 8, |
168 | FIELD_IS_DYNAMIC = 16, | 168 | FIELD_IS_DYNAMIC = 16, |
169 | FIELD_IS_LONG = 32, | 169 | FIELD_IS_LONG = 32, |
170 | FIELD_IS_FLAG = 64, | ||
171 | FIELD_IS_SYMBOLIC = 128, | ||
170 | }; | 172 | }; |
171 | 173 | ||
172 | struct format_field { | 174 | struct format_field { |
@@ -406,22 +408,6 @@ struct pevent { | |||
406 | struct event_format *last_event; | 408 | struct event_format *last_event; |
407 | }; | 409 | }; |
408 | 410 | ||
409 | /* Can be overridden */ | ||
410 | void die(const char *fmt, ...); | ||
411 | void *malloc_or_die(unsigned int size); | ||
412 | void warning(const char *fmt, ...); | ||
413 | void pr_stat(const char *fmt, ...); | ||
414 | void vpr_stat(const char *fmt, va_list ap); | ||
415 | |||
416 | /* Always available */ | ||
417 | void __die(const char *fmt, ...); | ||
418 | void __warning(const char *fmt, ...); | ||
419 | void __pr_stat(const char *fmt, ...); | ||
420 | |||
421 | void __vdie(const char *fmt, ...); | ||
422 | void __vwarning(const char *fmt, ...); | ||
423 | void __vpr_stat(const char *fmt, ...); | ||
424 | |||
425 | static inline unsigned short | 411 | static inline unsigned short |
426 | __data2host2(struct pevent *pevent, unsigned short data) | 412 | __data2host2(struct pevent *pevent, unsigned short data) |
427 | { | 413 | { |
@@ -734,7 +720,7 @@ struct filter_arg_str { | |||
734 | struct filter_arg { | 720 | struct filter_arg { |
735 | enum filter_arg_type type; | 721 | enum filter_arg_type type; |
736 | union { | 722 | union { |
737 | struct filter_arg_boolean bool; | 723 | struct filter_arg_boolean boolean; |
738 | struct filter_arg_field field; | 724 | struct filter_arg_field field; |
739 | struct filter_arg_value value; | 725 | struct filter_arg_value value; |
740 | struct filter_arg_op op; | 726 | struct filter_arg_op op; |