aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_events.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-09-11 11:36:23 -0400
committerSteven Rostedt <rostedt@goodmis.org>2009-09-11 11:36:23 -0400
commit48659d31195bb76d688e99dabd816c5472fb1656 (patch)
tree9d7d7f9ac50a6de1be1bfe28a31ee13e369fc04b /kernel/trace/trace_events.c
parent49ff590390a22c49e9063dcdec4cd5903127526b (diff)
tracing: move tgid out of generic entry and into userstack
The userstack trace required the recording of the tgid entry. Unfortunately, it was added to the generic entry where it wasted 4 bytes of every entry and was only used by one entry. This patch moves it out of the generic field and moves it into the only user (userstack_entry). Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r--kernel/trace/trace_events.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index 78b1ed230177..28d92027a93c 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -86,7 +86,6 @@ int trace_define_common_fields(struct ftrace_event_call *call)
86 __common_field(unsigned char, flags); 86 __common_field(unsigned char, flags);
87 __common_field(unsigned char, preempt_count); 87 __common_field(unsigned char, preempt_count);
88 __common_field(int, pid); 88 __common_field(int, pid);
89 __common_field(int, tgid);
90 89
91 return ret; 90 return ret;
92} 91}
@@ -572,13 +571,11 @@ static int trace_write_header(struct trace_seq *s)
572 "\tfield:%s %s;\toffset:%zu;\tsize:%zu;\n" 571 "\tfield:%s %s;\toffset:%zu;\tsize:%zu;\n"
573 "\tfield:%s %s;\toffset:%zu;\tsize:%zu;\n" 572 "\tfield:%s %s;\toffset:%zu;\tsize:%zu;\n"
574 "\tfield:%s %s;\toffset:%zu;\tsize:%zu;\n" 573 "\tfield:%s %s;\toffset:%zu;\tsize:%zu;\n"
575 "\tfield:%s %s;\toffset:%zu;\tsize:%zu;\n"
576 "\n", 574 "\n",
577 FIELD(unsigned short, type), 575 FIELD(unsigned short, type),
578 FIELD(unsigned char, flags), 576 FIELD(unsigned char, flags),
579 FIELD(unsigned char, preempt_count), 577 FIELD(unsigned char, preempt_count),
580 FIELD(int, pid), 578 FIELD(int, pid));
581 FIELD(int, tgid));
582} 579}
583 580
584static ssize_t 581static ssize_t