perf version: Display availability of OpenCSD support
PATCH 1/1 perf version: Display availability of OpenCSD support
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 <[email protected]>
--- tools/perf/builtin-version.c | 1 + 1 file changed, 1 insertion(+)
tools/perf/builtin-version.c +1 -0
@@ -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)
Signature · 1 line
2.34.1
Quoted 6 lines · James Clark
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 <[email protected]>
Reviewed-by Ian Rogers <[email protected]>
Thanks,
Ian
Quoted 19 lines
--- tools/perf/builtin-version.c | 1 + 1 file changed, 1 insertion(+)tools/perf/builtin-version.c +1
-1@@ -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) --2.34.1
Quoted 5 lines · James Clark
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.
Applied to perf-tools-next, thanks!
Best regards,
Signature · 1 line
Namhyung Kim <[email protected]>