Skip to content

Commit

Permalink
perf list: Fix metricgroups title message
Browse files Browse the repository at this point in the history
  $ 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>
  • Loading branch information
Andi Kleen authored and acmel committed Oct 14, 2022
1 parent 7d60fa2 commit 0cef141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/perf/builtin-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0cef141

Please sign in to comment.