[GIT PULL] perf tools fixes for v5.16: 2nd batch

From: Arnaldo Carvalho de Melo
Date: Tue Dec 07 2021 - 08:44:24 EST


Hi Linus,

Please consider pulling,

Best regards,

- Arnaldo

The following changes since commit cd8c917a56f20f48748dd43d9ae3caff51d5b987:

Makefile: Do not quote value for CONFIG_CC_IMPLICIT_FALLTHROUGH (2021-12-06 16:42:47 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-tools-fixes-for-v5.16-2021-12-07

for you to fetch changes up to 5a897531e00243cebbcc4dbe4ab06cd559ccf53f:

perf bpf_skel: Do not use typedef to avoid error on old clang (2021-12-06 21:57:53 -0300)

----------------------------------------------------------------
perf tools fixes for v5.16: 2nd batch

- Fix SMT detection fast read path on sysfs.

- Fix memory leaks when processing feature headers in perf.data files.

- Fix 'Simple expression parser' 'perf test' on arch without CPU die topology
info, such as s/390.

- Fix building perf with BUILD_BPF_SKEL=1.

- Fix 'perf bench' by reverting "perf bench: Fix two memory leaks detected with ASan".

- Fix itrace space allowed for new attributes in 'perf script'.

- Fix the build feature detection fast path, that was always failing on systems
with python3 development packages, speeding up the build.

- Reset shadow counts before loading, fixing metrics using duration_time.

- Sync more kernel headers changed by the new futex_waitv syscall: s390 and powerpc.

Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>

----------------------------------------------------------------
Adrian Hunter (1):
perf inject: Fix itrace space allowed for new attributes

Arnaldo Carvalho de Melo (3):
tools headers UAPI: Sync s390 syscall table file changed by new futex_waitv syscall
tools headers UAPI: Sync powerpc syscall table file changed by new futex_waitv syscall
tools build: Remove needless libpython-version feature check that breaks test-all fast path

Ian Rogers (3):
perf tools: Fix SMT detection fast read path
perf test: Reset shadow counts before loading
perf header: Fix memory leaks when processing feature headers

Jiri Olsa (1):
Revert "perf bench: Fix two memory leaks detected with ASan"

Song Liu (2):
perf bpf: Fix building perf with BUILD_BPF_SKEL=1 by default in more distros
perf bpf_skel: Do not use typedef to avoid error on old clang

Thomas Richter (1):
perf test: Fix 'Simple expression parser' test on arch without CPU die topology info

tools/build/Makefile.feature | 1 -
tools/build/feature/Makefile | 4 ----
tools/build/feature/test-all.c | 5 -----
tools/build/feature/test-libpython-version.c | 11 -----------
tools/perf/Makefile.config | 2 --
tools/perf/arch/powerpc/entry/syscalls/syscall.tbl | 1 +
tools/perf/arch/s390/entry/syscalls/syscall.tbl | 1 +
tools/perf/bench/sched-messaging.c | 4 ----
tools/perf/builtin-inject.c | 2 +-
tools/perf/tests/expr.c | 4 +++-
tools/perf/tests/parse-metric.c | 1 +
tools/perf/util/bpf_skel/bperf.h | 14 --------------
tools/perf/util/bpf_skel/bperf_follower.bpf.c | 19 ++++++++++++++-----
tools/perf/util/bpf_skel/bperf_leader.bpf.c | 19 ++++++++++++++-----
tools/perf/util/bpf_skel/bpf_prog_profiler.bpf.c | 2 +-
tools/perf/util/header.c | 15 ++++++++++-----
tools/perf/util/smt.c | 2 +-
17 files changed, 47 insertions(+), 60 deletions(-)
delete mode 100644 tools/build/feature/test-libpython-version.c
delete mode 100644 tools/perf/util/bpf_skel/bperf.h