Skip to contentSkip to conversation

perf version: Add a feature for libpfm4.

PATCH Applied Ian Rogers 2 participants 2 messages Oct 19, 2020 – Oct 20, 2020 perf events

lore
Share & tools
lore

Ian Rogers

author reviewer
#0 lore raw

PATCH 1/1 perf version: Add a feature for libpfm4.

If perf is built with libpfm4 (LIBPFM4=1) then advertise it in perf -vv.

---
 tools/perf/builtin-version.c | 1 +
 1 file changed, 1 insertion(+)
tools/perf/builtin-version.c +1 -0
index d09ec2f03071..9cd074a3d825 100644
@@ -80,6 +80,7 @@ static void library_status(void)
 	STATUS(HAVE_LIBBPF_SUPPORT, bpf);
 	STATUS(HAVE_AIO_SUPPORT, aio);
 	STATUS(HAVE_ZSTD_SUPPORT, zstd);
+	STATUS(HAVE_LIBPFM, libpfm4);
 }
 
 int cmd_version(int argc, const char **argv)
Signature · 1 line
2.29.0.rc1.297.gfa9743e501-goog
maintainer Applied
#1 lore raw

Em Mon, Oct 19, 2020 at 04:25:45PM -0700, Ian Rogers escreveu:

Quoted 1 line

If perf is built with libpfm4 (LIBPFM4=1) then advertise it in perf -vv.

Thanks, applied.

- Arnaldo

Quoted 20 lines
---
 tools/perf/builtin-version.c | 1 +
 1 file changed, 1 insertion(+)
tools/perf/builtin-version.c +1 -0
index d09ec2f03071..9cd074a3d825 100644
@@ -80,6 +80,7 @@ static void library_status(void)
 	STATUS(HAVE_LIBBPF_SUPPORT, bpf);
 	STATUS(HAVE_AIO_SUPPORT, aio);
 	STATUS(HAVE_ZSTD_SUPPORT, zstd);
+	STATUS(HAVE_LIBPFM, libpfm4);
 }
 
 int cmd_version(int argc, const char **argv)
Signature · 1 line
2.29.0.rc1.297.gfa9743e501-goog
Signature · 1 line
- Arnaldo