• Arnaldo Carvalho de Melo's avatar
    perf report: Use al->cpumode where applicable · 17f22a3f
    Arnaldo Carvalho de Melo authored
    We don't need to recalculate cpumode from the perf_event->header field,
    as this is already available in the struct addr_location->cpumode field.
    
    Remove the function signature of functions that receive both perf_event
    and addr_location parameters but use perf_event just to extract the
    cpumode.
    
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: David Ahern <dsahern@gmail.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Stephane Eranian <eranian@google.com>
    Link: http://lkml.kernel.org/n/tip-tmct07y7mka54allj82trlnx@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    17f22a3f
builtin-report.c 26.7 KB