Skip to content

perf tools: optional compile time test_attr__* depenency for perf-sys.h

Björn Töpel bpf lkml netdev 1 version Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2perf tools: Make usage of test_attr__* optional for perf-sys.htools/perf/perf-sys.h+4 -22 replies
2/2samples/bpf: fix build by setting HAVE_ATTR_TEST to zerosamples/bpf/Makefile+1 -03 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchSong LiuKP Singh
1/2A-b
2/2A-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] perf tools: optional compile time test_attr__* depenency for perf-sys.h

This mini series makes it possible to disable the use of test_attr__* for perf-sys.h users outside perf. E.g., samples/bpf/ uses perf-sys.h as a syscall wrapper.

Now a user can define HAVE_ATTR_TEST to zero to avoid this, and as a nice side-effect it also fixes the samples/bpf/ build. ;-)

Björn Töpel (2):
perf tools: Make usage of test_attr__* optional for perf-sys.h samples/bpf: fix build by setting HAVE_ATTR_TEST to zero

 samples/bpf/Makefile  | 1 +
 tools/perf/perf-sys.h | 6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)
Signature · 1 line
2.20.1