aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace_event.h
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-08-26 23:09:51 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2009-08-26 23:09:51 -0400
commitaeaeae1187d7520f1c5559623f0a149da6a1c96e (patch)
treeabe8ba9315ce8857862d47f4c9cb3f78316fb814 /include/linux/ftrace_event.h
parent24851d2447830e6cba4c4b641cb73e713f312373 (diff)
tracing: Restore the const qualifier for field names and types definition
Restore the const qualifier in field's name and type parameters of trace_define_field that was lost while solving a conflict. Fields names and types are defined as builtin constant strings in static TRACE_EVENTs. But kprobes allocates these dynamically. That said, we still want to always pass these strings as const char * in trace_define_fields() to avoid any further accidental writes on the pointed strings. Reported-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/ftrace_event.h')
-rw-r--r--include/linux/ftrace_event.h6
1 files changed, 3 insertions, 3 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