• Ian Rogers's avatar
    perf list: Generalize limiting to a PMU name · ca0fe624
    Ian Rogers authored
    Deprecate the --cputype option and add a --unit option where '--unit
    cpu_atom' behaves like '--cputype atom'. The --unit option can be used
    with arbitrary PMUs, for example:
    
    ```
    $ perf list --unit msr pmu
    
    List of pre-defined events (to be used in -e or -M):
    
      msr/aperf/                                         [Kernel PMU event]
      msr/cpu_thermal_margin/                            [Kernel PMU event]
      msr/mperf/                                         [Kernel PMU event]
      msr/pperf/                                         [Kernel PMU event]
      msr/smi/                                           [Kernel PMU event]
      msr/tsc/                                           [Kernel PMU event]
    ```
    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: Caleb Biggers <caleb.biggers@intel.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Kajol Jain <kjain@linux.ibm.com>
    Cc: Kan Liang <kan.liang@linux.intel.com>
    Cc: Leo Yan <leo.yan@linaro.org>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Perry Taylor <perry.taylor@intel.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Ravi Bangoria <ravi.bangoria@amd.com>
    Cc: Rob Herring <robh@kernel.org>
    Cc: Sandipan Das <sandipan.das@amd.com>
    Cc: Stephane Eranian <eranian@google.com>
    Cc: Weilin Wang <weilin.wang@intel.com>
    Cc: Xin Gao <gaoxin@cdjrlc.com>
    Cc: Xing Zhengjun <zhengjun.xing@linux.intel.com>
    Link: http://lore.kernel.org/lkml/20221114210723.2749751-6-irogers@google.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
    ca0fe624
builtin-list.c 4.85 KB