diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-10-14 15:43:42 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-10-15 04:42:39 -0400 |
commit | cda48461c7fb8431a99b7960480f5f42cc1a5324 (patch) | |
tree | 89afa42fb7136ac1086d1736529f59cfe4ac1ce3 /tools/perf/util/trace-event.h | |
parent | 0d1da915c76838c9ee7af7cdefbcb2bae9424161 (diff) |
perf tools: Add latency format to trace output
Add the irqs disabled, preemption count, need resched, and other
info that is shown in the latency format of ftrace.
# perf trace -l
perf-16457 2..s2. 53636.260344: kmem_cache_free: call_site=ffffffff811198f
perf-16457 2..s2. 53636.264330: kmem_cache_free: call_site=ffffffff811198f
perf-16457 2d.s4. 53636.300006: kmem_cache_free: call_site=ffffffff810d889
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <20091014194400.076588953@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/trace-event.h')
-rw-r--r-- | tools/perf/util/trace-event.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/perf/util/trace-event.h b/tools/perf/util/trace-event.h index 29821acc8db6..f6637c2fa1fe 100644 --- a/tools/perf/util/trace-event.h +++ b/tools/perf/util/trace-event.h | |||
@@ -239,6 +239,8 @@ extern int header_page_size_size; | |||
239 | extern int header_page_data_offset; | 239 | extern int header_page_data_offset; |
240 | extern int header_page_data_size; | 240 | extern int header_page_data_size; |
241 | 241 | ||
242 | extern int latency_format; | ||
243 | |||
242 | int parse_header_page(char *buf, unsigned long size); | 244 | int parse_header_page(char *buf, unsigned long size); |
243 | int trace_parse_common_type(void *data); | 245 | int trace_parse_common_type(void *data); |
244 | struct event *trace_find_event(int id); | 246 | struct event *trace_find_event(int id); |
@@ -248,4 +250,13 @@ void *raw_field_ptr(struct event *event, const char *name, void *data); | |||
248 | 250 | ||
249 | void read_tracing_data(int fd, struct perf_event_attr *pattrs, int nb_events); | 251 | void read_tracing_data(int fd, struct perf_event_attr *pattrs, int nb_events); |
250 | 252 | ||
253 | /* taken from kernel/trace/trace.h */ | ||
254 | enum trace_flag_type { | ||
255 | TRACE_FLAG_IRQS_OFF = 0x01, | ||
256 | TRACE_FLAG_IRQS_NOSUPPORT = 0x02, | ||
257 | TRACE_FLAG_NEED_RESCHED = 0x04, | ||
258 | TRACE_FLAG_HARDIRQ = 0x08, | ||
259 | TRACE_FLAG_SOFTIRQ = 0x10, | ||
260 | }; | ||
261 | |||
251 | #endif /* __PERF_TRACE_EVENTS_H */ | 262 | #endif /* __PERF_TRACE_EVENTS_H */ |