summaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorEduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>2009-03-23 15:12:25 +0200
committerIngo Molnar <mingo@elte.hu>2009-04-03 12:23:07 +0200
commitda2635a9854423b4aa3a5f0e4e6efcc39ac99004 (patch)
treef05c3e67053f39156ebb91b41b650bd7972abe8f /kernel/trace
parentca2b84cb3c4a0d4d2143b46ec072cdff5d1b3b87 (diff)
downloadop-kernel-dev-da2635a9854423b4aa3a5f0e4e6efcc39ac99004.zip
op-kernel-dev-da2635a9854423b4aa3a5f0e4e6efcc39ac99004.tar.gz
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/kmemtrace.c b/kernel/trace/kmemtrace.c
index 4f7b5db..ae259f0 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;
OpenPOWER on IntegriCloud