diff options
author | Ingo Molnar <mingo@kernel.org> | 2012-03-24 03:19:09 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-03-24 03:19:09 -0400 |
commit | 04a54d27ce9698d108d29c8a6a50c28f7446336b (patch) | |
tree | 95041020d6fd5e283e81f7c12c2fd4433b6af8e5 /kernel/trace | |
parent | c7206205d00ab375839bd6c7ddb247d600693c09 (diff) | |
parent | 01de982abf8c9e10fc3089e10585cd2cc914bdab (diff) |
Merge branch 'tip/perf/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace into perf/urgent
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace_entries.h | 16 | ||||
-rw-r--r-- | kernel/trace/trace_export.c | 2 |
2 files changed, 13 insertions, 5 deletions
diff --git a/kernel/trace/trace_entries.h b/kernel/trace/trace_entries.h index d91eb0541b3a..4108e1250ca2 100644 --- a/kernel/trace/trace_entries.h +++ b/kernel/trace/trace_entries.h | |||
@@ -166,6 +166,12 @@ FTRACE_ENTRY_DUP(wakeup, ctx_switch_entry, | |||
166 | 166 | ||
167 | #define FTRACE_STACK_ENTRIES 8 | 167 | #define FTRACE_STACK_ENTRIES 8 |
168 | 168 | ||
169 | #ifndef CONFIG_64BIT | ||
170 | # define IP_FMT "%08lx" | ||
171 | #else | ||
172 | # define IP_FMT "%016lx" | ||
173 | #endif | ||
174 | |||
169 | FTRACE_ENTRY(kernel_stack, stack_entry, | 175 | FTRACE_ENTRY(kernel_stack, stack_entry, |
170 | 176 | ||
171 | TRACE_STACK, | 177 | TRACE_STACK, |
@@ -175,8 +181,9 @@ FTRACE_ENTRY(kernel_stack, stack_entry, | |||
175 | __dynamic_array(unsigned long, caller ) | 181 | __dynamic_array(unsigned long, caller ) |
176 | ), | 182 | ), |
177 | 183 | ||
178 | F_printk("\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n" | 184 | F_printk("\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n" |
179 | "\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n", | 185 | "\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n" |
186 | "\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n", | ||
180 | __entry->caller[0], __entry->caller[1], __entry->caller[2], | 187 | __entry->caller[0], __entry->caller[1], __entry->caller[2], |
181 | __entry->caller[3], __entry->caller[4], __entry->caller[5], | 188 | __entry->caller[3], __entry->caller[4], __entry->caller[5], |
182 | __entry->caller[6], __entry->caller[7]), | 189 | __entry->caller[6], __entry->caller[7]), |
@@ -193,8 +200,9 @@ FTRACE_ENTRY(user_stack, userstack_entry, | |||
193 | __array( unsigned long, caller, FTRACE_STACK_ENTRIES ) | 200 | __array( unsigned long, caller, FTRACE_STACK_ENTRIES ) |
194 | ), | 201 | ), |
195 | 202 | ||
196 | F_printk("\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n" | 203 | F_printk("\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n" |
197 | "\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n\t=> (%08lx)\n", | 204 | "\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n" |
205 | "\t=> (" IP_FMT ")\n\t=> (" IP_FMT ")\n", | ||
198 | __entry->caller[0], __entry->caller[1], __entry->caller[2], | 206 | __entry->caller[0], __entry->caller[1], __entry->caller[2], |
199 | __entry->caller[3], __entry->caller[4], __entry->caller[5], | 207 | __entry->caller[3], __entry->caller[4], __entry->caller[5], |
200 | __entry->caller[6], __entry->caller[7]), | 208 | __entry->caller[6], __entry->caller[7]), |
diff --git a/kernel/trace/trace_export.c b/kernel/trace/trace_export.c index 7b46c9bd22ae..3dd15e8bc856 100644 --- a/kernel/trace/trace_export.c +++ b/kernel/trace/trace_export.c | |||
@@ -162,7 +162,7 @@ ftrace_define_fields_##name(struct ftrace_event_call *event_call) \ | |||
162 | #define __dynamic_array(type, item) | 162 | #define __dynamic_array(type, item) |
163 | 163 | ||
164 | #undef F_printk | 164 | #undef F_printk |
165 | #define F_printk(fmt, args...) #fmt ", " __stringify(args) | 165 | #define F_printk(fmt, args...) __stringify(fmt) ", " __stringify(args) |
166 | 166 | ||
167 | #undef FTRACE_ENTRY_REG | 167 | #undef FTRACE_ENTRY_REG |
168 | #define FTRACE_ENTRY_REG(call, struct_name, etype, tstruct, print, filter,\ | 168 | #define FTRACE_ENTRY_REG(call, struct_name, etype, tstruct, print, filter,\ |