diff options
author | Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> | 2009-03-23 09:12:25 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-03 06:23:07 -0400 |
commit | da2635a9854423b4aa3a5f0e4e6efcc39ac99004 (patch) | |
tree | f05c3e67053f39156ebb91b41b650bd7972abe8f | |
parent | ca2b84cb3c4a0d4d2143b46ec072cdff5d1b3b87 (diff) |
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>
-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, | |||
52 | tracing_generic_entry_update(&entry->ent, 0, 0); | 52 | tracing_generic_entry_update(&entry->ent, 0, 0); |
53 | 53 | ||
54 | entry->ent.type = TRACE_KMEM_ALLOC; | 54 | entry->ent.type = TRACE_KMEM_ALLOC; |
55 | entry->type_id = type_id; | ||
55 | entry->call_site = call_site; | 56 | entry->call_site = call_site; |
56 | entry->ptr = ptr; | 57 | entry->ptr = ptr; |
57 | entry->bytes_req = bytes_req; | 58 | entry->bytes_req = bytes_req; |