diff options
author | Jiri Olsa <jolsa@redhat.com> | 2013-07-11 11:28:29 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-07-15 15:09:07 -0400 |
commit | c85cffa5894fad8ad7c8051ccf7dd73a3a3f92b6 (patch) | |
tree | 78f4a3521706d0c6adc3fc03f0c317455888bac4 /tools | |
parent | be0e6d105d31a5818608ae243411aef5c976147a (diff) |
perf timechart: Use traceevent lib event-parse.h include
Adding traceevent lib event-parse.h include to timechart command and
removing duplicated local 'enum trace_flag_type' definition.
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Thomas Renninger <trenn@suse.de>
Link: http://lkml.kernel.org/r/1373556513-3000-2-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-timechart.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/tools/perf/builtin-timechart.c b/tools/perf/builtin-timechart.c index 4536a92b18f3..a5120095978e 100644 --- a/tools/perf/builtin-timechart.c +++ b/tools/perf/builtin-timechart.c | |||
@@ -12,6 +12,8 @@ | |||
12 | * of the License. | 12 | * of the License. |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <traceevent/event-parse.h> | ||
16 | |||
15 | #include "builtin.h" | 17 | #include "builtin.h" |
16 | 18 | ||
17 | #include "util/util.h" | 19 | #include "util/util.h" |
@@ -328,25 +330,6 @@ struct wakeup_entry { | |||
328 | int success; | 330 | int success; |
329 | }; | 331 | }; |
330 | 332 | ||
331 | /* | ||
332 | * trace_flag_type is an enumeration that holds different | ||
333 | * states when a trace occurs. These are: | ||
334 | * IRQS_OFF - interrupts were disabled | ||
335 | * IRQS_NOSUPPORT - arch does not support irqs_disabled_flags | ||
336 | * NEED_RESCED - reschedule is requested | ||
337 | * HARDIRQ - inside an interrupt handler | ||
338 | * SOFTIRQ - inside a softirq handler | ||
339 | */ | ||
340 | enum trace_flag_type { | ||
341 | TRACE_FLAG_IRQS_OFF = 0x01, | ||
342 | TRACE_FLAG_IRQS_NOSUPPORT = 0x02, | ||
343 | TRACE_FLAG_NEED_RESCHED = 0x04, | ||
344 | TRACE_FLAG_HARDIRQ = 0x08, | ||
345 | TRACE_FLAG_SOFTIRQ = 0x10, | ||
346 | }; | ||
347 | |||
348 | |||
349 | |||
350 | struct sched_switch { | 333 | struct sched_switch { |
351 | struct trace_entry te; | 334 | struct trace_entry te; |
352 | char prev_comm[TASK_COMM_LEN]; | 335 | char prev_comm[TASK_COMM_LEN]; |