• Ian Rogers's avatar
    perf parse-events: Avoid regrouped warning for wild card events · 93d7e9c8
    Ian Rogers authored
    There is logic to avoid printing the regrouping warning for wild card
    PMUs, this logic also needs to apply for wild card events.
    
    Before:
    ```
    $ perf stat -e '{data_read,data_write}' -a sleep 1
    WARNING: events were regrouped to match PMUs
    
     Performance counter stats for 'system wide':
    
              2,979.16 MiB  data_read
                410.26 MiB  data_write
    
           1.001541923 seconds time elapsed
    ```
    After:
    ```
    $ perf stat -e '{data_read,data_write}' -a sleep 1
    
     Performance counter stats for 'system wide':
    
              2,975.94 MiB  data_read
                432.05 MiB  data_write
    
           1.001119499 seconds time elapsed
    ```
    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: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    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: bpf@vger.kernel.org
    Link: https://lore.kernel.org/r/20230627181030.95608-6-irogers@google.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    93d7e9c8
parse-events.c 70.9 KB