Skip to content

Perf tool build improvements

Ian Rogers linux-perf-users lkml llvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13perf build: Support python/perf.so testingtools/perf/Makefile.perf tools/perf/tests/make+8 -40 replies
2/13perf build: Make BUILD_BPF_SKEL default, rename to NO_BPF_SKELtools/perf/Makefile.config tools/perf/Makefile.perf tools/perf/builtin-lock.c +3 more+20 -145 replies
3/13perf build: Remove unused HAVE_GLIBC_SUPPORTtools/perf/Makefile.config tools/perf/builtin-version.c+0 -50 replies
4/13perf build: Error if no libelf and NO_LIBELF isn't settools/perf/Makefile.config+1 -92 replies
5/13perf util: Remove weak sched_getcputools/perf/util/cloexec.c tools/perf/util/util.c+16 -130 replies
6/13perf build: Error if jevents won't work and NO_JEVENTS=1 isn't settools/perf/Makefile.config+2 -40 replies
7/13perf build: Make binutil libraries opt intools/perf/Makefile.config tools/perf/Makefile.perf tools/perf/tests/make+14 -151 reply
8/13tools build: Add feature test for abi::__cxa_demangletools/build/Makefile.feature tools/build/feature/Makefile tools/build/feature/test-cxa-demangle.cpp+22 -00 replies
9/13perf symbol: Add abi::__cxa_demangle C++ demangling supporttools/perf/Makefile.config tools/perf/util/Build tools/perf/util/demangle-cxx.cpp +2 more+88 -454 replies
10/13perf build: Switch libpfm4 to opt-out rather than opt-intools/perf/Makefile.config tools/perf/Makefile.perf tools/perf/tests/make+4 -50 replies
11/13perf build: If libtraceevent isn't present error the buildtools/perf/Makefile.config+1 -10 replies
12/13tools headers: Make the difference output easier to readtools/perf/check-headers.sh+125 -1042 replies
13/13perf build: Remove redundant NO_NEWT build optiontools/perf/Makefile.config tools/perf/Makefile.perf tools/perf/tests/make+2 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 00/13] Perf tool build improvements

Make the default build options a more preferred set, such as making BPF skeletons default and failing the build if jevents or libtracevent dependencies fail. The binutil dependencies are opt-in given license restrictions. abi::__cxa_demangle demangling support is added so that libiberty, from binutils, isn't necessary for C++ demangling.

Some build/test dependencies are fixed and the code cleaned up.

Ian Rogers (13):
perf build: Support python/perf.so testing
perf build: Make BUILD_BPF_SKEL default, rename to NO_BPF_SKEL perf build: Remove unused HAVE_GLIBC_SUPPORT
perf build: Error if no libelf and NO_LIBELF isn't set perf util: Remove weak sched_getcpu
perf build: Error if jevents won't work and NO_JEVENTS=1 isn't set perf build: Make binutil libraries opt in
tools build: Add feature test for abi::__cxa_demangle perf symbol: Add abi::__cxa_demangle C++ demangling support perf build: Switch libpfm4 to opt-out rather than opt-in perf build: If libtraceevent isn't present error the build tools headers: Make the difference output easier to read perf build: Remove redundant NO_NEWT build option

 tools/build/Makefile.feature              |   1 +
 tools/build/feature/Makefile              |   4 +
 tools/build/feature/test-cxa-demangle.cpp |  17 ++
 tools/perf/Makefile.config                |  84 +++-----
 tools/perf/Makefile.perf                  |  21 +-
 tools/perf/builtin-lock.c                 |   2 +-
 tools/perf/builtin-record.c               |   2 +-
 tools/perf/builtin-version.c              |   2 +-
 tools/perf/check-headers.sh               | 229 ++++++++++++----------
 tools/perf/tests/make                     |  17 +-
 tools/perf/tests/shell/record_offcpu.sh   |   2 +-
 tools/perf/util/Build                     |   1 +
 tools/perf/util/cloexec.c                 |  13 --
 tools/perf/util/demangle-cxx.cpp          |  50 +++++
 tools/perf/util/demangle-cxx.h            |  16 ++
 tools/perf/util/symbol-elf.c              |  37 +---
 tools/perf/util/util.c                    |  16 ++
 17 files changed, 294 insertions(+), 220 deletions(-)
 create mode 100644 tools/build/feature/test-cxa-demangle.cpp
 create mode 100644 tools/perf/util/demangle-cxx.cpp
 create mode 100644 tools/perf/util/demangle-cxx.h
Signature · 1 line
2.40.0.rc1.284.g88254d51c5-goog