• Ian Rogers's avatar
    perf pmu: Merge boolean sysfs event option parsing · beef8fb2
    Ian Rogers authored
    Merge perf_pmu__parse_per_pkg() and perf_pmu__parse_snapshot() that do the
    same parsing except for the file suffix used.
    Signed-off-by: default avatarIan Rogers <irogers@google.com>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Ananth Narayan <ananth.narayan@amd.com>
    Cc: Bjorn Helgaas <bhelgaas@google.com>
    Cc: Dhananjay Ugwekar <Dhananjay.Ugwekar@amd.com>
    Cc: Dominique Martinet <asmadeus@codewreck.org>
    Cc: Gautham Shenoy <gautham.shenoy@amd.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: James Clark <james.clark@arm.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: K Prateek Nayak <kprateek.nayak@amd.com>
    Cc: Kan Liang <kan.liang@linux.intel.com>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Ravi Bangoria <ravi.bangoria@amd.com>
    Cc: Sandipan Das <sandipan.das@amd.com>
    Link: https://lore.kernel.org/r/20240718003025.1486232-2-irogers@google.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    beef8fb2
pmu.c 52.5 KB