diff options
author | Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> | 2009-03-23 15:12:25 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-03 12:23:07 +0200 |
commit | da2635a9854423b4aa3a5f0e4e6efcc39ac99004 (patch) | |
tree | f05c3e67053f39156ebb91b41b650bd7972abe8f /kernel/trace | |
parent | ca2b84cb3c4a0d4d2143b46ec072cdff5d1b3b87 (diff) | |
download | talos-obmc-linux-da2635a9854423b4aa3a5f0e4e6efcc39ac99004.tar.gz talos-obmc-linux-da2635a9854423b4aa3a5f0e4e6efcc39ac99004.zip |
kmemtrace: kmemtrace_alloc() must fill type_id
Impact: fix trace output
kmemtrace_alloc() was not filling type_id, which allowed garbage to make
it into tracing data.
Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
LKML-Reference: <284dba2732a144849d5aa82258fe0de2ad8dcb0b.1237813499.git.eduard.munteanu@linux360.ro>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/kmemtrace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/kmemtrace.c b/kernel/trace/kmemtrace.c index 4f7b5db5dd06..ae259f04ee39 100644 --- a/kernel/trace/kmemtrace.c +++ b/kernel/trace/kmemtrace.c @@ -52,6 +52,7 @@ static inline void kmemtrace_alloc(enum kmemtrace_type_id type_id, tracing_generic_entry_update(&entry->ent, 0, 0); entry->ent.type = TRACE_KMEM_ALLOC; + entry->type_id = type_id; entry->call_site = call_site; entry->ptr = ptr; entry->bytes_req = bytes_req; |