perf list: Fix JSON segfault by setting the used skip_duplicate_pmus callback
authorIan Rogers <irogers@google.com>
Wed, 29 Nov 2023 21:34:26 +0000 (13:34 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 5 Dec 2023 19:16:00 +0000 (11:16 -0800)
commitb1693747487442984050eb0f462b83a3a8307525
treeee14737cfa114fdb09264a104396965edf7e3bb3
parent90fe70d4e23cb57253d2668a171d5695c332deb7
perf list: Fix JSON segfault by setting the used skip_duplicate_pmus callback

Json output didn't set the skip_duplicate_pmus callback yielding a
segfault.

Fixes: cd4e1efbbc40 ("perf pmus: Skip duplicate PMUs and don't print list suffix by default")
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: James Clark <james.clark@arm.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20231129213428.2227448-2-irogers@google.com
[namhyung: updated subject line according to Arnaldo]
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-list.c