perf tools fixes for v6.8:

Vendor events:

- Intel Alderlake/Sapphire Rapids metric fixes, the CPU type ("cpu_atom", "cpu_core")
  needs to be used as a prefix to be considered on a metric formula, detected via one
  of the 'perf test' entries.

'perf test' fixes:

- Fix the creation of event selector lists on 'perf test' entries, by initializing
  the sample ID flag, which is done by 'perf record', so this fix only the tests,
  the common case isn't affected.

- Make 'perf list' respect debug settings (-v) to fix its 'perf test' entry.

- Fix 'perf script' test when python support isn't enabled.

- Special case 'perf script' tests on s390, where only DWARF call graphs are
  supported and only on software events.

- Make 'perf daemon' signal test less racy.

Compiler warnings/errors:

- Remove needless malloc(0) call in 'perf top' that triggers -Walloc-size.

- Fix calloc() argument order to address error introduced in gcc-14.

Build:

- Make minimal shellcheck version to v0.6.0, avoiding the build to fail with older versions.

Sync kernel header copies:

  - stat.h to pick STATX_MNT_ID_UNIQUE.

  - msr-index.h to pick IA32_MKTME_KEYID_PARTITIONING.

  - drm.h to pick DRM_IOCTL_MODE_CLOSEFB.

  - unistd.h to pick {list,stat}mount, lsm_{[gs]et_self_attr,list_modules} syscall numbers.

  - x86 cpufeatures to pick TDX, Zen, APIC MSR fence changes.

  - x86's mem{cpy,set}_64.S used in 'perf bench'.

  - Also, without tooling effects: asm-generic/unaligned.h, mount.h, fcntl.h, kvm headers.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
perf tools headers: update the asm-generic/unaligned.h copy with the kernel sources

To pick up the changes in:

  1ab33c03145d0f6c ("asm-generic: make sparse happy with odd-sized put_unaligned_*()")

Addressing this perf tools build warning:

  Warning: Kernel ABI header differences:
    diff -u tools/include/asm-generic/unaligned.h include/asm-generic/unaligned.h

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/lkml/Zbp9I7rmFj1Owhug@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 file changed