projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53ab668
)
tracing/kprobe: Show sign of fields in trace_kprobe format files
author
Lai Jiangshan
<
[email protected]
>
Tue, 15 Dec 2009 07:39:19 +0000
(15:39 +0800)
committer
Steven Rostedt
<
[email protected]
>
Wed, 30 Dec 2009 15:27:03 +0000
(10:27 -0500)
The format files of trace_kprobe do not show the sign of the fields.
The other format files show the field signed type of the fields and
this patch makes the trace_kprobe formats consistent with the others.
Signed-off-by: Lai Jiangshan <
[email protected]
>
LKML-Reference: <
4B273D27
.
5040009
@cn.fujitsu.com>
Acked-by: Masami Hiramatsu <
[email protected]
>
Signed-off-by: Steven Rostedt <
[email protected]
>
kernel/trace/trace_kprobe.c
patch
|
blob
|
history
diff --git
a/kernel/trace/trace_kprobe.c
b/kernel/trace/trace_kprobe.c
index 7ecab06547a5b4b53a2e4c2a3105ac3dbc6f05fa..83f1e6ef7063f860e97517d4b45d0daa7272514b 100644
(file)
--- a/
kernel/trace/trace_kprobe.c
+++ b/
kernel/trace/trace_kprobe.c
@@
-1182,10
+1182,11
@@
static int __probe_event_show_format(struct trace_seq *s,
#undef SHOW_FIELD
#define SHOW_FIELD(type, item, name) \
do { \
- ret = trace_seq_printf(s, "\tfield:
" #type " %s;\t"
\
- "offset:%u;\tsize:%u;\
n", name,
\
+ ret = trace_seq_printf(s, "\tfield:
" #type " %s;\t"
\
+ "offset:%u;\tsize:%u;\
tsigned:%d;\n", name,
\
(unsigned int)offsetof(typeof(field), item),\
- (unsigned int)sizeof(type)); \
+ (unsigned int)sizeof(type), \
+ is_signed_type(type)); \
if (!ret) \
return 0; \
} while (0)