lkml.org 
[lkml]   [2009]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[tip:tracing/kmemtrace] kmemtrace: kmemtrace_alloc() must fill type_id
    Commit-ID:  76825df5cfefce3c2b8d9768b058848930427e4e
    Gitweb: http://git.kernel.org/tip/76825df5cfefce3c2b8d9768b058848930427e4e
    Author: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
    AuthorDate: Mon, 23 Mar 2009 15:12:25 +0200
    Committer: Ingo Molnar <mingo@elte.hu>
    CommitDate: Mon, 23 Mar 2009 16:06:56 +0100

    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>


    ---
    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 3316dc5..15f40f4 100644
    --- a/kernel/trace/kmemtrace.c
    +++ b/kernel/trace/kmemtrace.c
    @@ -67,6 +67,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;

    \
     
     \ /
      Last update: 2009-03-23 16:23    [W:0.020 / U:34.164 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site