• Stephane Eranian's avatar
    perf report: Make -D print sampled CPU · 761844b9
    Stephane Eranian authored
    It is useful to know on which CPU a sample was captured on.
    The information is captured with perf record -R but it was
    not printed out by perf report -D. This patch adds this.
    
    When -R is not used, cpu is set to -1to indicate that
    the CPU is unknown (it is not captured).
    
    Cc: David S. Miller <davem@davemloft.net>
    Cc: Frédéric Weisbecker <fweisbec@gmail.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Tom Zanussi <tzanussi@gmail.com>
    LKML-Reference: <4bff964c.e88cd80a.3106.7d31@mx.google.com>
    Signed-off-by: default avatarStephane Eranian <eranian@google.com>
    Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    761844b9
builtin-report.c 14.1 KB