• Frederic Weisbecker's avatar
    perf: Pass appropriate frame pointer to dump_trace() · 48b5ba9c
    Frederic Weisbecker authored
    Pass the frame pointer from the regs of the interrupted path
    to dump_trace() while processing the stack trace.
    
    Currently, dump_trace() takes the current bp and starts the
    callchain from dump_trace() itself. This is wasteful because
    we need to walk through the entire NMI/DEBUG stack before
    retrieving the interrupted point.
    
    We can fix that by just using the frame pointer from the
    captured regs. It points exactly where we want to start.
    Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Paul Mackerras <paulus@samba.org>
    LKML-Reference: <1262235183-5320-1-git-send-regression-fweisbec@gmail.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Paul Mackerras <paulus@samba.org>
    48b5ba9c
perf_event.c 56.5 KB