perf version: Display availability of OpenCSD support
authorJames Clark <james.clark@arm.com>
Fri, 1 Mar 2024 13:38:29 +0000 (13:38 +0000)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 4 Mar 2024 06:48:40 +0000 (22:48 -0800)
This is useful for scripts that work with Perf and ETM trace. Rather
than them trying to parse Perf's error output at runtime to see if it
was linked or not.

Signed-off-by: James Clark <james.clark@arm.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: al.grant@arm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240301133829.346286-1-james.clark@arm.com
tools/perf/builtin-version.c

index 1bafe5855ae7594f545835a853e6e8382e93c215..398aa53e9e2ef0e435093767ddbc93a60ed946d9 100644 (file)
@@ -84,6 +84,7 @@ static void library_status(void)
        STATUS(HAVE_LIBTRACEEVENT, libtraceevent);
        STATUS(HAVE_BPF_SKEL, bpf_skeletons);
        STATUS(HAVE_DWARF_UNWIND_SUPPORT, dwarf-unwind-support);
+       STATUS(HAVE_CSTRACE_SUPPORT, libopencsd);
 }
 
 int cmd_version(int argc, const char **argv)