diff --git a/bpf_perf_event_s390.h b/bpf_perf_event_s390.h new file mode 100644 index 0000000..3ed42ff --- /dev/null +++ b/bpf_perf_event_s390.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef _UAPI__ASM_BPF_PERF_EVENT_H__ +#define _UAPI__ASM_BPF_PERF_EVENT_H__ + +#include + +typedef user_pt_regs bpf_user_pt_regs_t; + +#endif /* _UAPI__ASM_BPF_PERF_EVENT_H__ */ diff --git a/perf.spec b/perf.spec index 04147cd..afc9db5 100644 --- a/perf.spec +++ b/perf.spec @@ -15,15 +15,21 @@ %bcond_without perl %endif +%global tag_version 6.12 Name: perf -Version: 6.12.0 +Version: %{tag_version}.0 Release: %autorelease Summary: Performance monitoring for the Linux kernel License: GPL-2.0-only URL: https://perf.wiki.kernel.org/ Source: https://mirrors.edge.kernel.org/pub/linux/kernel/tools/perf/v%{version}/perf-%{version}.tar.xz -Source1: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/arch/arm64/include/uapi/asm/bpf_perf_event.h?h=v6.9#/bpf_perf_event_arm64.h +Source1: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/arch/arm64/include/uapi/asm/bpf_perf_event.h?h=v%{tag_version}#/bpf_perf_event_arm64.h +Source2: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/arch/s390/include/uapi/asm/bpf_perf_event.h?h=v%{tag_version}#/bpf_perf_event_s390.h + +# No java-devel +# No point having a 32-bit perf anyway as even in Fedora the kernel is 64-bit +ExcludeArch: %{ix86} BuildRequires: make BuildRequires: bison @@ -105,8 +111,11 @@ to manipulate perf events. %if %{with libbpf} # copy in missing files UAPI_ASM_ARM_DIR=arch/arm64/include/uapi/asm +UAPI_ASM_S390_DIR=arch/s390/include/uapi/asm mkdir -p $UAPI_ASM_ARM_DIR +mkdir -p $UAPI_ASM_S390_DIR cp -p %{SOURCE1} $UAPI_ASM_ARM_DIR/bpf_perf_event.h +cp -p %{SOURCE2} $UAPI_ASM_S390_DIR/bpf_perf_event.h %endif