• Ravi Bangoria's avatar
    perf header: Record non-CPU PMU capabilities · 2139f742
    Ravi Bangoria authored
    PMUs advertise their capabilities via sysfs attribute files but
    the perf tool currently parses only core(CPU) or hybrid core PMU
    capabilities. Add support of recording non-core PMU capabilities
    int perf.data header.
    
    Note that a newly proposed HEADER_PMU_CAPS is replacing existing
    HEADER_HYBRID_CPU_PMU_CAPS. Special care is taken for hybrid core
    PMUs by writing their capabilities first in the perf.data header
    to make sure new perf.data file being read by old perf tool does
    not break.
    Reviewed-by: default avatarKan Liang <kan.liang@linux.intel.com>
    Signed-off-by: default avatarRavi Bangoria <ravi.bangoria@amd.com>
    Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
    Cc: Ananth Narayan <ananth.narayan@amd.com>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: James Clark <james.clark@arm.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Kim Phillips <kim.phillips@amd.com>
    Cc: Leo Yan <leo.yan@linaro.org>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Robert Richter <rrichter@amd.com>
    Cc: Sandipan Das <sandipan.das@amd.com>
    Cc: Santosh Shukla <santosh.shukla@amd.com>
    Cc: Stephane Eranian <eranian@google.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: like.xu.linux@gmail.com
    Cc: x86@kernel.org
    Link: https://lore.kernel.org/r/20220604044519.594-6-ravi.bangoria@amd.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    2139f742
env.c 12.3 KB