From: Andi Kleen Date: Tue, 4 Oct 2022 19:26:34 +0000 (-0700) Subject: perf list: Fix metricgroups title message X-Git-Tag: v6.1-rc1~2^2~17 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0cef141e8630c0b08bd1c4309be2ba74480c69a3;p=users%2Fdwmw2%2Flinux.git 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 Cc: Jiri Olsa Link: https://lore.kernel.org/r/20221004192634.998984-1-ak@linux.intel.com Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c index 744dd35205847..58e1ec1654ef4 100644 --- a/tools/perf/builtin-list.c +++ b/tools/perf/builtin-list.c @@ -60,7 +60,7 @@ int cmd_list(int argc, const char **argv) setup_pager(); if (!raw_dump && pager_in_use()) - printf("\nList of pre-defined events (to be used in -e):\n\n"); + printf("\nList of pre-defined events (to be used in -e or -M):\n\n"); if (hybrid_type) { pmu_name = perf_pmu__hybrid_type_to_pmu(hybrid_type);