tools headers: Sync UAPI drm/drm.h with kernel sources
Subsystems (9)
Namhyung Kim
maintainerPATCH 1/11 tools headers: Sync UAPI drm/drm.h with kernel sources
To pick up changes from:
179ab8e7d7b378f1 ("drm/colorop: Introduce DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE")
This should be used to beautify DRM syscall arguments and it addresses these tools/perf build warnings:
Warning: Kernel ABI header differences:
diff -u tools/include/uapi/drm/drm.h include/uapi/drm/drm.h
Please see tools/include/README.kernel-copies.
--- tools/include/uapi/drm/drm.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
tools/include/uapi/drm/drm.h +15 -0
@@ -906,6 +906,21 @@ struct drm_get_cap {*/ #define DRM_CLIENT_CAP_CURSOR_PLANE_HOTSPOT 6 +/** +* DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE +* +* If set to 1 the DRM core will allow setting the COLOR_PIPELINE +* property on a &drm_plane, as well as drm_colorop properties. +* +* Setting of these plane properties will be rejected when this client +* cap is set: +* - COLOR_ENCODING +* - COLOR_RANGE +* +* The client must enable &DRM_CLIENT_CAP_ATOMIC first. +*/ +#define DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE 7 +/* DRM_IOCTL_SET_CLIENT_CAP ioctl argument type */ struct drm_set_client_cap {__u64 capability;
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
Namhyung Kim
maintainerPATCH 2/11 tools headers: Sync UAPI KVM headers with kernel sources
To pick up changes from:
ad9c62bd8946621e ("KVM: arm64: VM exit to userspace to handle SEA")
8e8678e740ecde2a ("KVM: s390: Add capability that forwards operation exceptions")
e0c26d47def7382d ("Merge tag 'kvm-s390-next-6.19-1' of https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into HEAD") 7a61d61396b97fd6 ("KVM: SEV: Publish supported SEV-SNP policy bits")
This should be used to beautify DRM syscall arguments and it addresses these tools/perf build warnings:
Warning: Kernel ABI header differences:
diff -u tools/include/uapi/linux/kvm.h include/uapi/linux/kvm.h diff -u tools/arch/x86/include/uapi/asm/kvm.h arch/x86/include/uapi/asm/kvm.h
Please see tools/include/README.kernel-copies.
--- tools/arch/x86/include/uapi/asm/kvm.h | 1 + tools/include/uapi/linux/kvm.h | 11 +++++++++++ 2 files changed, 12 insertions(+)
tools/arch/x86/include/uapi/asm/kvm.h +1 -0
@@ -502,6 +502,7 @@ struct kvm_sync_regs {/* vendor-specific groups and attributes for system fd */ #define KVM_X86_GRP_SEV 1# define KVM_X86_SEV_VMSA_FEATURES 0 +# define KVM_X86_SNP_POLICY_BITS 1struct kvm_vmx_nested_state_data {__u8 vmcs12[KVM_STATE_NESTED_VMX_VMCS_SIZE ];
tools/include/uapi/linux/kvm.h +11 -0
@@ -179,6 +179,7 @@ struct kvm_xen_exit {#define KVM_EXIT_LOONGARCH_IOCSR 38#define KVM_EXIT_MEMORY_FAULT 39#define KVM_EXIT_TDX 40 +#define KVM_EXIT_ARM_SEA 41/* For KVM_EXIT_INTERNAL_ERROR */ /* Emulate instruction failed. */
@@ -473,6 +474,14 @@ struct kvm_run { } setup_event_notify; }; } tdx; +/* KVM_EXIT_ARM_SEA */ +struct { +#define KVM_EXIT_ARM_SEA_FLAG_GPA_VALID (1ULL << 0) +__u64 flags; +__u64 esr; +__u64 gva; +__u64 gpa; + } arm_sea;/* Fix the size of the union. */ char padding[256 ]; };
@@ -963,6 +972,8 @@ struct kvm_enable_cap {#define KVM_CAP_RISCV_MP_STATE_RESET 242#define KVM_CAP_ARM_CACHEABLE_PFNMAP_SUPPORTED 243#define KVM_CAP_GUEST_MEMFD_FLAGS 244 +#define KVM_CAP_ARM_SEA_TO_USER 245 +#define KVM_CAP_S390_USER_OPEREXEC 246struct kvm_irq_routing_irqchip {__u32 irqchip;
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
Namhyung Kim
maintainerPATCH 3/11 tools headers: Sync UAPI linux/fcntl.h with kernel sources
In reply to Namhyung KimTo pick up changes from:
fe93446b5ebdaa89 ("vfs: use UAPI types for new struct delegation definition") 4be9e04ebf75a5c4 ("vfs: add needed headers for new struct delegation definition") 1602bad16d7df82f ("vfs: expose delegation support to userland")
This should be used to beautify fcntl syscall arguments and it addresses these tools/perf build warnings:
Warning: Kernel ABI header differences:
diff -u tools/perf/trace/beauty/include/uapi/linux/fcntl.h include/uapi/linux/fcntl.h
Please see tools/include/README.kernel-copies.
--- tools/perf/trace/beauty/include/uapi/linux/fcntl.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)
tools/perf/trace/beauty/include/uapi/linux/fcntl.h +12 -0
@@ -4,6 +4,7 @@#include <asm/fcntl.h> #include <linux/openat2.h> +#include <linux/types.h> #define F_SETLEASE (F_LINUX_SPECIFIC_BASE + 0)#define F_GETLEASE (F_LINUX_SPECIFIC_BASE + 1)
@@ -79,6 +80,17 @@*/ #define RWF_WRITE_LIFE_NOT_SET RWH_WRITE_LIFE_NOT_SET +/* Set/Get delegations */ +#define F_GETDELEG (F_LINUX_SPECIFIC_BASE + 15) +#define F_SETDELEG (F_LINUX_SPECIFIC_BASE + 16) + +/* Argument structure for F_GETDELEG and F_SETDELEG */ +struct delegation { +__u32 d_flags;/* Must be 0 */ +__u16 d_type;/* F_RDLCK, F_WRLCK, F_UNLCK */ +__u16 __pad;/* Must be 0 */ +}; +/* * Types of directory notifications that may be requested. */
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
Namhyung Kim
maintainerPATCH 4/11 tools headers: Sync UAPI linux/fs.h with kernel sources
In reply to Namhyung KimTo pick up changes from:
b30ffcdc0c15a88f ("block: introduce BLKREPORTZONESV2 ioctl") 0d8627cc936de8ea ("blktrace: add definitions for blk_user_trace_setup2")
This should be used to beautify ioctl syscall arguments and it addresses these tools/perf build warnings:
Warning: Kernel ABI header differences:
diff -u tools/perf/trace/beauty/include/uapi/linux/fs.h include/uapi/linux/fs.h
Please see tools/include/README.kernel-copies.
--- tools/perf/trace/beauty/include/uapi/linux/fs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
tools/perf/trace/beauty/include/uapi/linux/fs.h +2 -1
@@ -298,8 +298,9 @@ struct file_attr {#define BLKROTATIONAL _IO(0x12,126)#define BLKZEROOUT _IO(0x12,127)#define BLKGETDISKSEQ _IOR(0x12,128,__u64) -/* 130-136 are used by zoned block device ioctls (uapi/linux/blkzoned.h) */ +/* 130-136 and 142 are used by zoned block device ioctls (uapi/linux/blkzoned.h) */ /* 137-141 are used by blk-crypto ioctls (uapi/linux/blk-crypto.h) */ +#define BLKTRACESETUP2 _IOWR(0x12, 142, struct blk_user_trace_setup2)#define BMAP_IOCTL 1/* obsolete - kept for compatibility */ #define FIBMAP _IO(0x00,1)/* bmap access */
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
Namhyung Kim
maintainerPATCH 5/11 tools headers: Sync UAPI linux/mount.h with kernel sources
In reply to Namhyung KimTo pick up changes from:
78f0e33cd6c939a5 ("fs/namespace: correctly handle errors returned by grab_requested_mnt_ns")
This should be used to beautify mount syscall arguments and it addresses these tools/perf build warnings:
Warning: Kernel ABI header differences:
diff -u tools/perf/trace/beauty/include/uapi/linux/mount.h include/uapi/linux/mount.h
Please see tools/include/README.kernel-copies.
--- tools/perf/trace/beauty/include/uapi/linux/mount.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/trace/beauty/include/uapi/linux/mount.h +1 -1
@@ -197,7 +197,7 @@ struct statmount {*/ struct mnt_id_req {__u32 size; -__u32 spare; +__u32 mnt_ns_fd;__u64 mnt_id;__u64 param;__u64 mnt_ns_id;
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
Namhyung Kim
maintainerPATCH 6/11 tools headers: Sync UAPI sound/asound.h with kernel sources
In reply to Namhyung KimTo pick up changes from:
9a97857db0c5655b ("ALSA: uapi: Fix typo in asound.h comment")
This should address these tools/perf build warnings:
Warning: Kernel ABI header differences:
diff -u tools/perf/trace/beauty/include/uapi/sound/asound.h include/uapi/sound/asound.h
Please see tools/include/README.kernel-copies.
--- tools/perf/trace/beauty/include/uapi/sound/asound.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/trace/beauty/include/uapi/sound/asound.h +1 -1
@@ -60,7 +60,7 @@ struct snd_cea_861_aud_if {unsigned char db2_sf_ss;/* sample frequency and size */ unsigned char db3;/* not used, all zeros */ unsigned char db4_ca;/* channel allocation code */ -unsigned char db5_dminh_lsv;/* downmix inhibit & level-shit values */ +unsigned char db5_dminh_lsv;/* downmix inhibit & level-shift values */ };/****************************************************************************
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
Namhyung Kim
maintainerPATCH 7/11 tools headers: Sync x86 headers with kernel sources
In reply to Namhyung KimTo pick up changes from:
54de197c9a5e8f52 ("Merge tag 'x86_sgx_for_6.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip")
679fcce0028bf101 ("Merge tag 'kvm-x86-svm-6.19' of https://github.com/kvm-x86/linux into HEAD") 3767def18f4cc394 ("x86/cpufeatures: Add support for L3 Smart Data Cache Injection Allocation Enforcement") f6106d41ec84e552 ("x86/bugs: Use an x86 feature to track the MMIO Stale Data mitigation") 7baadd463e147fdc ("x86/cpufeatures: Enumerate the LASS feature bits")
47955b58cf9b97fe ("x86/cpufeatures: Correct LKGS feature flag description")
5d0316e25defee47 ("x86/cpufeatures: Add X86_FEATURE_X2AVIC_EXT")
6ffdb49101f02313 ("x86/cpufeatures: Add X86_FEATURE_SGX_EUPDATESVN feature flag") 4793f990ea152330 ("KVM: x86: Advertise EferLmsleUnsupported to userspace")
bb5f13df3c455110 ("perf/x86/intel: Add counter group support for arch-PEBS") 52448a0a739002ec ("perf/x86/intel: Setup PEBS data configuration and enable legacy groups") d21954c8a0ffbc94 ("perf/x86/intel: Process arch-PEBS records or record fragments") bffeb2fd0b9c99d8 ("x86/microcode/intel: Enable staging when available")
740144bc6bde9d44 ("x86/microcode/intel: Establish staging control logic")
This should address these tools/perf build warnings:
Warning: Kernel ABI header differences:
diff -u tools/arch/x86/include/asm/cpufeatures.h arch/x86/include/asm/cpufeatures.h diff -u tools/arch/x86/include/asm/msr-index.h arch/x86/include/asm/msr-index.h
Please see tools/include/README.kernel-copies.
--- tools/arch/x86/include/asm/cpufeatures.h | 11 +++++++++ tools/arch/x86/include/asm/msr-index.h | 30 ++++++++++++++++++++++++ 2 files changed, 41 insertions(+)
tools/arch/x86/include/asm/cpufeatures.h +11 -0
@@ -314,6 +314,7 @@#define X86_FEATURE_SM4 (12*32+ 2)/* SM4 instructions */ #define X86_FEATURE_AVX_VNNI (12*32+ 4)/* "avx_vnni" AVX VNNI instructions */ #define X86_FEATURE_AVX512_BF16 (12*32+ 5)/* "avx512_bf16" AVX512 BFLOAT16 instructions */ +#define X86_FEATURE_LASS (12*32+ 6)/* "lass" Linear Address Space Separation */ #define X86_FEATURE_CMPCCXADD (12*32+ 7)/* CMPccXADD instructions */ #define X86_FEATURE_ARCH_PERFMON_EXT (12*32+ 8)/* Intel Architectural PerfMon Extension */ #define X86_FEATURE_FZRM (12*32+10)/* Fast zero-length REP MOVSB */
@@ -338,6 +339,7 @@#define X86_FEATURE_AMD_STIBP (13*32+15)/* Single Thread Indirect Branch Predictors */ #define X86_FEATURE_AMD_STIBP_ALWAYS_ON (13*32+17)/* Single Thread Indirect Branch Predictors always-on preferred */ #define X86_FEATURE_AMD_IBRS_SAME_MODE (13*32+19)/* Indirect Branch Restricted Speculation same mode protection*/ +#define X86_FEATURE_EFER_LMSLE_MBZ (13*32+20)/* EFER.LMSLE must be zero */ #define X86_FEATURE_AMD_PPIN (13*32+23)/* "amd_ppin" Protected Processor Inventory Number */ #define X86_FEATURE_AMD_SSBD (13*32+24)/* Speculative Store Bypass Disable */ #define X86_FEATURE_VIRT_SSBD (13*32+25)/* "virt_ssbd" Virtualized Speculative Store Bypass Disable */
@@ -502,6 +504,15 @@#define X86_FEATURE_IBPB_EXIT_TO_USER (21*32+14)/* Use IBPB on exit-to-userspace, see VMSCAPE bug */ #define X86_FEATURE_ABMC (21*32+15)/* Assignable Bandwidth Monitoring Counters */ #define X86_FEATURE_MSR_IMM (21*32+16)/* MSR immediate form instructions */ +#define X86_FEATURE_SGX_EUPDATESVN (21*32+17)/* Support for ENCLS[EUPDATESVN] instruction */ + +#define X86_FEATURE_SDCIAE (21*32+18)/* L3 Smart Data Cache Injection Allocation Enforcement */ +#define X86_FEATURE_CLEAR_CPU_BUF_VM_MMIO (21*32+19)/* +* Clear CPU buffers before VM-Enter if the vCPU +* can access host MMIO (ignored for all intents +* and purposes if CLEAR_CPU_BUF_VM is set). +*/ +#define X86_FEATURE_X2AVIC_EXT (21*32+20)/* AMD SVM x2AVIC support for 4k vCPUs */ /* * BUG word(s)
tools/arch/x86/include/asm/msr-index.h +30 -0
@@ -166,6 +166,10 @@* Processor MMIO stale data * vulnerabilities. */ +#define ARCH_CAP_MCU_ENUM BIT(16)/* +* Indicates the presence of microcode update +* feature enumeration and status information. +*/ #define ARCH_CAP_FB_CLEAR BIT(17)/* * VERW clears CPU fill buffer * even on MDS_NO CPUs.
@@ -327,6 +331,26 @@ PERF_CAP_PEBS_FORMAT | PERF_CAP_PEBS_BASELINE | \ PERF_CAP_PEBS_TIMING_INFO) +/* Arch PEBS */ +#define MSR_IA32_PEBS_BASE 0x000003f4 +#define MSR_IA32_PEBS_INDEX 0x000003f5 +#define ARCH_PEBS_OFFSET_MASK 0x7fffff +#define ARCH_PEBS_INDEX_WR_SHIFT 4 + +#define ARCH_PEBS_RELOAD 0xffffffff +#define ARCH_PEBS_CNTR_ALLOW BIT_ULL(35) +#define ARCH_PEBS_CNTR_GP BIT_ULL(36) +#define ARCH_PEBS_CNTR_FIXED BIT_ULL(37) +#define ARCH_PEBS_CNTR_METRICS BIT_ULL(38) +#define ARCH_PEBS_LBR_SHIFT 40 +#define ARCH_PEBS_LBR (0x3ull << ARCH_PEBS_LBR_SHIFT) +#define ARCH_PEBS_VECR_XMM BIT_ULL(49) +#define ARCH_PEBS_GPR BIT_ULL(61) +#define ARCH_PEBS_AUX BIT_ULL(62) +#define ARCH_PEBS_EN BIT_ULL(63) +#define ARCH_PEBS_CNTR_MASK (ARCH_PEBS_CNTR_GP | ARCH_PEBS_CNTR_FIXED | \ + ARCH_PEBS_CNTR_METRICS) +#define MSR_IA32_RTIT_CTL 0x00000570#define RTIT_CTL_TRACEEN BIT(0)#define RTIT_CTL_CYCLEACC BIT(1)
@@ -929,6 +953,10 @@#define MSR_IA32_APICBASE_BASE (0xfffff<<12)#define MSR_IA32_UCODE_WRITE 0x00000079 + +#define MSR_IA32_MCU_ENUMERATION 0x0000007b +#define MCU_STAGING BIT(4) +#define MSR_IA32_UCODE_REV 0x0000008b/* Intel SGX Launch Enclave Public Key Hash MSRs */
@@ -1226,6 +1254,8 @@#define MSR_IA32_VMX_VMFUNC 0x00000491#define MSR_IA32_VMX_PROCBASED_CTLS3 0x00000492 +#define MSR_IA32_MCU_STAGING_MBOX_ADDR 0x000007a5 +/* Resctrl MSRs: */ /* - Intel: */ #define MSR_IA32_L3_QOS_CFG 0xc81
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
Namhyung Kim
maintainerPATCH 8/11 tools headers: Sync arm64 headers with kernel sources
In reply to Namhyung KimTo pick up changes from:
b0a3f0e894f34e01 ("arm64/sysreg: Replace TCR_EL1 field macros") 3bbf004c4808e2c3 ("arm64: cputype: Add Neoverse-V3AE definitions") e185c8a0d84236d1 ("arm64: cputype: Add NVIDIA Olympus definitions") 52b49bd6de29a89a ("arm64: cputype: Remove duplicate Cortex-X1C definitions")
This should address these tools/perf build warnings:
Warning: Kernel ABI header differences:
diff -u tools/arch/arm64/include/asm/cputype.h arch/arm64/include/asm/cputype.h
Please see tools/include/README.kernel-copies.
Note that this is still out of sync due to is_midr_in_range_list().
--- tools/arch/arm64/include/asm/cputype.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
tools/arch/arm64/include/asm/cputype.h +5 -3
@@ -81,7 +81,6 @@#define ARM_CPU_PART_CORTEX_A78AE 0xD42#define ARM_CPU_PART_CORTEX_X1 0xD44#define ARM_CPU_PART_CORTEX_A510 0xD46 -#define ARM_CPU_PART_CORTEX_X1C 0xD4C#define ARM_CPU_PART_CORTEX_A520 0xD80#define ARM_CPU_PART_CORTEX_A710 0xD47#define ARM_CPU_PART_CORTEX_A715 0xD4D
@@ -93,6 +92,7 @@#define ARM_CPU_PART_NEOVERSE_V2 0xD4F#define ARM_CPU_PART_CORTEX_A720 0xD81#define ARM_CPU_PART_CORTEX_X4 0xD82 +#define ARM_CPU_PART_NEOVERSE_V3AE 0xD83#define ARM_CPU_PART_NEOVERSE_V3 0xD84#define ARM_CPU_PART_CORTEX_X925 0xD85#define ARM_CPU_PART_CORTEX_A725 0xD87
@@ -130,6 +130,7 @@#define NVIDIA_CPU_PART_DENVER 0x003#define NVIDIA_CPU_PART_CARMEL 0x004 +#define NVIDIA_CPU_PART_OLYMPUS 0x010#define FUJITSU_CPU_PART_A64FX 0x001
@@ -171,7 +172,6 @@#define MIDR_CORTEX_A78AE MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A78AE)#define MIDR_CORTEX_X1 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_X1)#define MIDR_CORTEX_A510 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A510) -#define MIDR_CORTEX_X1C MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_X1C)#define MIDR_CORTEX_A520 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A520)#define MIDR_CORTEX_A710 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A710)#define MIDR_CORTEX_A715 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A715)
@@ -183,6 +183,7 @@#define MIDR_NEOVERSE_V2 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_NEOVERSE_V2)#define MIDR_CORTEX_A720 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A720)#define MIDR_CORTEX_X4 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_X4) +#define MIDR_NEOVERSE_V3AE MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_NEOVERSE_V3AE)#define MIDR_NEOVERSE_V3 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_NEOVERSE_V3)#define MIDR_CORTEX_X925 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_X925)#define MIDR_CORTEX_A725 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A725)
@@ -222,6 +223,7 @@#define MIDR_NVIDIA_DENVER MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_DENVER)#define MIDR_NVIDIA_CARMEL MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_CARMEL) +#define MIDR_NVIDIA_OLYMPUS MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_OLYMPUS)#define MIDR_FUJITSU_A64FX MIDR_CPU_MODEL(ARM_CPU_IMP_FUJITSU, FUJITSU_CPU_PART_A64FX)#define MIDR_HISI_TSV110 MIDR_CPU_MODEL(ARM_CPU_IMP_HISI, HISI_CPU_PART_TSV110)#define MIDR_HISI_HIP09 MIDR_CPU_MODEL(ARM_CPU_IMP_HISI, HISI_CPU_PART_HIP09)
@@ -245,7 +247,7 @@/* Fujitsu Erratum 010001 affects A64FX 1.0 and 1.1, (v0r0 and v1r0) */ #define MIDR_FUJITSU_ERRATUM_010001 MIDR_FUJITSU_A64FX#define MIDR_FUJITSU_ERRATUM_010001_MASK (~MIDR_CPU_VAR_REV(1, 0)) -#define TCR_CLEAR_FUJITSU_ERRATUM_010001 (TCR_NFD1 | TCR_NFD0) +#define TCR_CLEAR_FUJITSU_ERRATUM_010001 (TCR_EL1_NFD1 | TCR_EL1_NFD0)#ifndef __ASSEMBLER__
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
Re: [PATCH 08/11] tools headers: Sync arm64 headers with kernel sources
Hi Namhyung,
On Mon, Dec 22, 2025 at 02:57:13PM -0800, Namhyung Kim wrote:
[...]
Quoted 3 lines
#define
NVIDIA_CPU_PART_DENVER0x003
#defineNVIDIA_CPU_PART_CARMEL0x004
+#defineNVIDIA_CPU_PART_OLYMPUS0x010
Just remind, this is duplicated with patch [1], so you may decide which one to pick for merging.
Otherwise, LGTM:
[1] https://lore.kernel.org/linux-perf-users/[email protected]/T/#u
Namhyung Kim
maintainerRe: [PATCH 08/11] tools headers: Sync arm64 headers with kernel sources
Hi Leo,
Quoted 4 lines · Leo Yan
Hi Namhyung,
On Mon, Dec 22, 2025 at 02:57:13PM -0800, Namhyung Kim wrote:
Quoted 8 lines
[...]
Quoted 3 lines
#define
NVIDIA_CPU_PART_DENVER0x003
#defineNVIDIA_CPU_PART_CARMEL0x004
+#defineNVIDIA_CPU_PART_OLYMPUS0x010Just remind, this is duplicated with patch [1], so you may decide which one to pick for merging.
Oh, thanks for the reminder. I've missed it. I think it's small enough to merge to perf-tools tree. I'll drop this part.
Quoted 4 lines
Otherwise, LGTM:
Reviewed-by Leo Yan <[email protected]>
Thanks,
Namhyung
Namhyung Kim
maintainerPATCH 9/11 tools headers: Sync linux/gfp_types.h with kernel sources
In reply to Namhyung KimTo pick up changes from:
4c0a17e28340e458 ("slab: prevent recursive kmalloc() in alloc_empty_sheaf()")
This would be used to handle GFP masks in the perf code and address these tools/perf build warnings:
Warning: Kernel ABI header differences:
diff -u tools/include/linux/gfp_types.h include/linux/gfp_types.h
Please see tools/include/README.kernel-copies.
--- tools/include/linux/gfp_types.h | 6 ------ 1 file changed, 6 deletions(-)
tools/include/linux/gfp_types.h +0 -6
@@ -55,9 +55,7 @@ enum {#ifdef CONFIG_LOCKDEP ___GFP_NOLOCKDEP_BIT, #endif -#ifdef CONFIG_SLAB_OBJ_EXT ___GFP_NO_OBJ_EXT_BIT, -#endif ___GFP_LAST_BIT };
@@ -98,11 +96,7 @@ enum {#else #define ___GFP_NOLOCKDEP 0#endif -#ifdef CONFIG_SLAB_OBJ_EXT #define ___GFP_NO_OBJ_EXT BIT(___GFP_NO_OBJ_EXT_BIT) -#else -#define ___GFP_NO_OBJ_EXT 0 -#endif /* * Physical address zone modifiers (see linux/mmzone.h - low four bits)
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
Re: [PATCH 09/11] tools headers: Sync linux/gfp_types.h with kernel sources
Quoted 11 lines · On Mon, 22 Dec 2025 14:57:14 -0800 Namhyung Kim <[email protected]> wrote:
To pick up changes from:
4c0a17e28340e458("slab: prevent recursivekmalloc()inalloc_empty_sheaf()")This would be used to handle GFP masks in the perf code and address these
tools/perfbuild warnings:Warning: Kernel ABI header differences:
diff -utools/include/linux/gfp_types.hinclude/linux/gfp_types.hPlease see
tools/include/README.kernel-copies.
Nit. I don't find the file on linux-next tree. Do you mean tools/include/uapi/README [1]?
[1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/tools/include/uapi/README
Quoted 3 lines
Signed-off-by Namhyung Kim <[email protected]>
Other than the above trivial nit,
Thanks,
SJ
[...]
Namhyung Kim
maintainerRe: [PATCH 09/11] tools headers: Sync linux/gfp_types.h with kernel sources
Hi SeongJae,
Quoted 12 lines · SeongJae Park
Quoted 10 lines · On Mon, 22 Dec 2025 14:57:14 -0800 Namhyung Kim <[email protected]> wrote:
To pick up changes from:
4c0a17e28340e458("slab: prevent recursivekmalloc()inalloc_empty_sheaf()")This would be used to handle GFP masks in the perf code and address these
tools/perfbuild warnings:Warning: Kernel ABI header differences:
diff -utools/include/linux/gfp_types.hinclude/linux/gfp_types.h
Quoted 6 lines
Quoted 1 line
Please see
tools/include/README.kernel-copies.Nit. I don't find the file on linux-next tree. Do you mean
tools/include/uapi/README[1]?[1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/tools/include/uapi/README
Oops, you're right. I've used a wrong template. Will fix.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Namhyung Kim <[email protected]>Other than the above trivial nit,
Acked-by SeongJae Park <[email protected]>
Thanks for your review!
Namhyung
Namhyung Kim
maintainerPATCH 10/11 tools headers: Sync linux/socket.h with kernel sources
In reply to Namhyung KimTo pick up changes from:
d73c167708739137 ("socket: Split out a getsockname helper for io_uring") 4677e78800bbde62 ("socket: Unify getsockname and getpeername implementation") bf33247a90d3e85d ("net: Add struct sockaddr_unsized for sockaddr of unknown length")
This should be used to beautify socket syscall arguments and it addresses these tools/perf build warnings:
Warning: Kernel ABI header differences:
diff -u tools/perf/trace/beauty/include/linux/socket.h include/linux/socket.h
Please see tools/include/README.kernel-copies.
--- .../perf/trace/beauty/include/linux/socket.h | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-)
tools/perf/trace/beauty/include/linux/socket.h +21 -3
@@ -32,11 +32,29 @@ typedef __kernel_sa_family_t sa_family_t;* 1003.1g requires sa_family_t and that sa_data is char. */ +/* Deprecated for in-kernel use. Use struct sockaddr_unsized instead. */ struct sockaddr {sa_family_t sa_family;/* address family, AF_xxx */ char sa_data[14 ];/* 14 bytes of protocol address */ }; +/** +* struct sockaddr_unsized - Unspecified size sockaddr for callbacks +* @sa_family: Address family (AF_UNIX, AF_INET, AF_INET6, etc.) +* @sa_data: Flexible array for address data +* +* This structure is designed for callback interfaces where the +* total size is known via the sockaddr_len parameter. Unlike struct +* sockaddr which has a fixed 14-byte sa_data limit or struct +* sockaddr_storage which has a fixed 128-byte sa_data limit, this +* structure can accommodate addresses of any size, but must be used +* carefully. +*/ +struct sockaddr_unsized { +__kernel_sa_family_t sa_family;/* address family, AF_xxx */ +char sa_data[];/* flexible address data */ +}; +struct linger {int l_onoff;/* Linger active */ int l_linger;/* How long to linger for */
@@ -450,10 +468,10 @@ extern int __sys_connect(int fd, struct sockaddr __user *uservaddr, int addrlen);extern int __sys_listen (int fd,int backlog);extern int __sys_listen_socket (struct socket *sock,int backlog); +extern int do_getsockname (struct socket *sock,int peer, +struct sockaddr __user *usockaddr,int __user *usockaddr_len);extern int __sys_getsockname (int fd,struct sockaddr __user *usockaddr, -int __user *usockaddr_len); -extern int __sys_getpeername (int fd,struct sockaddr __user *usockaddr, -int __user *usockaddr_len); +int __user *usockaddr_len,int peer);extern int __sys_socketpair (int family,int type,int protocol,int __user *usockvec);extern int __sys_shutdown_sock (struct socket *sock,int how);
Signature · 1 line
2.52.0.351.gbe84eed79e-goog
Namhyung Kim
maintainerPATCH 11/11 tools headers: Sync syscall table with kernel sources
In reply to Namhyung KimTo pick up changes from:
b36d4b6aa88ef039 ("arch: hookup listns() system call")
This should be used to beautify the syscall arguments and it addresses these tools/perf build warnings:
Warning: Kernel ABI header differences:
diff -u tools/include/uapi/asm-generic/unistd.h include/uapi/asm-generic/unistd.h diff -u tools/scripts/syscall.tbl scripts/syscall.tbl
diff -u tools/perf/arch/x86/entry/syscalls/syscall_32.tbl arch/x86/entry/syscalls/syscall_32.tbl diff -u tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entry/syscalls/syscall_64.tbl diff -u tools/perf/arch/powerpc/entry/syscalls/syscall.tbl arch/powerpc/kernel/syscalls/syscall.tbl diff -u tools/perf/arch/s390/entry/syscalls/syscall.tbl arch/s390/kernel/syscalls/syscall.tbl diff -u tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl arch/mips/kernel/syscalls/syscall_n64.tbl diff -u tools/perf/arch/arm/entry/syscalls/syscall.tbl arch/arm/tools/syscall.tbl diff -u tools/perf/arch/sh/entry/syscalls/syscall.tbl arch/sh/kernel/syscalls/syscall.tbl diff -u tools/perf/arch/sparc/entry/syscalls/syscall.tbl arch/sparc/kernel/syscalls/syscall.tbl diff -u tools/perf/arch/xtensa/entry/syscalls/syscall.tbl arch/xtensa/kernel/syscalls/syscall.tbl
Please see tools/include/README.kernel-copies.
Note that s390 syscall table is still out of sync as it switches to use the generic table. But I'd like to minimize the change in this commit.
--- tools/include/uapi/asm-generic/unistd.h | 4 +++- tools/perf/arch/arm/entry/syscalls/syscall.tbl | 1 + tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl | 1 + tools/perf/arch/powerpc/entry/syscalls/syscall.tbl | 1 + tools/perf/arch/s390/entry/syscalls/syscall.tbl | 1 + tools/perf/arch/sh/entry/syscalls/syscall.tbl | 1 + tools/perf/arch/sparc/entry/syscalls/syscall.tbl | 1 + tools/perf/arch/x86/entry/syscalls/syscall_32.tbl | 1 + tools/perf/arch/x86/entry/syscalls/syscall_64.tbl | 1 + tools/perf/arch/xtensa/entry/syscalls/syscall.tbl | 1 + tools/scripts/syscall.tbl | 1 + 11 files changed, 13 insertions(+), 1 deletion(-)
tools/include/uapi/asm-generic/unistd.h +3 -1
@@ -857,9 +857,11 @@ __SYSCALL(__NR_open_tree_attr, sys_open_tree_attr) __SYSCALL(__NR_file_getattr, sys_file_getattr)#define __NR_file_setattr 469 __SYSCALL(__NR_file_setattr, sys_file_setattr) +#define __NR_listns 470 +__SYSCALL(__NR_listns, sys_listns)#undef __NR_syscalls -#define __NR_syscalls 470 +#define __NR_syscalls 471/* * 32 bit systems traditionally used different
tools/perf/arch/arm/entry/syscalls/syscall.tbl +1 -0
@@ -484,3 +484,4 @@ 467 common open_tree_attr sys_open_tree_attr 468 common file_getattr sys_file_getattr 469 common file_setattr sys_file_setattr +470 common listns sys_listns
tools/perf/arch/mips/entry/syscalls/syscall_n64.tbl +1 -0
@@ -384,3 +384,4 @@ 467 n64 open_tree_attr sys_open_tree_attr 468 n64 file_getattr sys_file_getattr 469 n64 file_setattr sys_file_setattr +470 n64 listns sys_listns
tools/perf/arch/powerpc/entry/syscalls/syscall.tbl +1 -0
@@ -560,3 +560,4 @@ 467 common open_tree_attr sys_open_tree_attr 468 common file_getattr sys_file_getattr 469 common file_setattr sys_file_setattr +470 common listns sys_listns
tools/perf/arch/s390/entry/syscalls/syscall.tbl +1 -0
@@ -472,3 +472,4 @@ 467 common open_tree_attr sys_open_tree_attr sys_open_tree_attr 468 common file_getattr sys_file_getattr sys_file_getattr 469 common file_setattr sys_file_setattr sys_file_setattr +470 common listns sys_listns sys_listns
tools/perf/arch/sh/entry/syscalls/syscall.tbl +1 -0
@@ -473,3 +473,4 @@ 467 common open_tree_attr sys_open_tree_attr 468 common file_getattr sys_file_getattr 469 common file_setattr sys_file_setattr +470 common listns sys_listns
tools/perf/arch/sparc/entry/syscalls/syscall.tbl +1 -0
@@ -515,3 +515,4 @@ 467 common open_tree_attr sys_open_tree_attr 468 common file_getattr sys_file_getattr 469 common file_setattr sys_file_setattr +470 common listns sys_listns
tools/perf/arch/x86/entry/syscalls/syscall_32.tbl +1 -0
@@ -475,3 +475,4 @@ 467 i386 open_tree_attr sys_open_tree_attr 468 i386 file_getattr sys_file_getattr 469 i386 file_setattr sys_file_setattr +470 i386 listns sys_listns
tools/perf/arch/x86/entry/syscalls/syscall_64.tbl +1 -0
@@ -394,6 +394,7 @@ 467 common open_tree_attr sys_open_tree_attr 468 common file_getattr sys_file_getattr 469 common file_setattr sys_file_setattr +470 common listns sys_listns # # Due to a historical design error, certain syscalls are numbered differently
tools/perf/arch/xtensa/entry/syscalls/syscall.tbl +1 -0
@@ -440,3 +440,4 @@ 467 common open_tree_attr sys_open_tree_attr 468 common file_getattr sys_file_getattr 469 common file_setattr sys_file_setattr +470 common listns sys_listns
tools/scripts/syscall.tbl +1 -0
@@ -410,3 +410,4 @@ 467 common open_tree_attr sys_open_tree_attr 468 common file_getattr sys_file_getattr 469 common file_setattr sys_file_setattr +470 common listns sys_listns
Signature · 1 line
2.52.0.351.gbe84eed79e-goog