Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'perf-urgent-2020-04-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull perf tooling fixes and updates from Thomas Gleixner:

- Fix the header line of perf stat output for '--metric-only --per-socket'

- Fix the python build with clang

- The usual tools UAPI header synchronization

* tag 'perf-urgent-2020-04-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
tools headers: Synchronize linux/bits.h with the kernel sources
tools headers: Adopt verbatim copy of compiletime_assert() from kernel sources
tools headers: Update x86's syscall_64.tbl with the kernel sources
tools headers UAPI: Sync drm/i915_drm.h with the kernel sources
tools headers UAPI: Update tools's copy of drm.h headers
tools headers kvm: Sync linux/kvm.h with the kernel sources
tools headers UAPI: Sync linux/fscrypt.h with the kernel sources
tools include UAPI: Sync linux/vhost.h with the kernel sources
tools arch x86: Sync asm/cpufeatures.h with the kernel sources
tools headers UAPI: Sync linux/mman.h with the kernel
tools headers UAPI: Sync sched.h with the kernel
tools headers: Update linux/vdso.h and grab a copy of vdso/const.h
perf stat: Fix no metric header if --per-socket and --metric-only set
perf python: Check if clang supports -fno-semantic-interposition
tools arch x86: Sync the msr-index.h copy with the kernel sources

+646 -387
+4 -1
tools/arch/x86/include/asm/cpufeatures.h
··· 217 217 #define X86_FEATURE_IBRS ( 7*32+25) /* Indirect Branch Restricted Speculation */ 218 218 #define X86_FEATURE_IBPB ( 7*32+26) /* Indirect Branch Prediction Barrier */ 219 219 #define X86_FEATURE_STIBP ( 7*32+27) /* Single Thread Indirect Branch Predictors */ 220 - #define X86_FEATURE_ZEN ( 7*32+28) /* "" CPU is AMD family 0x17 (Zen) */ 220 + #define X86_FEATURE_ZEN ( 7*32+28) /* "" CPU is AMD family 0x17 or above (Zen) */ 221 221 #define X86_FEATURE_L1TF_PTEINV ( 7*32+29) /* "" L1TF workaround PTE inversion */ 222 222 #define X86_FEATURE_IBRS_ENHANCED ( 7*32+30) /* Enhanced IBRS */ 223 223 #define X86_FEATURE_MSR_IA32_FEAT_CTL ( 7*32+31) /* "" MSR IA32_FEAT_CTL configured */ ··· 285 285 #define X86_FEATURE_CQM_MBM_LOCAL (11*32+ 3) /* LLC Local MBM monitoring */ 286 286 #define X86_FEATURE_FENCE_SWAPGS_USER (11*32+ 4) /* "" LFENCE in user entry SWAPGS path */ 287 287 #define X86_FEATURE_FENCE_SWAPGS_KERNEL (11*32+ 5) /* "" LFENCE in kernel entry SWAPGS path */ 288 + #define X86_FEATURE_SPLIT_LOCK_DETECT (11*32+ 6) /* #AC for split lock */ 288 289 289 290 /* Intel-defined CPU features, CPUID level 0x00000007:1 (EAX), word 12 */ 290 291 #define X86_FEATURE_AVX512_BF16 (12*32+ 5) /* AVX512 BFLOAT16 instructions */ ··· 300 299 #define X86_FEATURE_AMD_IBRS (13*32+14) /* "" Indirect Branch Restricted Speculation */ 301 300 #define X86_FEATURE_AMD_STIBP (13*32+15) /* "" Single Thread Indirect Branch Predictors */ 302 301 #define X86_FEATURE_AMD_STIBP_ALWAYS_ON (13*32+17) /* "" Single Thread Indirect Branch Predictors always-on preferred */ 302 + #define X86_FEATURE_AMD_PPIN (13*32+23) /* Protected Processor Inventory Number */ 303 303 #define X86_FEATURE_AMD_SSBD (13*32+24) /* "" Speculative Store Bypass Disable */ 304 304 #define X86_FEATURE_VIRT_SSBD (13*32+25) /* Virtualized Speculative Store Bypass Disable */ 305 305 #define X86_FEATURE_AMD_SSB_NO (13*32+26) /* "" Speculative Store Bypass is fixed in hardware. */ ··· 369 367 #define X86_FEATURE_INTEL_STIBP (18*32+27) /* "" Single Thread Indirect Branch Predictors */ 370 368 #define X86_FEATURE_FLUSH_L1D (18*32+28) /* Flush L1D cache */ 371 369 #define X86_FEATURE_ARCH_CAPABILITIES (18*32+29) /* IA32_ARCH_CAPABILITIES MSR (Intel) */ 370 + #define X86_FEATURE_CORE_CAPABILITIES (18*32+30) /* "" IA32_CORE_CAPABILITIES MSR */ 372 371 #define X86_FEATURE_SPEC_CTRL_SSBD (18*32+31) /* "" Speculative Store Bypass Disable */ 373 372 374 373 /*
+9
tools/arch/x86/include/asm/msr-index.h
··· 41 41 42 42 /* Intel MSRs. Some also available on other CPUs */ 43 43 44 + #define MSR_TEST_CTRL 0x00000033 45 + #define MSR_TEST_CTRL_SPLIT_LOCK_DETECT_BIT 29 46 + #define MSR_TEST_CTRL_SPLIT_LOCK_DETECT BIT(MSR_TEST_CTRL_SPLIT_LOCK_DETECT_BIT) 47 + 44 48 #define MSR_IA32_SPEC_CTRL 0x00000048 /* Speculation Control */ 45 49 #define SPEC_CTRL_IBRS BIT(0) /* Indirect Branch Restricted Speculation */ 46 50 #define SPEC_CTRL_STIBP_SHIFT 1 /* Single Thread Indirect Branch Predictor (STIBP) bit */ ··· 73 69 * bit[1:0] zero. 74 70 */ 75 71 #define MSR_IA32_UMWAIT_CONTROL_TIME_MASK (~0x03U) 72 + 73 + /* Abbreviated from Intel SDM name IA32_CORE_CAPABILITIES */ 74 + #define MSR_IA32_CORE_CAPS 0x000000cf 75 + #define MSR_IA32_CORE_CAPS_SPLIT_LOCK_DETECT_BIT 5 76 + #define MSR_IA32_CORE_CAPS_SPLIT_LOCK_DETECT BIT(MSR_IA32_CORE_CAPS_SPLIT_LOCK_DETECT_BIT) 76 77 77 78 #define MSR_PKG_CST_CONFIG_CONTROL 0x000000e2 78 79 #define NHM_C3_AUTO_DEMOTE (1UL << 25)
+21 -3
tools/include/linux/bits.h
··· 3 3 #define __LINUX_BITS_H 4 4 5 5 #include <linux/const.h> 6 + #include <vdso/bits.h> 6 7 #include <asm/bitsperlong.h> 7 8 8 - #define BIT(nr) (UL(1) << (nr)) 9 9 #define BIT_ULL(nr) (ULL(1) << (nr)) 10 10 #define BIT_MASK(nr) (UL(1) << ((nr) % BITS_PER_LONG)) 11 11 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) ··· 18 18 * position @h. For example 19 19 * GENMASK_ULL(39, 21) gives us the 64bit vector 0x000000ffffe00000. 20 20 */ 21 - #define GENMASK(h, l) \ 21 + #if !defined(__ASSEMBLY__) && \ 22 + (!defined(CONFIG_CC_IS_GCC) || CONFIG_GCC_VERSION >= 49000) 23 + #include <linux/build_bug.h> 24 + #define GENMASK_INPUT_CHECK(h, l) \ 25 + (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \ 26 + __builtin_constant_p((l) > (h)), (l) > (h), 0))) 27 + #else 28 + /* 29 + * BUILD_BUG_ON_ZERO is not available in h files included from asm files, 30 + * disable the input check if that is the case. 31 + */ 32 + #define GENMASK_INPUT_CHECK(h, l) 0 33 + #endif 34 + 35 + #define __GENMASK(h, l) \ 22 36 (((~UL(0)) - (UL(1) << (l)) + 1) & \ 23 37 (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) 38 + #define GENMASK(h, l) \ 39 + (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) 24 40 25 - #define GENMASK_ULL(h, l) \ 41 + #define __GENMASK_ULL(h, l) \ 26 42 (((~ULL(0)) - (ULL(1) << (l)) + 1) & \ 27 43 (~ULL(0) >> (BITS_PER_LONG_LONG - 1 - (h)))) 44 + #define GENMASK_ULL(h, l) \ 45 + (GENMASK_INPUT_CHECK(h, l) + __GENMASK_ULL(h, l)) 28 46 29 47 #endif /* __LINUX_BITS_H */
+82
tools/include/linux/build_bug.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + #ifndef _LINUX_BUILD_BUG_H 3 + #define _LINUX_BUILD_BUG_H 4 + 5 + #include <linux/compiler.h> 6 + 7 + #ifdef __CHECKER__ 8 + #define BUILD_BUG_ON_ZERO(e) (0) 9 + #else /* __CHECKER__ */ 10 + /* 11 + * Force a compilation error if condition is true, but also produce a 12 + * result (of value 0 and type int), so the expression can be used 13 + * e.g. in a structure initializer (or where-ever else comma expressions 14 + * aren't permitted). 15 + */ 16 + #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) 17 + #endif /* __CHECKER__ */ 18 + 19 + /* Force a compilation error if a constant expression is not a power of 2 */ 20 + #define __BUILD_BUG_ON_NOT_POWER_OF_2(n) \ 21 + BUILD_BUG_ON(((n) & ((n) - 1)) != 0) 22 + #define BUILD_BUG_ON_NOT_POWER_OF_2(n) \ 23 + BUILD_BUG_ON((n) == 0 || (((n) & ((n) - 1)) != 0)) 24 + 25 + /* 26 + * BUILD_BUG_ON_INVALID() permits the compiler to check the validity of the 27 + * expression but avoids the generation of any code, even if that expression 28 + * has side-effects. 29 + */ 30 + #define BUILD_BUG_ON_INVALID(e) ((void)(sizeof((__force long)(e)))) 31 + 32 + /** 33 + * BUILD_BUG_ON_MSG - break compile if a condition is true & emit supplied 34 + * error message. 35 + * @condition: the condition which the compiler should know is false. 36 + * 37 + * See BUILD_BUG_ON for description. 38 + */ 39 + #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) 40 + 41 + /** 42 + * BUILD_BUG_ON - break compile if a condition is true. 43 + * @condition: the condition which the compiler should know is false. 44 + * 45 + * If you have some code which relies on certain constants being equal, or 46 + * some other compile-time-evaluated condition, you should use BUILD_BUG_ON to 47 + * detect if someone changes it. 48 + */ 49 + #define BUILD_BUG_ON(condition) \ 50 + BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) 51 + 52 + /** 53 + * BUILD_BUG - break compile if used. 54 + * 55 + * If you have some code that you expect the compiler to eliminate at 56 + * build time, you should use BUILD_BUG to detect if it is 57 + * unexpectedly used. 58 + */ 59 + #define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed") 60 + 61 + /** 62 + * static_assert - check integer constant expression at build time 63 + * 64 + * static_assert() is a wrapper for the C11 _Static_assert, with a 65 + * little macro magic to make the message optional (defaulting to the 66 + * stringification of the tested expression). 67 + * 68 + * Contrary to BUILD_BUG_ON(), static_assert() can be used at global 69 + * scope, but requires the expression to be an integer constant 70 + * expression (i.e., it is not enough that __builtin_constant_p() is 71 + * true for expr). 72 + * 73 + * Also note that BUILD_BUG_ON() fails the build if the condition is 74 + * true, while static_assert() fails the build if the expression is 75 + * false. 76 + */ 77 + #ifndef static_assert 78 + #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) 79 + #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) 80 + #endif // static_assert 81 + 82 + #endif /* _LINUX_BUILD_BUG_H */
+26
tools/include/linux/compiler.h
··· 10 10 # define __compiletime_error(message) 11 11 #endif 12 12 13 + #ifdef __OPTIMIZE__ 14 + # define __compiletime_assert(condition, msg, prefix, suffix) \ 15 + do { \ 16 + extern void prefix ## suffix(void) __compiletime_error(msg); \ 17 + if (!(condition)) \ 18 + prefix ## suffix(); \ 19 + } while (0) 20 + #else 21 + # define __compiletime_assert(condition, msg, prefix, suffix) do { } while (0) 22 + #endif 23 + 24 + #define _compiletime_assert(condition, msg, prefix, suffix) \ 25 + __compiletime_assert(condition, msg, prefix, suffix) 26 + 27 + /** 28 + * compiletime_assert - break build and emit msg if condition is false 29 + * @condition: a compile-time constant condition to check 30 + * @msg: a message to emit if condition is false 31 + * 32 + * In tradition of POSIX assert, this macro will break the build if the 33 + * supplied condition is *false*, emitting the supplied error message if the 34 + * compiler has support to do so. 35 + */ 36 + #define compiletime_assert(condition, msg) \ 37 + _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) 38 + 13 39 /* Optimization barrier */ 14 40 /* The "volatile" is due to gcc bugs */ 15 41 #define barrier() __asm__ __volatile__("": : :"memory")
+1 -4
tools/include/linux/const.h
··· 1 1 #ifndef _LINUX_CONST_H 2 2 #define _LINUX_CONST_H 3 3 4 - #include <uapi/linux/const.h> 5 - 6 - #define UL(x) (_UL(x)) 7 - #define ULL(x) (_ULL(x)) 4 + #include <vdso/const.h> 8 5 9 6 #endif /* _LINUX_CONST_H */
+1 -3
tools/include/linux/kernel.h
··· 5 5 #include <stdarg.h> 6 6 #include <stddef.h> 7 7 #include <assert.h> 8 + #include <linux/build_bug.h> 8 9 #include <linux/compiler.h> 9 10 #include <endian.h> 10 11 #include <byteswap.h> ··· 35 34 const typeof(((type *)0)->member) * __mptr = (ptr); \ 36 35 (type *)((char *)__mptr - offsetof(type, member)); }) 37 36 #endif 38 - 39 - #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) 40 - #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) 41 37 42 38 #ifndef max 43 39 #define max(x, y) ({ \
+2
tools/include/uapi/drm/drm.h
··· 948 948 #define DRM_IOCTL_SYNCOBJ_TRANSFER DRM_IOWR(0xCC, struct drm_syncobj_transfer) 949 949 #define DRM_IOCTL_SYNCOBJ_TIMELINE_SIGNAL DRM_IOWR(0xCD, struct drm_syncobj_timeline_array) 950 950 951 + #define DRM_IOCTL_MODE_GETFB2 DRM_IOWR(0xCE, struct drm_mode_fb_cmd2) 952 + 951 953 /** 952 954 * Device specific ioctls should only be in their respective headers 953 955 * The device specific ioctl range is from 0x40 to 0x9f.
+21
tools/include/uapi/drm/i915_drm.h
··· 1619 1619 * By default, new contexts allow persistence. 1620 1620 */ 1621 1621 #define I915_CONTEXT_PARAM_PERSISTENCE 0xb 1622 + 1623 + /* 1624 + * I915_CONTEXT_PARAM_RINGSIZE: 1625 + * 1626 + * Sets the size of the CS ringbuffer to use for logical ring contexts. This 1627 + * applies a limit of how many batches can be queued to HW before the caller 1628 + * is blocked due to lack of space for more commands. 1629 + * 1630 + * Only reliably possible to be set prior to first use, i.e. during 1631 + * construction. At any later point, the current execution must be flushed as 1632 + * the ring can only be changed while the context is idle. Note, the ringsize 1633 + * can be specified as a constructor property, see 1634 + * I915_CONTEXT_CREATE_EXT_SETPARAM, but can also be set later if required. 1635 + * 1636 + * Only applies to the current set of engine and lost when those engines 1637 + * are replaced by a new mapping (see I915_CONTEXT_PARAM_ENGINES). 1638 + * 1639 + * Must be between 4 - 512 KiB, in intervals of page size [4 KiB]. 1640 + * Default is 16 KiB. 1641 + */ 1642 + #define I915_CONTEXT_PARAM_RINGSIZE 0xc 1622 1643 /* Must be kept compact -- no holes and well documented */ 1623 1644 1624 1645 __u64 value;
+1
tools/include/uapi/linux/fscrypt.h
··· 163 163 #define FS_IOC_REMOVE_ENCRYPTION_KEY _IOWR('f', 24, struct fscrypt_remove_key_arg) 164 164 #define FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS _IOWR('f', 25, struct fscrypt_remove_key_arg) 165 165 #define FS_IOC_GET_ENCRYPTION_KEY_STATUS _IOWR('f', 26, struct fscrypt_get_key_status_arg) 166 + #define FS_IOC_GET_ENCRYPTION_NONCE _IOR('f', 27, __u8[16]) 166 167 167 168 /**********************************************************************/ 168 169
+45 -2
tools/include/uapi/linux/kvm.h
··· 474 474 __u32 size; /* amount of bytes */ 475 475 __u32 op; /* type of operation */ 476 476 __u64 buf; /* buffer in userspace */ 477 - __u8 ar; /* the access register number */ 478 - __u8 reserved[31]; /* should be set to 0 */ 477 + union { 478 + __u8 ar; /* the access register number */ 479 + __u32 sida_offset; /* offset into the sida */ 480 + __u8 reserved[32]; /* should be set to 0 */ 481 + }; 479 482 }; 480 483 /* types for kvm_s390_mem_op->op */ 481 484 #define KVM_S390_MEMOP_LOGICAL_READ 0 482 485 #define KVM_S390_MEMOP_LOGICAL_WRITE 1 486 + #define KVM_S390_MEMOP_SIDA_READ 2 487 + #define KVM_S390_MEMOP_SIDA_WRITE 3 483 488 /* flags for kvm_s390_mem_op->flags */ 484 489 #define KVM_S390_MEMOP_F_CHECK_ONLY (1ULL << 0) 485 490 #define KVM_S390_MEMOP_F_INJECT_EXCEPTION (1ULL << 1) ··· 1015 1010 #define KVM_CAP_ARM_NISV_TO_USER 177 1016 1011 #define KVM_CAP_ARM_INJECT_EXT_DABT 178 1017 1012 #define KVM_CAP_S390_VCPU_RESETS 179 1013 + #define KVM_CAP_S390_PROTECTED 180 1014 + #define KVM_CAP_PPC_SECURE_GUEST 181 1018 1015 1019 1016 #ifdef KVM_CAP_IRQ_ROUTING 1020 1017 ··· 1485 1478 #define KVM_S390_NORMAL_RESET _IO(KVMIO, 0xc3) 1486 1479 #define KVM_S390_CLEAR_RESET _IO(KVMIO, 0xc4) 1487 1480 1481 + struct kvm_s390_pv_sec_parm { 1482 + __u64 origin; 1483 + __u64 length; 1484 + }; 1485 + 1486 + struct kvm_s390_pv_unp { 1487 + __u64 addr; 1488 + __u64 size; 1489 + __u64 tweak; 1490 + }; 1491 + 1492 + enum pv_cmd_id { 1493 + KVM_PV_ENABLE, 1494 + KVM_PV_DISABLE, 1495 + KVM_PV_SET_SEC_PARMS, 1496 + KVM_PV_UNPACK, 1497 + KVM_PV_VERIFY, 1498 + KVM_PV_PREP_RESET, 1499 + KVM_PV_UNSHARE_ALL, 1500 + }; 1501 + 1502 + struct kvm_pv_cmd { 1503 + __u32 cmd; /* Command to be executed */ 1504 + __u16 rc; /* Ultravisor return code */ 1505 + __u16 rrc; /* Ultravisor return reason code */ 1506 + __u64 data; /* Data or address */ 1507 + __u32 flags; /* flags for future extensions. Must be 0 for now */ 1508 + __u32 reserved[3]; 1509 + }; 1510 + 1511 + /* Available with KVM_CAP_S390_PROTECTED */ 1512 + #define KVM_S390_PV_COMMAND _IOWR(KVMIO, 0xc5, struct kvm_pv_cmd) 1513 + 1488 1514 /* Secure Encrypted Virtualization command */ 1489 1515 enum sev_cmd_id { 1490 1516 /* Guest initialization commands */ ··· 1667 1627 1668 1628 #define KVM_HYPERV_CONN_ID_MASK 0x00ffffff 1669 1629 #define KVM_HYPERV_EVENTFD_DEASSIGN (1 << 0) 1630 + 1631 + #define KVM_DIRTY_LOG_MANUAL_PROTECT_ENABLE (1 << 0) 1632 + #define KVM_DIRTY_LOG_INITIALLY_SET (1 << 1) 1670 1633 1671 1634 #endif /* __LINUX_KVM_H */
+3 -2
tools/include/uapi/linux/mman.h
··· 5 5 #include <asm/mman.h> 6 6 #include <asm-generic/hugetlb_encode.h> 7 7 8 - #define MREMAP_MAYMOVE 1 9 - #define MREMAP_FIXED 2 8 + #define MREMAP_MAYMOVE 1 9 + #define MREMAP_FIXED 2 10 + #define MREMAP_DONTUNMAP 4 10 11 11 12 #define OVERCOMMIT_GUESS 0 12 13 #define OVERCOMMIT_ALWAYS 1
+5
tools/include/uapi/linux/sched.h
··· 35 35 36 36 /* Flags for the clone3() syscall. */ 37 37 #define CLONE_CLEAR_SIGHAND 0x100000000ULL /* Clear any signal handler and reset to SIG_DFL. */ 38 + #define CLONE_INTO_CGROUP 0x200000000ULL /* Clone into a specific cgroup given the right permissions. */ 38 39 39 40 /* 40 41 * cloning flags intersect with CSIGNAL so can be used with unshare and clone3 ··· 82 81 * @set_tid_size: This defines the size of the array referenced 83 82 * in @set_tid. This cannot be larger than the 84 83 * kernel's limit of nested PID namespaces. 84 + * @cgroup: If CLONE_INTO_CGROUP is specified set this to 85 + * a file descriptor for the cgroup. 85 86 * 86 87 * The structure is versioned by size and thus extensible. 87 88 * New struct members must go at the end of the struct and ··· 100 97 __aligned_u64 tls; 101 98 __aligned_u64 set_tid; 102 99 __aligned_u64 set_tid_size; 100 + __aligned_u64 cgroup; 103 101 }; 104 102 #endif 105 103 106 104 #define CLONE_ARGS_SIZE_VER0 64 /* sizeof first published struct */ 107 105 #define CLONE_ARGS_SIZE_VER1 80 /* sizeof second published struct */ 106 + #define CLONE_ARGS_SIZE_VER2 88 /* sizeof third published struct */ 108 107 109 108 /* 110 109 * Scheduling policies
+24
tools/include/uapi/linux/vhost.h
··· 116 116 #define VHOST_VSOCK_SET_GUEST_CID _IOW(VHOST_VIRTIO, 0x60, __u64) 117 117 #define VHOST_VSOCK_SET_RUNNING _IOW(VHOST_VIRTIO, 0x61, int) 118 118 119 + /* VHOST_VDPA specific defines */ 120 + 121 + /* Get the device id. The device ids follow the same definition of 122 + * the device id defined in virtio-spec. 123 + */ 124 + #define VHOST_VDPA_GET_DEVICE_ID _IOR(VHOST_VIRTIO, 0x70, __u32) 125 + /* Get and set the status. The status bits follow the same definition 126 + * of the device status defined in virtio-spec. 127 + */ 128 + #define VHOST_VDPA_GET_STATUS _IOR(VHOST_VIRTIO, 0x71, __u8) 129 + #define VHOST_VDPA_SET_STATUS _IOW(VHOST_VIRTIO, 0x72, __u8) 130 + /* Get and set the device config. The device config follows the same 131 + * definition of the device config defined in virtio-spec. 132 + */ 133 + #define VHOST_VDPA_GET_CONFIG _IOR(VHOST_VIRTIO, 0x73, \ 134 + struct vhost_vdpa_config) 135 + #define VHOST_VDPA_SET_CONFIG _IOW(VHOST_VIRTIO, 0x74, \ 136 + struct vhost_vdpa_config) 137 + /* Enable/disable the ring. */ 138 + #define VHOST_VDPA_SET_VRING_ENABLE _IOW(VHOST_VIRTIO, 0x75, \ 139 + struct vhost_vring_state) 140 + /* Get the max ring size. */ 141 + #define VHOST_VDPA_GET_VRING_NUM _IOR(VHOST_VIRTIO, 0x76, __u16) 142 + 119 143 #endif
+9
tools/include/vdso/bits.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + #ifndef __VDSO_BITS_H 3 + #define __VDSO_BITS_H 4 + 5 + #include <vdso/const.h> 6 + 7 + #define BIT(nr) (UL(1) << (nr)) 8 + 9 + #endif /* __VDSO_BITS_H */
+10
tools/include/vdso/const.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + #ifndef __VDSO_CONST_H 3 + #define __VDSO_CONST_H 4 + 5 + #include <uapi/linux/const.h> 6 + 7 + #define UL(x) (_UL(x)) 8 + #define ULL(x) (_ULL(x)) 9 + 10 + #endif /* __VDSO_CONST_H */
+370 -370
tools/perf/arch/x86/entry/syscalls/syscall_64.tbl
··· 8 8 # 9 9 # The abi is "common", "64" or "x32" for this file. 10 10 # 11 - 0 common read __x64_sys_read 12 - 1 common write __x64_sys_write 13 - 2 common open __x64_sys_open 14 - 3 common close __x64_sys_close 15 - 4 common stat __x64_sys_newstat 16 - 5 common fstat __x64_sys_newfstat 17 - 6 common lstat __x64_sys_newlstat 18 - 7 common poll __x64_sys_poll 19 - 8 common lseek __x64_sys_lseek 20 - 9 common mmap __x64_sys_mmap 21 - 10 common mprotect __x64_sys_mprotect 22 - 11 common munmap __x64_sys_munmap 23 - 12 common brk __x64_sys_brk 24 - 13 64 rt_sigaction __x64_sys_rt_sigaction 25 - 14 common rt_sigprocmask __x64_sys_rt_sigprocmask 26 - 15 64 rt_sigreturn __x64_sys_rt_sigreturn/ptregs 27 - 16 64 ioctl __x64_sys_ioctl 28 - 17 common pread64 __x64_sys_pread64 29 - 18 common pwrite64 __x64_sys_pwrite64 30 - 19 64 readv __x64_sys_readv 31 - 20 64 writev __x64_sys_writev 32 - 21 common access __x64_sys_access 33 - 22 common pipe __x64_sys_pipe 34 - 23 common select __x64_sys_select 35 - 24 common sched_yield __x64_sys_sched_yield 36 - 25 common mremap __x64_sys_mremap 37 - 26 common msync __x64_sys_msync 38 - 27 common mincore __x64_sys_mincore 39 - 28 common madvise __x64_sys_madvise 40 - 29 common shmget __x64_sys_shmget 41 - 30 common shmat __x64_sys_shmat 42 - 31 common shmctl __x64_sys_shmctl 43 - 32 common dup __x64_sys_dup 44 - 33 common dup2 __x64_sys_dup2 45 - 34 common pause __x64_sys_pause 46 - 35 common nanosleep __x64_sys_nanosleep 47 - 36 common getitimer __x64_sys_getitimer 48 - 37 common alarm __x64_sys_alarm 49 - 38 common setitimer __x64_sys_setitimer 50 - 39 common getpid __x64_sys_getpid 51 - 40 common sendfile __x64_sys_sendfile64 52 - 41 common socket __x64_sys_socket 53 - 42 common connect __x64_sys_connect 54 - 43 common accept __x64_sys_accept 55 - 44 common sendto __x64_sys_sendto 56 - 45 64 recvfrom __x64_sys_recvfrom 57 - 46 64 sendmsg __x64_sys_sendmsg 58 - 47 64 recvmsg __x64_sys_recvmsg 59 - 48 common shutdown __x64_sys_shutdown 60 - 49 common bind __x64_sys_bind 61 - 50 common listen __x64_sys_listen 62 - 51 common getsockname __x64_sys_getsockname 63 - 52 common getpeername __x64_sys_getpeername 64 - 53 common socketpair __x64_sys_socketpair 65 - 54 64 setsockopt __x64_sys_setsockopt 66 - 55 64 getsockopt __x64_sys_getsockopt 67 - 56 common clone __x64_sys_clone/ptregs 68 - 57 common fork __x64_sys_fork/ptregs 69 - 58 common vfork __x64_sys_vfork/ptregs 70 - 59 64 execve __x64_sys_execve/ptregs 71 - 60 common exit __x64_sys_exit 72 - 61 common wait4 __x64_sys_wait4 73 - 62 common kill __x64_sys_kill 74 - 63 common uname __x64_sys_newuname 75 - 64 common semget __x64_sys_semget 76 - 65 common semop __x64_sys_semop 77 - 66 common semctl __x64_sys_semctl 78 - 67 common shmdt __x64_sys_shmdt 79 - 68 common msgget __x64_sys_msgget 80 - 69 common msgsnd __x64_sys_msgsnd 81 - 70 common msgrcv __x64_sys_msgrcv 82 - 71 common msgctl __x64_sys_msgctl 83 - 72 common fcntl __x64_sys_fcntl 84 - 73 common flock __x64_sys_flock 85 - 74 common fsync __x64_sys_fsync 86 - 75 common fdatasync __x64_sys_fdatasync 87 - 76 common truncate __x64_sys_truncate 88 - 77 common ftruncate __x64_sys_ftruncate 89 - 78 common getdents __x64_sys_getdents 90 - 79 common getcwd __x64_sys_getcwd 91 - 80 common chdir __x64_sys_chdir 92 - 81 common fchdir __x64_sys_fchdir 93 - 82 common rename __x64_sys_rename 94 - 83 common mkdir __x64_sys_mkdir 95 - 84 common rmdir __x64_sys_rmdir 96 - 85 common creat __x64_sys_creat 97 - 86 common link __x64_sys_link 98 - 87 common unlink __x64_sys_unlink 99 - 88 common symlink __x64_sys_symlink 100 - 89 common readlink __x64_sys_readlink 101 - 90 common chmod __x64_sys_chmod 102 - 91 common fchmod __x64_sys_fchmod 103 - 92 common chown __x64_sys_chown 104 - 93 common fchown __x64_sys_fchown 105 - 94 common lchown __x64_sys_lchown 106 - 95 common umask __x64_sys_umask 107 - 96 common gettimeofday __x64_sys_gettimeofday 108 - 97 common getrlimit __x64_sys_getrlimit 109 - 98 common getrusage __x64_sys_getrusage 110 - 99 common sysinfo __x64_sys_sysinfo 111 - 100 common times __x64_sys_times 112 - 101 64 ptrace __x64_sys_ptrace 113 - 102 common getuid __x64_sys_getuid 114 - 103 common syslog __x64_sys_syslog 115 - 104 common getgid __x64_sys_getgid 116 - 105 common setuid __x64_sys_setuid 117 - 106 common setgid __x64_sys_setgid 118 - 107 common geteuid __x64_sys_geteuid 119 - 108 common getegid __x64_sys_getegid 120 - 109 common setpgid __x64_sys_setpgid 121 - 110 common getppid __x64_sys_getppid 122 - 111 common getpgrp __x64_sys_getpgrp 123 - 112 common setsid __x64_sys_setsid 124 - 113 common setreuid __x64_sys_setreuid 125 - 114 common setregid __x64_sys_setregid 126 - 115 common getgroups __x64_sys_getgroups 127 - 116 common setgroups __x64_sys_setgroups 128 - 117 common setresuid __x64_sys_setresuid 129 - 118 common getresuid __x64_sys_getresuid 130 - 119 common setresgid __x64_sys_setresgid 131 - 120 common getresgid __x64_sys_getresgid 132 - 121 common getpgid __x64_sys_getpgid 133 - 122 common setfsuid __x64_sys_setfsuid 134 - 123 common setfsgid __x64_sys_setfsgid 135 - 124 common getsid __x64_sys_getsid 136 - 125 common capget __x64_sys_capget 137 - 126 common capset __x64_sys_capset 138 - 127 64 rt_sigpending __x64_sys_rt_sigpending 139 - 128 64 rt_sigtimedwait __x64_sys_rt_sigtimedwait 140 - 129 64 rt_sigqueueinfo __x64_sys_rt_sigqueueinfo 141 - 130 common rt_sigsuspend __x64_sys_rt_sigsuspend 142 - 131 64 sigaltstack __x64_sys_sigaltstack 143 - 132 common utime __x64_sys_utime 144 - 133 common mknod __x64_sys_mknod 11 + 0 common read sys_read 12 + 1 common write sys_write 13 + 2 common open sys_open 14 + 3 common close sys_close 15 + 4 common stat sys_newstat 16 + 5 common fstat sys_newfstat 17 + 6 common lstat sys_newlstat 18 + 7 common poll sys_poll 19 + 8 common lseek sys_lseek 20 + 9 common mmap sys_mmap 21 + 10 common mprotect sys_mprotect 22 + 11 common munmap sys_munmap 23 + 12 common brk sys_brk 24 + 13 64 rt_sigaction sys_rt_sigaction 25 + 14 common rt_sigprocmask sys_rt_sigprocmask 26 + 15 64 rt_sigreturn sys_rt_sigreturn 27 + 16 64 ioctl sys_ioctl 28 + 17 common pread64 sys_pread64 29 + 18 common pwrite64 sys_pwrite64 30 + 19 64 readv sys_readv 31 + 20 64 writev sys_writev 32 + 21 common access sys_access 33 + 22 common pipe sys_pipe 34 + 23 common select sys_select 35 + 24 common sched_yield sys_sched_yield 36 + 25 common mremap sys_mremap 37 + 26 common msync sys_msync 38 + 27 common mincore sys_mincore 39 + 28 common madvise sys_madvise 40 + 29 common shmget sys_shmget 41 + 30 common shmat sys_shmat 42 + 31 common shmctl sys_shmctl 43 + 32 common dup sys_dup 44 + 33 common dup2 sys_dup2 45 + 34 common pause sys_pause 46 + 35 common nanosleep sys_nanosleep 47 + 36 common getitimer sys_getitimer 48 + 37 common alarm sys_alarm 49 + 38 common setitimer sys_setitimer 50 + 39 common getpid sys_getpid 51 + 40 common sendfile sys_sendfile64 52 + 41 common socket sys_socket 53 + 42 common connect sys_connect 54 + 43 common accept sys_accept 55 + 44 common sendto sys_sendto 56 + 45 64 recvfrom sys_recvfrom 57 + 46 64 sendmsg sys_sendmsg 58 + 47 64 recvmsg sys_recvmsg 59 + 48 common shutdown sys_shutdown 60 + 49 common bind sys_bind 61 + 50 common listen sys_listen 62 + 51 common getsockname sys_getsockname 63 + 52 common getpeername sys_getpeername 64 + 53 common socketpair sys_socketpair 65 + 54 64 setsockopt sys_setsockopt 66 + 55 64 getsockopt sys_getsockopt 67 + 56 common clone sys_clone 68 + 57 common fork sys_fork 69 + 58 common vfork sys_vfork 70 + 59 64 execve sys_execve 71 + 60 common exit sys_exit 72 + 61 common wait4 sys_wait4 73 + 62 common kill sys_kill 74 + 63 common uname sys_newuname 75 + 64 common semget sys_semget 76 + 65 common semop sys_semop 77 + 66 common semctl sys_semctl 78 + 67 common shmdt sys_shmdt 79 + 68 common msgget sys_msgget 80 + 69 common msgsnd sys_msgsnd 81 + 70 common msgrcv sys_msgrcv 82 + 71 common msgctl sys_msgctl 83 + 72 common fcntl sys_fcntl 84 + 73 common flock sys_flock 85 + 74 common fsync sys_fsync 86 + 75 common fdatasync sys_fdatasync 87 + 76 common truncate sys_truncate 88 + 77 common ftruncate sys_ftruncate 89 + 78 common getdents sys_getdents 90 + 79 common getcwd sys_getcwd 91 + 80 common chdir sys_chdir 92 + 81 common fchdir sys_fchdir 93 + 82 common rename sys_rename 94 + 83 common mkdir sys_mkdir 95 + 84 common rmdir sys_rmdir 96 + 85 common creat sys_creat 97 + 86 common link sys_link 98 + 87 common unlink sys_unlink 99 + 88 common symlink sys_symlink 100 + 89 common readlink sys_readlink 101 + 90 common chmod sys_chmod 102 + 91 common fchmod sys_fchmod 103 + 92 common chown sys_chown 104 + 93 common fchown sys_fchown 105 + 94 common lchown sys_lchown 106 + 95 common umask sys_umask 107 + 96 common gettimeofday sys_gettimeofday 108 + 97 common getrlimit sys_getrlimit 109 + 98 common getrusage sys_getrusage 110 + 99 common sysinfo sys_sysinfo 111 + 100 common times sys_times 112 + 101 64 ptrace sys_ptrace 113 + 102 common getuid sys_getuid 114 + 103 common syslog sys_syslog 115 + 104 common getgid sys_getgid 116 + 105 common setuid sys_setuid 117 + 106 common setgid sys_setgid 118 + 107 common geteuid sys_geteuid 119 + 108 common getegid sys_getegid 120 + 109 common setpgid sys_setpgid 121 + 110 common getppid sys_getppid 122 + 111 common getpgrp sys_getpgrp 123 + 112 common setsid sys_setsid 124 + 113 common setreuid sys_setreuid 125 + 114 common setregid sys_setregid 126 + 115 common getgroups sys_getgroups 127 + 116 common setgroups sys_setgroups 128 + 117 common setresuid sys_setresuid 129 + 118 common getresuid sys_getresuid 130 + 119 common setresgid sys_setresgid 131 + 120 common getresgid sys_getresgid 132 + 121 common getpgid sys_getpgid 133 + 122 common setfsuid sys_setfsuid 134 + 123 common setfsgid sys_setfsgid 135 + 124 common getsid sys_getsid 136 + 125 common capget sys_capget 137 + 126 common capset sys_capset 138 + 127 64 rt_sigpending sys_rt_sigpending 139 + 128 64 rt_sigtimedwait sys_rt_sigtimedwait 140 + 129 64 rt_sigqueueinfo sys_rt_sigqueueinfo 141 + 130 common rt_sigsuspend sys_rt_sigsuspend 142 + 131 64 sigaltstack sys_sigaltstack 143 + 132 common utime sys_utime 144 + 133 common mknod sys_mknod 145 145 134 64 uselib 146 - 135 common personality __x64_sys_personality 147 - 136 common ustat __x64_sys_ustat 148 - 137 common statfs __x64_sys_statfs 149 - 138 common fstatfs __x64_sys_fstatfs 150 - 139 common sysfs __x64_sys_sysfs 151 - 140 common getpriority __x64_sys_getpriority 152 - 141 common setpriority __x64_sys_setpriority 153 - 142 common sched_setparam __x64_sys_sched_setparam 154 - 143 common sched_getparam __x64_sys_sched_getparam 155 - 144 common sched_setscheduler __x64_sys_sched_setscheduler 156 - 145 common sched_getscheduler __x64_sys_sched_getscheduler 157 - 146 common sched_get_priority_max __x64_sys_sched_get_priority_max 158 - 147 common sched_get_priority_min __x64_sys_sched_get_priority_min 159 - 148 common sched_rr_get_interval __x64_sys_sched_rr_get_interval 160 - 149 common mlock __x64_sys_mlock 161 - 150 common munlock __x64_sys_munlock 162 - 151 common mlockall __x64_sys_mlockall 163 - 152 common munlockall __x64_sys_munlockall 164 - 153 common vhangup __x64_sys_vhangup 165 - 154 common modify_ldt __x64_sys_modify_ldt 166 - 155 common pivot_root __x64_sys_pivot_root 167 - 156 64 _sysctl __x64_sys_sysctl 168 - 157 common prctl __x64_sys_prctl 169 - 158 common arch_prctl __x64_sys_arch_prctl 170 - 159 common adjtimex __x64_sys_adjtimex 171 - 160 common setrlimit __x64_sys_setrlimit 172 - 161 common chroot __x64_sys_chroot 173 - 162 common sync __x64_sys_sync 174 - 163 common acct __x64_sys_acct 175 - 164 common settimeofday __x64_sys_settimeofday 176 - 165 common mount __x64_sys_mount 177 - 166 common umount2 __x64_sys_umount 178 - 167 common swapon __x64_sys_swapon 179 - 168 common swapoff __x64_sys_swapoff 180 - 169 common reboot __x64_sys_reboot 181 - 170 common sethostname __x64_sys_sethostname 182 - 171 common setdomainname __x64_sys_setdomainname 183 - 172 common iopl __x64_sys_iopl/ptregs 184 - 173 common ioperm __x64_sys_ioperm 146 + 135 common personality sys_personality 147 + 136 common ustat sys_ustat 148 + 137 common statfs sys_statfs 149 + 138 common fstatfs sys_fstatfs 150 + 139 common sysfs sys_sysfs 151 + 140 common getpriority sys_getpriority 152 + 141 common setpriority sys_setpriority 153 + 142 common sched_setparam sys_sched_setparam 154 + 143 common sched_getparam sys_sched_getparam 155 + 144 common sched_setscheduler sys_sched_setscheduler 156 + 145 common sched_getscheduler sys_sched_getscheduler 157 + 146 common sched_get_priority_max sys_sched_get_priority_max 158 + 147 common sched_get_priority_min sys_sched_get_priority_min 159 + 148 common sched_rr_get_interval sys_sched_rr_get_interval 160 + 149 common mlock sys_mlock 161 + 150 common munlock sys_munlock 162 + 151 common mlockall sys_mlockall 163 + 152 common munlockall sys_munlockall 164 + 153 common vhangup sys_vhangup 165 + 154 common modify_ldt sys_modify_ldt 166 + 155 common pivot_root sys_pivot_root 167 + 156 64 _sysctl sys_sysctl 168 + 157 common prctl sys_prctl 169 + 158 common arch_prctl sys_arch_prctl 170 + 159 common adjtimex sys_adjtimex 171 + 160 common setrlimit sys_setrlimit 172 + 161 common chroot sys_chroot 173 + 162 common sync sys_sync 174 + 163 common acct sys_acct 175 + 164 common settimeofday sys_settimeofday 176 + 165 common mount sys_mount 177 + 166 common umount2 sys_umount 178 + 167 common swapon sys_swapon 179 + 168 common swapoff sys_swapoff 180 + 169 common reboot sys_reboot 181 + 170 common sethostname sys_sethostname 182 + 171 common setdomainname sys_setdomainname 183 + 172 common iopl sys_iopl 184 + 173 common ioperm sys_ioperm 185 185 174 64 create_module 186 - 175 common init_module __x64_sys_init_module 187 - 176 common delete_module __x64_sys_delete_module 186 + 175 common init_module sys_init_module 187 + 176 common delete_module sys_delete_module 188 188 177 64 get_kernel_syms 189 189 178 64 query_module 190 - 179 common quotactl __x64_sys_quotactl 190 + 179 common quotactl sys_quotactl 191 191 180 64 nfsservctl 192 192 181 common getpmsg 193 193 182 common putpmsg 194 194 183 common afs_syscall 195 195 184 common tuxcall 196 196 185 common security 197 - 186 common gettid __x64_sys_gettid 198 - 187 common readahead __x64_sys_readahead 199 - 188 common setxattr __x64_sys_setxattr 200 - 189 common lsetxattr __x64_sys_lsetxattr 201 - 190 common fsetxattr __x64_sys_fsetxattr 202 - 191 common getxattr __x64_sys_getxattr 203 - 192 common lgetxattr __x64_sys_lgetxattr 204 - 193 common fgetxattr __x64_sys_fgetxattr 205 - 194 common listxattr __x64_sys_listxattr 206 - 195 common llistxattr __x64_sys_llistxattr 207 - 196 common flistxattr __x64_sys_flistxattr 208 - 197 common removexattr __x64_sys_removexattr 209 - 198 common lremovexattr __x64_sys_lremovexattr 210 - 199 common fremovexattr __x64_sys_fremovexattr 211 - 200 common tkill __x64_sys_tkill 212 - 201 common time __x64_sys_time 213 - 202 common futex __x64_sys_futex 214 - 203 common sched_setaffinity __x64_sys_sched_setaffinity 215 - 204 common sched_getaffinity __x64_sys_sched_getaffinity 197 + 186 common gettid sys_gettid 198 + 187 common readahead sys_readahead 199 + 188 common setxattr sys_setxattr 200 + 189 common lsetxattr sys_lsetxattr 201 + 190 common fsetxattr sys_fsetxattr 202 + 191 common getxattr sys_getxattr 203 + 192 common lgetxattr sys_lgetxattr 204 + 193 common fgetxattr sys_fgetxattr 205 + 194 common listxattr sys_listxattr 206 + 195 common llistxattr sys_llistxattr 207 + 196 common flistxattr sys_flistxattr 208 + 197 common removexattr sys_removexattr 209 + 198 common lremovexattr sys_lremovexattr 210 + 199 common fremovexattr sys_fremovexattr 211 + 200 common tkill sys_tkill 212 + 201 common time sys_time 213 + 202 common futex sys_futex 214 + 203 common sched_setaffinity sys_sched_setaffinity 215 + 204 common sched_getaffinity sys_sched_getaffinity 216 216 205 64 set_thread_area 217 - 206 64 io_setup __x64_sys_io_setup 218 - 207 common io_destroy __x64_sys_io_destroy 219 - 208 common io_getevents __x64_sys_io_getevents 220 - 209 64 io_submit __x64_sys_io_submit 221 - 210 common io_cancel __x64_sys_io_cancel 217 + 206 64 io_setup sys_io_setup 218 + 207 common io_destroy sys_io_destroy 219 + 208 common io_getevents sys_io_getevents 220 + 209 64 io_submit sys_io_submit 221 + 210 common io_cancel sys_io_cancel 222 222 211 64 get_thread_area 223 - 212 common lookup_dcookie __x64_sys_lookup_dcookie 224 - 213 common epoll_create __x64_sys_epoll_create 223 + 212 common lookup_dcookie sys_lookup_dcookie 224 + 213 common epoll_create sys_epoll_create 225 225 214 64 epoll_ctl_old 226 226 215 64 epoll_wait_old 227 - 216 common remap_file_pages __x64_sys_remap_file_pages 228 - 217 common getdents64 __x64_sys_getdents64 229 - 218 common set_tid_address __x64_sys_set_tid_address 230 - 219 common restart_syscall __x64_sys_restart_syscall 231 - 220 common semtimedop __x64_sys_semtimedop 232 - 221 common fadvise64 __x64_sys_fadvise64 233 - 222 64 timer_create __x64_sys_timer_create 234 - 223 common timer_settime __x64_sys_timer_settime 235 - 224 common timer_gettime __x64_sys_timer_gettime 236 - 225 common timer_getoverrun __x64_sys_timer_getoverrun 237 - 226 common timer_delete __x64_sys_timer_delete 238 - 227 common clock_settime __x64_sys_clock_settime 239 - 228 common clock_gettime __x64_sys_clock_gettime 240 - 229 common clock_getres __x64_sys_clock_getres 241 - 230 common clock_nanosleep __x64_sys_clock_nanosleep 242 - 231 common exit_group __x64_sys_exit_group 243 - 232 common epoll_wait __x64_sys_epoll_wait 244 - 233 common epoll_ctl __x64_sys_epoll_ctl 245 - 234 common tgkill __x64_sys_tgkill 246 - 235 common utimes __x64_sys_utimes 227 + 216 common remap_file_pages sys_remap_file_pages 228 + 217 common getdents64 sys_getdents64 229 + 218 common set_tid_address sys_set_tid_address 230 + 219 common restart_syscall sys_restart_syscall 231 + 220 common semtimedop sys_semtimedop 232 + 221 common fadvise64 sys_fadvise64 233 + 222 64 timer_create sys_timer_create 234 + 223 common timer_settime sys_timer_settime 235 + 224 common timer_gettime sys_timer_gettime 236 + 225 common timer_getoverrun sys_timer_getoverrun 237 + 226 common timer_delete sys_timer_delete 238 + 227 common clock_settime sys_clock_settime 239 + 228 common clock_gettime sys_clock_gettime 240 + 229 common clock_getres sys_clock_getres 241 + 230 common clock_nanosleep sys_clock_nanosleep 242 + 231 common exit_group sys_exit_group 243 + 232 common epoll_wait sys_epoll_wait 244 + 233 common epoll_ctl sys_epoll_ctl 245 + 234 common tgkill sys_tgkill 246 + 235 common utimes sys_utimes 247 247 236 64 vserver 248 - 237 common mbind __x64_sys_mbind 249 - 238 common set_mempolicy __x64_sys_set_mempolicy 250 - 239 common get_mempolicy __x64_sys_get_mempolicy 251 - 240 common mq_open __x64_sys_mq_open 252 - 241 common mq_unlink __x64_sys_mq_unlink 253 - 242 common mq_timedsend __x64_sys_mq_timedsend 254 - 243 common mq_timedreceive __x64_sys_mq_timedreceive 255 - 244 64 mq_notify __x64_sys_mq_notify 256 - 245 common mq_getsetattr __x64_sys_mq_getsetattr 257 - 246 64 kexec_load __x64_sys_kexec_load 258 - 247 64 waitid __x64_sys_waitid 259 - 248 common add_key __x64_sys_add_key 260 - 249 common request_key __x64_sys_request_key 261 - 250 common keyctl __x64_sys_keyctl 262 - 251 common ioprio_set __x64_sys_ioprio_set 263 - 252 common ioprio_get __x64_sys_ioprio_get 264 - 253 common inotify_init __x64_sys_inotify_init 265 - 254 common inotify_add_watch __x64_sys_inotify_add_watch 266 - 255 common inotify_rm_watch __x64_sys_inotify_rm_watch 267 - 256 common migrate_pages __x64_sys_migrate_pages 268 - 257 common openat __x64_sys_openat 269 - 258 common mkdirat __x64_sys_mkdirat 270 - 259 common mknodat __x64_sys_mknodat 271 - 260 common fchownat __x64_sys_fchownat 272 - 261 common futimesat __x64_sys_futimesat 273 - 262 common newfstatat __x64_sys_newfstatat 274 - 263 common unlinkat __x64_sys_unlinkat 275 - 264 common renameat __x64_sys_renameat 276 - 265 common linkat __x64_sys_linkat 277 - 266 common symlinkat __x64_sys_symlinkat 278 - 267 common readlinkat __x64_sys_readlinkat 279 - 268 common fchmodat __x64_sys_fchmodat 280 - 269 common faccessat __x64_sys_faccessat 281 - 270 common pselect6 __x64_sys_pselect6 282 - 271 common ppoll __x64_sys_ppoll 283 - 272 common unshare __x64_sys_unshare 284 - 273 64 set_robust_list __x64_sys_set_robust_list 285 - 274 64 get_robust_list __x64_sys_get_robust_list 286 - 275 common splice __x64_sys_splice 287 - 276 common tee __x64_sys_tee 288 - 277 common sync_file_range __x64_sys_sync_file_range 289 - 278 64 vmsplice __x64_sys_vmsplice 290 - 279 64 move_pages __x64_sys_move_pages 291 - 280 common utimensat __x64_sys_utimensat 292 - 281 common epoll_pwait __x64_sys_epoll_pwait 293 - 282 common signalfd __x64_sys_signalfd 294 - 283 common timerfd_create __x64_sys_timerfd_create 295 - 284 common eventfd __x64_sys_eventfd 296 - 285 common fallocate __x64_sys_fallocate 297 - 286 common timerfd_settime __x64_sys_timerfd_settime 298 - 287 common timerfd_gettime __x64_sys_timerfd_gettime 299 - 288 common accept4 __x64_sys_accept4 300 - 289 common signalfd4 __x64_sys_signalfd4 301 - 290 common eventfd2 __x64_sys_eventfd2 302 - 291 common epoll_create1 __x64_sys_epoll_create1 303 - 292 common dup3 __x64_sys_dup3 304 - 293 common pipe2 __x64_sys_pipe2 305 - 294 common inotify_init1 __x64_sys_inotify_init1 306 - 295 64 preadv __x64_sys_preadv 307 - 296 64 pwritev __x64_sys_pwritev 308 - 297 64 rt_tgsigqueueinfo __x64_sys_rt_tgsigqueueinfo 309 - 298 common perf_event_open __x64_sys_perf_event_open 310 - 299 64 recvmmsg __x64_sys_recvmmsg 311 - 300 common fanotify_init __x64_sys_fanotify_init 312 - 301 common fanotify_mark __x64_sys_fanotify_mark 313 - 302 common prlimit64 __x64_sys_prlimit64 314 - 303 common name_to_handle_at __x64_sys_name_to_handle_at 315 - 304 common open_by_handle_at __x64_sys_open_by_handle_at 316 - 305 common clock_adjtime __x64_sys_clock_adjtime 317 - 306 common syncfs __x64_sys_syncfs 318 - 307 64 sendmmsg __x64_sys_sendmmsg 319 - 308 common setns __x64_sys_setns 320 - 309 common getcpu __x64_sys_getcpu 321 - 310 64 process_vm_readv __x64_sys_process_vm_readv 322 - 311 64 process_vm_writev __x64_sys_process_vm_writev 323 - 312 common kcmp __x64_sys_kcmp 324 - 313 common finit_module __x64_sys_finit_module 325 - 314 common sched_setattr __x64_sys_sched_setattr 326 - 315 common sched_getattr __x64_sys_sched_getattr 327 - 316 common renameat2 __x64_sys_renameat2 328 - 317 common seccomp __x64_sys_seccomp 329 - 318 common getrandom __x64_sys_getrandom 330 - 319 common memfd_create __x64_sys_memfd_create 331 - 320 common kexec_file_load __x64_sys_kexec_file_load 332 - 321 common bpf __x64_sys_bpf 333 - 322 64 execveat __x64_sys_execveat/ptregs 334 - 323 common userfaultfd __x64_sys_userfaultfd 335 - 324 common membarrier __x64_sys_membarrier 336 - 325 common mlock2 __x64_sys_mlock2 337 - 326 common copy_file_range __x64_sys_copy_file_range 338 - 327 64 preadv2 __x64_sys_preadv2 339 - 328 64 pwritev2 __x64_sys_pwritev2 340 - 329 common pkey_mprotect __x64_sys_pkey_mprotect 341 - 330 common pkey_alloc __x64_sys_pkey_alloc 342 - 331 common pkey_free __x64_sys_pkey_free 343 - 332 common statx __x64_sys_statx 344 - 333 common io_pgetevents __x64_sys_io_pgetevents 345 - 334 common rseq __x64_sys_rseq 248 + 237 common mbind sys_mbind 249 + 238 common set_mempolicy sys_set_mempolicy 250 + 239 common get_mempolicy sys_get_mempolicy 251 + 240 common mq_open sys_mq_open 252 + 241 common mq_unlink sys_mq_unlink 253 + 242 common mq_timedsend sys_mq_timedsend 254 + 243 common mq_timedreceive sys_mq_timedreceive 255 + 244 64 mq_notify sys_mq_notify 256 + 245 common mq_getsetattr sys_mq_getsetattr 257 + 246 64 kexec_load sys_kexec_load 258 + 247 64 waitid sys_waitid 259 + 248 common add_key sys_add_key 260 + 249 common request_key sys_request_key 261 + 250 common keyctl sys_keyctl 262 + 251 common ioprio_set sys_ioprio_set 263 + 252 common ioprio_get sys_ioprio_get 264 + 253 common inotify_init sys_inotify_init 265 + 254 common inotify_add_watch sys_inotify_add_watch 266 + 255 common inotify_rm_watch sys_inotify_rm_watch 267 + 256 common migrate_pages sys_migrate_pages 268 + 257 common openat sys_openat 269 + 258 common mkdirat sys_mkdirat 270 + 259 common mknodat sys_mknodat 271 + 260 common fchownat sys_fchownat 272 + 261 common futimesat sys_futimesat 273 + 262 common newfstatat sys_newfstatat 274 + 263 common unlinkat sys_unlinkat 275 + 264 common renameat sys_renameat 276 + 265 common linkat sys_linkat 277 + 266 common symlinkat sys_symlinkat 278 + 267 common readlinkat sys_readlinkat 279 + 268 common fchmodat sys_fchmodat 280 + 269 common faccessat sys_faccessat 281 + 270 common pselect6 sys_pselect6 282 + 271 common ppoll sys_ppoll 283 + 272 common unshare sys_unshare 284 + 273 64 set_robust_list sys_set_robust_list 285 + 274 64 get_robust_list sys_get_robust_list 286 + 275 common splice sys_splice 287 + 276 common tee sys_tee 288 + 277 common sync_file_range sys_sync_file_range 289 + 278 64 vmsplice sys_vmsplice 290 + 279 64 move_pages sys_move_pages 291 + 280 common utimensat sys_utimensat 292 + 281 common epoll_pwait sys_epoll_pwait 293 + 282 common signalfd sys_signalfd 294 + 283 common timerfd_create sys_timerfd_create 295 + 284 common eventfd sys_eventfd 296 + 285 common fallocate sys_fallocate 297 + 286 common timerfd_settime sys_timerfd_settime 298 + 287 common timerfd_gettime sys_timerfd_gettime 299 + 288 common accept4 sys_accept4 300 + 289 common signalfd4 sys_signalfd4 301 + 290 common eventfd2 sys_eventfd2 302 + 291 common epoll_create1 sys_epoll_create1 303 + 292 common dup3 sys_dup3 304 + 293 common pipe2 sys_pipe2 305 + 294 common inotify_init1 sys_inotify_init1 306 + 295 64 preadv sys_preadv 307 + 296 64 pwritev sys_pwritev 308 + 297 64 rt_tgsigqueueinfo sys_rt_tgsigqueueinfo 309 + 298 common perf_event_open sys_perf_event_open 310 + 299 64 recvmmsg sys_recvmmsg 311 + 300 common fanotify_init sys_fanotify_init 312 + 301 common fanotify_mark sys_fanotify_mark 313 + 302 common prlimit64 sys_prlimit64 314 + 303 common name_to_handle_at sys_name_to_handle_at 315 + 304 common open_by_handle_at sys_open_by_handle_at 316 + 305 common clock_adjtime sys_clock_adjtime 317 + 306 common syncfs sys_syncfs 318 + 307 64 sendmmsg sys_sendmmsg 319 + 308 common setns sys_setns 320 + 309 common getcpu sys_getcpu 321 + 310 64 process_vm_readv sys_process_vm_readv 322 + 311 64 process_vm_writev sys_process_vm_writev 323 + 312 common kcmp sys_kcmp 324 + 313 common finit_module sys_finit_module 325 + 314 common sched_setattr sys_sched_setattr 326 + 315 common sched_getattr sys_sched_getattr 327 + 316 common renameat2 sys_renameat2 328 + 317 common seccomp sys_seccomp 329 + 318 common getrandom sys_getrandom 330 + 319 common memfd_create sys_memfd_create 331 + 320 common kexec_file_load sys_kexec_file_load 332 + 321 common bpf sys_bpf 333 + 322 64 execveat sys_execveat 334 + 323 common userfaultfd sys_userfaultfd 335 + 324 common membarrier sys_membarrier 336 + 325 common mlock2 sys_mlock2 337 + 326 common copy_file_range sys_copy_file_range 338 + 327 64 preadv2 sys_preadv2 339 + 328 64 pwritev2 sys_pwritev2 340 + 329 common pkey_mprotect sys_pkey_mprotect 341 + 330 common pkey_alloc sys_pkey_alloc 342 + 331 common pkey_free sys_pkey_free 343 + 332 common statx sys_statx 344 + 333 common io_pgetevents sys_io_pgetevents 345 + 334 common rseq sys_rseq 346 346 # don't use numbers 387 through 423, add new calls after the last 347 347 # 'common' entry 348 - 424 common pidfd_send_signal __x64_sys_pidfd_send_signal 349 - 425 common io_uring_setup __x64_sys_io_uring_setup 350 - 426 common io_uring_enter __x64_sys_io_uring_enter 351 - 427 common io_uring_register __x64_sys_io_uring_register 352 - 428 common open_tree __x64_sys_open_tree 353 - 429 common move_mount __x64_sys_move_mount 354 - 430 common fsopen __x64_sys_fsopen 355 - 431 common fsconfig __x64_sys_fsconfig 356 - 432 common fsmount __x64_sys_fsmount 357 - 433 common fspick __x64_sys_fspick 358 - 434 common pidfd_open __x64_sys_pidfd_open 359 - 435 common clone3 __x64_sys_clone3/ptregs 360 - 437 common openat2 __x64_sys_openat2 361 - 438 common pidfd_getfd __x64_sys_pidfd_getfd 348 + 424 common pidfd_send_signal sys_pidfd_send_signal 349 + 425 common io_uring_setup sys_io_uring_setup 350 + 426 common io_uring_enter sys_io_uring_enter 351 + 427 common io_uring_register sys_io_uring_register 352 + 428 common open_tree sys_open_tree 353 + 429 common move_mount sys_move_mount 354 + 430 common fsopen sys_fsopen 355 + 431 common fsconfig sys_fsconfig 356 + 432 common fsmount sys_fsmount 357 + 433 common fspick sys_fspick 358 + 434 common pidfd_open sys_pidfd_open 359 + 435 common clone3 sys_clone3 360 + 437 common openat2 sys_openat2 361 + 438 common pidfd_getfd sys_pidfd_getfd 362 362 363 363 # 364 364 # x32-specific system call numbers start at 512 to avoid cache impact ··· 366 366 # on-the-fly for compat_sys_*() compatibility system calls if X86_X32 367 367 # is defined. 368 368 # 369 - 512 x32 rt_sigaction __x32_compat_sys_rt_sigaction 370 - 513 x32 rt_sigreturn sys32_x32_rt_sigreturn 371 - 514 x32 ioctl __x32_compat_sys_ioctl 372 - 515 x32 readv __x32_compat_sys_readv 373 - 516 x32 writev __x32_compat_sys_writev 374 - 517 x32 recvfrom __x32_compat_sys_recvfrom 375 - 518 x32 sendmsg __x32_compat_sys_sendmsg 376 - 519 x32 recvmsg __x32_compat_sys_recvmsg 377 - 520 x32 execve __x32_compat_sys_execve/ptregs 378 - 521 x32 ptrace __x32_compat_sys_ptrace 379 - 522 x32 rt_sigpending __x32_compat_sys_rt_sigpending 380 - 523 x32 rt_sigtimedwait __x32_compat_sys_rt_sigtimedwait_time64 381 - 524 x32 rt_sigqueueinfo __x32_compat_sys_rt_sigqueueinfo 382 - 525 x32 sigaltstack __x32_compat_sys_sigaltstack 383 - 526 x32 timer_create __x32_compat_sys_timer_create 384 - 527 x32 mq_notify __x32_compat_sys_mq_notify 385 - 528 x32 kexec_load __x32_compat_sys_kexec_load 386 - 529 x32 waitid __x32_compat_sys_waitid 387 - 530 x32 set_robust_list __x32_compat_sys_set_robust_list 388 - 531 x32 get_robust_list __x32_compat_sys_get_robust_list 389 - 532 x32 vmsplice __x32_compat_sys_vmsplice 390 - 533 x32 move_pages __x32_compat_sys_move_pages 391 - 534 x32 preadv __x32_compat_sys_preadv64 392 - 535 x32 pwritev __x32_compat_sys_pwritev64 393 - 536 x32 rt_tgsigqueueinfo __x32_compat_sys_rt_tgsigqueueinfo 394 - 537 x32 recvmmsg __x32_compat_sys_recvmmsg_time64 395 - 538 x32 sendmmsg __x32_compat_sys_sendmmsg 396 - 539 x32 process_vm_readv __x32_compat_sys_process_vm_readv 397 - 540 x32 process_vm_writev __x32_compat_sys_process_vm_writev 398 - 541 x32 setsockopt __x32_compat_sys_setsockopt 399 - 542 x32 getsockopt __x32_compat_sys_getsockopt 400 - 543 x32 io_setup __x32_compat_sys_io_setup 401 - 544 x32 io_submit __x32_compat_sys_io_submit 402 - 545 x32 execveat __x32_compat_sys_execveat/ptregs 403 - 546 x32 preadv2 __x32_compat_sys_preadv64v2 404 - 547 x32 pwritev2 __x32_compat_sys_pwritev64v2 369 + 512 x32 rt_sigaction compat_sys_rt_sigaction 370 + 513 x32 rt_sigreturn compat_sys_x32_rt_sigreturn 371 + 514 x32 ioctl compat_sys_ioctl 372 + 515 x32 readv compat_sys_readv 373 + 516 x32 writev compat_sys_writev 374 + 517 x32 recvfrom compat_sys_recvfrom 375 + 518 x32 sendmsg compat_sys_sendmsg 376 + 519 x32 recvmsg compat_sys_recvmsg 377 + 520 x32 execve compat_sys_execve 378 + 521 x32 ptrace compat_sys_ptrace 379 + 522 x32 rt_sigpending compat_sys_rt_sigpending 380 + 523 x32 rt_sigtimedwait compat_sys_rt_sigtimedwait_time64 381 + 524 x32 rt_sigqueueinfo compat_sys_rt_sigqueueinfo 382 + 525 x32 sigaltstack compat_sys_sigaltstack 383 + 526 x32 timer_create compat_sys_timer_create 384 + 527 x32 mq_notify compat_sys_mq_notify 385 + 528 x32 kexec_load compat_sys_kexec_load 386 + 529 x32 waitid compat_sys_waitid 387 + 530 x32 set_robust_list compat_sys_set_robust_list 388 + 531 x32 get_robust_list compat_sys_get_robust_list 389 + 532 x32 vmsplice compat_sys_vmsplice 390 + 533 x32 move_pages compat_sys_move_pages 391 + 534 x32 preadv compat_sys_preadv64 392 + 535 x32 pwritev compat_sys_pwritev64 393 + 536 x32 rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo 394 + 537 x32 recvmmsg compat_sys_recvmmsg_time64 395 + 538 x32 sendmmsg compat_sys_sendmmsg 396 + 539 x32 process_vm_readv compat_sys_process_vm_readv 397 + 540 x32 process_vm_writev compat_sys_process_vm_writev 398 + 541 x32 setsockopt compat_sys_setsockopt 399 + 542 x32 getsockopt compat_sys_getsockopt 400 + 543 x32 io_setup compat_sys_io_setup 401 + 544 x32 io_submit compat_sys_io_submit 402 + 545 x32 execveat compat_sys_execveat 403 + 546 x32 preadv2 compat_sys_preadv64v2 404 + 547 x32 pwritev2 compat_sys_pwritev64v2
+3
tools/perf/check-headers.sh
··· 22 22 include/uapi/linux/vhost.h 23 23 include/uapi/sound/asound.h 24 24 include/linux/bits.h 25 + include/vdso/bits.h 25 26 include/linux/const.h 27 + include/vdso/const.h 26 28 include/linux/hash.h 27 29 include/uapi/linux/hw_breakpoint.h 28 30 arch/x86/include/asm/disabled-features.h ··· 117 115 check arch/x86/lib/memset_64.S '-I "^EXPORT_SYMBOL" -I "^#include <asm/export.h>" -I"^SYM_FUNC_START\(_LOCAL\)*(memset_\(erms\|orig\))"' 118 116 check include/uapi/asm-generic/mman.h '-I "^#include <\(uapi/\)*asm-generic/mman-common\(-tools\)*.h>"' 119 117 check include/uapi/linux/mman.h '-I "^#include <\(uapi/\)*asm/mman.h>"' 118 + check include/linux/build_bug.h '-I "^#\(ifndef\|endif\)\( \/\/\)* static_assert$"' 120 119 check include/linux/ctype.h '-I "isdigit("' 121 120 check lib/ctype.c '-I "^EXPORT_SYMBOL" -I "^#include <linux/export.h>" -B' 122 121 check arch/x86/include/asm/inat.h '-I "^#include [\"<]\(asm/\)*inat_types.h[\">]"'
+1
tools/perf/trace/beauty/clone.c
··· 46 46 P_FLAG(NEWNET); 47 47 P_FLAG(IO); 48 48 P_FLAG(CLEAR_SIGHAND); 49 + P_FLAG(INTO_CGROUP); 49 50 #undef P_FLAG 50 51 51 52 if (flags)
+1
tools/perf/trace/beauty/mmap.c
··· 69 69 70 70 P_MREMAP_FLAG(MAYMOVE); 71 71 P_MREMAP_FLAG(FIXED); 72 + P_MREMAP_FLAG(DONTUNMAP); 72 73 #undef P_MREMAP_FLAG 73 74 74 75 if (flags)
+2
tools/perf/util/setup.py
··· 21 21 vars[var] = sub("-fstack-clash-protection", "", vars[var]) 22 22 if not clang_has_option("-fstack-protector-strong"): 23 23 vars[var] = sub("-fstack-protector-strong", "", vars[var]) 24 + if not clang_has_option("-fno-semantic-interposition"): 25 + vars[var] = sub("-fno-semantic-interposition", "", vars[var]) 24 26 25 27 from distutils.core import setup, Extension 26 28
+5 -2
tools/perf/util/stat-shadow.c
··· 803 803 out->force_header ? 804 804 (metric_name ? metric_name : name) : "", 0); 805 805 } 806 - } else 807 - print_metric(config, ctxp, NULL, NULL, "", 0); 806 + } else { 807 + print_metric(config, ctxp, NULL, NULL, 808 + out->force_header ? 809 + (metric_name ? metric_name : name) : "", 0); 810 + } 808 811 809 812 for (i = 1; i < pctx.num_ids; i++) 810 813 zfree(&pctx.ids[i].name);