Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf list: Fix metricgroups title message

$ perf list metricgroups

gives

List of pre-defined events (to be used in -e):

Metric Groups:

Backend
Bad
BadSpec

But that's incorrect of course because metric groups or metrics can only
be specified with -M. So fix the message to say -e or -M

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20221004192634.998984-1-ak@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Andi Kleen and committed by
Arnaldo Carvalho de Melo
0cef141e 7d60fa2c

+1 -1
+1 -1
tools/perf/builtin-list.c
··· 60 60 setup_pager(); 61 61 62 62 if (!raw_dump && pager_in_use()) 63 - printf("\nList of pre-defined events (to be used in -e):\n\n"); 63 + printf("\nList of pre-defined events (to be used in -e or -M):\n\n"); 64 64 65 65 if (hybrid_type) { 66 66 pmu_name = perf_pmu__hybrid_type_to_pmu(hybrid_type);