]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Add external commands to list-cmds
authorMichael Petlan <mpetlan@redhat.com>
Mon, 4 Apr 2022 22:15:41 +0000 (00:15 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 9 Apr 2022 17:21:00 +0000 (14:21 -0300)
commit9a1398d5b028a53c1cfdaef5a4187d90742e293b
treee1574d489ed03ae1a22ec3a139a15ce40938135e
parentb8f4881ef57705c53c101ac1404c9e5e8e366770
perf tools: Add external commands to list-cmds

The `perf --list-cmds` output prints only internal commands, although
there is no reason for that from users' perspective.

Adding the external commands to commands array with NULL function
pointer allows printing all perf commands while not changing the logic
of command handler selection.

Signed-off-by: Michael Petlan <mpetlan@redhat.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20220404221541.30312-2-mpetlan@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/perf.c