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)
commit3e6b43beb7b56ac6fd376c84f06d90ded73a2788
treee1574d489ed03ae1a22ec3a139a15ce40938135e
parent0ff26efe92844aa3910eff8951739d44a5ab6493
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