diff options
| author | Li Zefan <lizf@cn.fujitsu.com> | 2009-09-14 03:51:39 -0400 |
|---|---|---|
| committer | Steven Rostedt <rostedt@goodmis.org> | 2009-09-14 11:40:59 -0400 |
| commit | c16de8fd7a608aba8708dd056cf6e4d9462e800a (patch) | |
| tree | adddc04477a4c723afff3e0e9f50796bc898c526 /kernel/trace | |
| parent | a48f494e1dbdcf4fb7c02100ae3208c4c1daecbf (diff) | |
tracing: fix F_printk() typos
I found some typos in F_printk(), so I wrote compile-time check
for it, and triggered some compile errors and warnings.
I've fixed them on x86_32, but I have no x86_64 in my hand, so there
may still be some compile warnings on 64bits.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
LKML-Reference: <4AADF60B.5070407@cn.fujitsu.com>
[ tested on x86_64, and works fine ]
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
| -rw-r--r-- | kernel/trace/trace_entries.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kernel/trace/trace_entries.h b/kernel/trace/trace_entries.h index c866d34e0144..0c100958c642 100644 --- a/kernel/trace/trace_entries.h +++ b/kernel/trace/trace_entries.h | |||
| @@ -78,7 +78,7 @@ FTRACE_ENTRY(funcgraph_entry, ftrace_graph_ent_entry, | |||
| 78 | __field_desc( int, graph_ent, depth ) | 78 | __field_desc( int, graph_ent, depth ) |
| 79 | ), | 79 | ), |
| 80 | 80 | ||
| 81 | F_printk("--> %lx (%d)", __entry->graph_ent.func, __entry->depth) | 81 | F_printk("--> %lx (%d)", __entry->func, __entry->depth) |
| 82 | ); | 82 | ); |
| 83 | 83 | ||
| 84 | /* Function return entry */ | 84 | /* Function return entry */ |
| @@ -97,8 +97,8 @@ FTRACE_ENTRY(funcgraph_exit, ftrace_graph_ret_entry, | |||
| 97 | 97 | ||
| 98 | F_printk("<-- %lx (%d) (start: %llx end: %llx) over: %d", | 98 | F_printk("<-- %lx (%d) (start: %llx end: %llx) over: %d", |
| 99 | __entry->func, __entry->depth, | 99 | __entry->func, __entry->depth, |
| 100 | __entry->calltime, __entry->rettim, | 100 | __entry->calltime, __entry->rettime, |
| 101 | __entrty->depth) | 101 | __entry->depth) |
| 102 | ); | 102 | ); |
| 103 | 103 | ||
| 104 | /* | 104 | /* |
| @@ -133,7 +133,7 @@ FTRACE_ENTRY(context_switch, ctx_switch_entry, | |||
| 133 | FTRACE_CTX_FIELDS | 133 | FTRACE_CTX_FIELDS |
| 134 | ), | 134 | ), |
| 135 | 135 | ||
| 136 | F_printk(b"%u:%u:%u ==> %u:%u:%u [%03u]", | 136 | F_printk("%u:%u:%u ==> %u:%u:%u [%03u]", |
| 137 | __entry->prev_pid, __entry->prev_prio, __entry->prev_state, | 137 | __entry->prev_pid, __entry->prev_prio, __entry->prev_state, |
| 138 | __entry->next_pid, __entry->next_prio, __entry->next_state, | 138 | __entry->next_pid, __entry->next_prio, __entry->next_state, |
| 139 | __entry->next_cpu | 139 | __entry->next_cpu |
| @@ -257,8 +257,8 @@ FTRACE_ENTRY(mmiotrace_rw, trace_mmiotrace_rw, | |||
| 257 | __field_desc( unsigned char, rw, width ) | 257 | __field_desc( unsigned char, rw, width ) |
| 258 | ), | 258 | ), |
| 259 | 259 | ||
| 260 | F_printk("%lx %lx %lx %d %lx %lx", | 260 | F_printk("%lx %lx %lx %d %x %x", |
| 261 | __entry->phs, __entry->value, __entry->pc, | 261 | (unsigned long)__entry->phys, __entry->value, __entry->pc, |
| 262 | __entry->map_id, __entry->opcode, __entry->width) | 262 | __entry->map_id, __entry->opcode, __entry->width) |
| 263 | ); | 263 | ); |
| 264 | 264 | ||
| @@ -275,8 +275,8 @@ FTRACE_ENTRY(mmiotrace_map, trace_mmiotrace_map, | |||
| 275 | __field_desc( unsigned char, map, opcode ) | 275 | __field_desc( unsigned char, map, opcode ) |
| 276 | ), | 276 | ), |
| 277 | 277 | ||
| 278 | F_printk("%lx %lx %lx %d %lx", | 278 | F_printk("%lx %lx %lx %d %x", |
| 279 | __entry->phs, __entry->virt, __entry->len, | 279 | (unsigned long)__entry->phys, __entry->virt, __entry->len, |
| 280 | __entry->map_id, __entry->opcode) | 280 | __entry->map_id, __entry->opcode) |
| 281 | ); | 281 | ); |
| 282 | 282 | ||
| @@ -370,7 +370,7 @@ FTRACE_ENTRY(kmem_alloc, kmemtrace_alloc_entry, | |||
| 370 | __field( int, node ) | 370 | __field( int, node ) |
| 371 | ), | 371 | ), |
| 372 | 372 | ||
| 373 | F_printk("type:%u call_site:%lx ptr:%p req:%lu alloc:%lu" | 373 | F_printk("type:%u call_site:%lx ptr:%p req:%zi alloc:%zi" |
| 374 | " flags:%x node:%d", | 374 | " flags:%x node:%d", |
| 375 | __entry->type_id, __entry->call_site, __entry->ptr, | 375 | __entry->type_id, __entry->call_site, __entry->ptr, |
| 376 | __entry->bytes_req, __entry->bytes_alloc, | 376 | __entry->bytes_req, __entry->bytes_alloc, |
