lkml.org 
[lkml]   [2009]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/4] tracing: Forget about the nmi buffer from syscall events
    Date
    We are never in an nmi context when we commit a syscall trace to
    perf. So just forget about the nmi buffer there.

    Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Jason Baron <jbaron@redhat.com>
    ---
    kernel/trace/trace_syscalls.c | 10 ++--------
    1 files changed, 2 insertions(+), 8 deletions(-)

    diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
    index 0bb9348..41b6dd9 100644
    --- a/kernel/trace/trace_syscalls.c
    +++ b/kernel/trace/trace_syscalls.c
    @@ -511,10 +511,7 @@ static void prof_syscall_enter(struct pt_regs *regs, long id)

    cpu = smp_processor_id();

    - if (in_nmi())
    - trace_buf = rcu_dereference(perf_trace_buf_nmi);
    - else
    - trace_buf = rcu_dereference(perf_trace_buf);
    + trace_buf = rcu_dereference(perf_trace_buf);

    if (!trace_buf)
    goto end;
    @@ -617,10 +614,7 @@ static void prof_syscall_exit(struct pt_regs *regs, long ret)

    cpu = smp_processor_id();

    - if (in_nmi())
    - trace_buf = rcu_dereference(perf_trace_buf_nmi);
    - else
    - trace_buf = rcu_dereference(perf_trace_buf);
    + trace_buf = rcu_dereference(perf_trace_buf);

    if (!trace_buf)
    goto end;
    --
    1.6.2.3


    \
     
     \ /
      Last update: 2009-11-22 05:25    [W:0.021 / U:1.760 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site