* [PATCH] perf version: Display availability of OpenCSD support
@ 2024-03-01 13:38 James Clark
2024-03-01 16:38 ` Ian Rogers
2024-03-04 18:56 ` Namhyung Kim
0 siblings, 2 replies; 3+ messages in thread
From: James Clark @ 2024-03-01 13:38 UTC (permalink / raw)
To: linux-perf-users
Cc: al.grant, James Clark, Peter Zijlstra, Ingo Molnar,
Arnaldo Carvalho de Melo, Namhyung Kim, Mark Rutland,
Alexander Shishkin, Jiri Olsa, Ian Rogers, Adrian Hunter,
linux-kernel
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>
---
tools/perf/builtin-version.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/perf/builtin-version.c b/tools/perf/builtin-version.c
index 1bafe5855ae7..398aa53e9e2e 100644
--- a/tools/perf/builtin-version.c
+++ b/tools/perf/builtin-version.c
@@ -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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] perf version: Display availability of OpenCSD support
2024-03-01 13:38 [PATCH] perf version: Display availability of OpenCSD support James Clark
@ 2024-03-01 16:38 ` Ian Rogers
2024-03-04 18:56 ` Namhyung Kim
1 sibling, 0 replies; 3+ messages in thread
From: Ian Rogers @ 2024-03-01 16:38 UTC (permalink / raw)
To: James Clark
Cc: linux-perf-users, al.grant, Peter Zijlstra, Ingo Molnar,
Arnaldo Carvalho de Melo, Namhyung Kim, Mark Rutland,
Alexander Shishkin, Jiri Olsa, Adrian Hunter, linux-kernel
On Fri, Mar 1, 2024 at 5:39 AM James Clark <james.clark@arm.com> wrote:
>
> 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>
Thanks,
Ian
> ---
> tools/perf/builtin-version.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tools/perf/builtin-version.c b/tools/perf/builtin-version.c
> index 1bafe5855ae7..398aa53e9e2e 100644
> --- a/tools/perf/builtin-version.c
> +++ b/tools/perf/builtin-version.c
> @@ -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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] perf version: Display availability of OpenCSD support
2024-03-01 13:38 [PATCH] perf version: Display availability of OpenCSD support James Clark
2024-03-01 16:38 ` Ian Rogers
@ 2024-03-04 18:56 ` Namhyung Kim
1 sibling, 0 replies; 3+ messages in thread
From: Namhyung Kim @ 2024-03-04 18:56 UTC (permalink / raw)
To: linux-perf-users, James Clark
Cc: Ian Rogers, Adrian Hunter, al.grant, Peter Zijlstra,
Arnaldo Carvalho de Melo, Ingo Molnar, Jiri Olsa, Mark Rutland,
linux-kernel, Alexander Shishkin
On Fri, 1 Mar 2024 13:38:29 +0000, James Clark wrote:
> 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,
--
Namhyung Kim <namhyung@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-04 18:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-01 13:38 [PATCH] perf version: Display availability of OpenCSD support James Clark
2024-03-01 16:38 ` Ian Rogers
2024-03-04 18:56 ` Namhyung Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox