]> 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)
commit01d824d18767b3221271e41908ed58bb7641de79
treee1574d489ed03ae1a22ec3a139a15ce40938135e
parent4842d0363c92760c3ab66a0cbc07174d913b11ed
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