• Ian Rogers's avatar
    perf pmu: Warn about invalid config for all PMUs and configs · b9f01032
    Ian Rogers authored
    Don't just check the raw PMU type, the only core PMU on homogeneous x86,
    check raw and all dynamically added PMUs. Extend the
    perf_pmu__warn_invalid_config to check all 4 config values.
    
    Rather than process the format list once per event, store the computed
    masks for each config value.
    
    Don't ignore the mask being zero, which is likely for config2 and
    config3, add config_masks_present so config values can be ignored only
    when no format information is present.
    Signed-off-by: default avatarIan Rogers <irogers@google.com>
    Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
    Cc: Adrian Hunter <adrian.hunter@intel.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: James Clark <james.clark@arm.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Kan Liang <kan.liang@linux.intel.com>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Rob Herring <robh@kernel.org>
    Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
    Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
    Link: https://lore.kernel.org/r/20230601023644.587584-2-irogers@google.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    b9f01032
parse-events.c 70.3 KB