aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/ftrace_event.h6
-rw-r--r--kernel/trace/trace_events.c4
-rw-r--r--kernel/trace/trace_syscalls.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h
index 1ab3089b5c59..73edf5a52e31 100644
--- a/include/linux/ftrace_event.h
+++ b/include/linux/ftrace_event.h
@@ -148,9 +148,9 @@ enum {
148}; 148};
149 149
150extern int trace_define_common_fields(struct ftrace_event_call *call); 150extern int trace_define_common_fields(struct ftrace_event_call *call);
151extern int trace_define_field(struct ftrace_event_call *call, char *type, 151extern int trace_define_field(struct ftrace_event_call *call, const char *type,
152 char *name, int offset, int size, int is_signed, 152 const char *name, int offset, int size,
153 int filter_type); 153 int is_signed, int filter_type);
154extern int trace_add_event_call(struct ftrace_event_call *call); 154extern int trace_add_event_call(struct ftrace_event_call *call);
155extern void trace_remove_event_call(struct ftrace_event_call *call); 155extern void trace_remove_event_call(struct ftrace_event_call *call);
156 156
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index 8079bb511c43..197cdaa96c43 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -27,8 +27,8 @@ DEFINE_MUTEX(event_mutex);
27 27
28LIST_HEAD(ftrace_events); 28LIST_HEAD(ftrace_events);
29 29
30int trace_define_field(struct ftrace_event_call *call, char *type, 30int trace_define_field(struct ftrace_event_call *call, const char *type,
31 char *name, int offset, int size, int is_signed, 31 const char *name, int offset, int size, int is_signed,
32 int filter_type) 32 int filter_type)
33{ 33{
34 struct ftrace_event_field *field; 34 struct ftrace_event_field *field;
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
index 5931933587e9..a928dd004535 100644
--- a/kernel/trace/trace_syscalls.c
+++ b/kernel/trace/trace_syscalls.c
@@ -193,8 +193,8 @@ int syscall_enter_define_fields(struct ftrace_event_call *call)
193 return ret; 193 return ret;
194 194
195 for (i = 0; i < meta->nb_args; i++) { 195 for (i = 0; i < meta->nb_args; i++) {
196 ret = trace_define_field(call, (char *)meta->types[i], 196 ret = trace_define_field(call, meta->types[i],
197 (char *)meta->args[i], offset, 197 meta->args[i], offset,
198 sizeof(unsigned long), 0, 198 sizeof(unsigned long), 0,
199 FILTER_OTHER); 199 FILTER_OTHER);
200 offset += sizeof(unsigned long); 200 offset += sizeof(unsigned long);