aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2009-04-22 04:53:34 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-22 05:36:38 -0400
commit7a4f453b6d7379a7c380825949977c5a838aa012 (patch)
tree9f5450c7a1abc865b998885affe964d4670a08bc /include/trace
parent3554228d4289098a8fe5cfd87512ec32a19bbe5a (diff)
tracing/events: make struct trace_entry->type to be int type
struct trace_entry->type is unsigned char, while trace event's id is int type, thus for a event with id >= 256, it's entry->type is cast to (id % 256), and then we can't see the trace output of this event. # insmod trace-events-sample.ko # echo foo_bar > /mnt/tracing/set_event # cat /debug/tracing/events/trace-events-sample/foo_bar/id 256 # cat /mnt/tracing/trace_pipe <...>-3548 [001] 215.091142: Unknown type 0 <...>-3548 [001] 216.089207: Unknown type 0 <...>-3548 [001] 217.087271: Unknown type 0 <...>-3548 [001] 218.085332: Unknown type 0 [ Impact: fix output for trace events with id >= 256 ] Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <49EEDB0E.5070207@cn.fujitsu.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/ftrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h
index 39a3351f2e7f..15ef08d9add1 100644
--- a/include/trace/ftrace.h
+++ b/include/trace/ftrace.h
@@ -198,7 +198,7 @@ ftrace_define_fields_##call(void) \
198 struct ftrace_event_call *event_call = &event_##call; \ 198 struct ftrace_event_call *event_call = &event_##call; \
199 int ret; \ 199 int ret; \
200 \ 200 \
201 __common_field(unsigned char, type); \ 201 __common_field(int, type); \
202 __common_field(unsigned char, flags); \ 202 __common_field(unsigned char, flags); \
203 __common_field(unsigned char, preempt_count); \ 203 __common_field(unsigned char, preempt_count); \
204 __common_field(int, pid); \ 204 __common_field(int, pid); \