diff options
-rw-r--r-- | include/linux/ftrace_event.h | 4 | ||||
-rw-r--r-- | include/trace/ftrace.h | 2 | ||||
-rw-r--r-- | kernel/trace/trace.c | 4 | ||||
-rw-r--r-- | kernel/trace/trace.h | 2 | ||||
-rw-r--r-- | kernel/trace/trace_events.c | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h index 75f3ac01a87c..2a4a40749911 100644 --- a/include/linux/ftrace_event.h +++ b/include/linux/ftrace_event.h | |||
@@ -16,7 +16,7 @@ struct dentry; | |||
16 | * bash-15816 [01] 235.197585: idle_cpu <- irq_enter | 16 | * bash-15816 [01] 235.197585: idle_cpu <- irq_enter |
17 | */ | 17 | */ |
18 | struct trace_entry { | 18 | struct trace_entry { |
19 | unsigned char type; | 19 | int type; |
20 | unsigned char flags; | 20 | unsigned char flags; |
21 | unsigned char preempt_count; | 21 | unsigned char preempt_count; |
22 | int pid; | 22 | int pid; |
@@ -73,7 +73,7 @@ enum print_line_t { | |||
73 | 73 | ||
74 | 74 | ||
75 | struct ring_buffer_event * | 75 | struct ring_buffer_event * |
76 | trace_current_buffer_lock_reserve(unsigned char type, unsigned long len, | 76 | trace_current_buffer_lock_reserve(int type, unsigned long len, |
77 | unsigned long flags, int pc); | 77 | unsigned long flags, int pc); |
78 | void trace_current_buffer_unlock_commit(struct ring_buffer_event *event, | 78 | void trace_current_buffer_unlock_commit(struct ring_buffer_event *event, |
79 | unsigned long flags, int pc); | 79 | unsigned long flags, int pc); |
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); \ |
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index b9a3adce9221..b6183bc9ecae 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -838,7 +838,7 @@ tracing_generic_entry_update(struct trace_entry *entry, unsigned long flags, | |||
838 | } | 838 | } |
839 | 839 | ||
840 | struct ring_buffer_event *trace_buffer_lock_reserve(struct trace_array *tr, | 840 | struct ring_buffer_event *trace_buffer_lock_reserve(struct trace_array *tr, |
841 | unsigned char type, | 841 | int type, |
842 | unsigned long len, | 842 | unsigned long len, |
843 | unsigned long flags, int pc) | 843 | unsigned long flags, int pc) |
844 | { | 844 | { |
@@ -881,7 +881,7 @@ void trace_buffer_unlock_commit(struct trace_array *tr, | |||
881 | } | 881 | } |
882 | 882 | ||
883 | struct ring_buffer_event * | 883 | struct ring_buffer_event * |
884 | trace_current_buffer_lock_reserve(unsigned char type, unsigned long len, | 884 | trace_current_buffer_lock_reserve(int type, unsigned long len, |
885 | unsigned long flags, int pc) | 885 | unsigned long flags, int pc) |
886 | { | 886 | { |
887 | return trace_buffer_lock_reserve(&global_trace, | 887 | return trace_buffer_lock_reserve(&global_trace, |
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 247948e81b08..7d55bcf50e49 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -422,7 +422,7 @@ void init_tracer_sysprof_debugfs(struct dentry *d_tracer); | |||
422 | struct ring_buffer_event; | 422 | struct ring_buffer_event; |
423 | 423 | ||
424 | struct ring_buffer_event *trace_buffer_lock_reserve(struct trace_array *tr, | 424 | struct ring_buffer_event *trace_buffer_lock_reserve(struct trace_array *tr, |
425 | unsigned char type, | 425 | int type, |
426 | unsigned long len, | 426 | unsigned long len, |
427 | unsigned long flags, | 427 | unsigned long flags, |
428 | int pc); | 428 | int pc); |
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 9ea55a7dfdec..5d6e879cf875 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -398,7 +398,7 @@ static int trace_write_header(struct trace_seq *s) | |||
398 | "\tfield:%s %s;\toffset:%zu;\tsize:%zu;\n" | 398 | "\tfield:%s %s;\toffset:%zu;\tsize:%zu;\n" |
399 | "\tfield:%s %s;\toffset:%zu;\tsize:%zu;\n" | 399 | "\tfield:%s %s;\toffset:%zu;\tsize:%zu;\n" |
400 | "\n", | 400 | "\n", |
401 | FIELD(unsigned char, type), | 401 | FIELD(int, type), |
402 | FIELD(unsigned char, flags), | 402 | FIELD(unsigned char, flags), |
403 | FIELD(unsigned char, preempt_count), | 403 | FIELD(unsigned char, preempt_count), |
404 | FIELD(int, pid), | 404 | FIELD(int, pid), |