Skip to content

Commit e7e79e9

Browse files
committed
tools headers: Sync uapi/linux/prctl.h with the kernel source
To pick up the changes in this cset: b1fabef prctl: Introduce PR_MTE_STORE_ONLY a2fc422 syscall_user_dispatch: Add PR_SYS_DISPATCH_INCLUSIVE_ON This addresses these perf build warnings: Warning: Kernel ABI header differences: diff -u tools/perf/trace/beauty/include/uapi/linux/prctl.h include/uapi/linux/prctl.h Please see tools/include/uapi/README for further details. Signed-off-by: Namhyung Kim <[email protected]>
1 parent 4a4083a commit e7e79e9

File tree

1 file changed

+8
-1
lines changed
  • tools/perf/trace/beauty/include/uapi/linux

1 file changed

+8
-1
lines changed

tools/perf/trace/beauty/include/uapi/linux/prctl.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ struct prctl_mm_map {
244244
# define PR_MTE_TAG_MASK (0xffffUL << PR_MTE_TAG_SHIFT)
245245
/* Unused; kept only for source compatibility */
246246
# define PR_MTE_TCF_SHIFT 1
247+
/* MTE tag check store only */
248+
# define PR_MTE_STORE_ONLY (1UL << 19)
247249
/* RISC-V pointer masking tag length */
248250
# define PR_PMLEN_SHIFT 24
249251
# define PR_PMLEN_MASK (0x7fUL << PR_PMLEN_SHIFT)
@@ -255,7 +257,12 @@ struct prctl_mm_map {
255257
/* Dispatch syscalls to a userspace handler */
256258
#define PR_SET_SYSCALL_USER_DISPATCH 59
257259
# define PR_SYS_DISPATCH_OFF 0
258-
# define PR_SYS_DISPATCH_ON 1
260+
/* Enable dispatch except for the specified range */
261+
# define PR_SYS_DISPATCH_EXCLUSIVE_ON 1
262+
/* Enable dispatch for the specified range */
263+
# define PR_SYS_DISPATCH_INCLUSIVE_ON 2
264+
/* Legacy name for backwards compatibility */
265+
# define PR_SYS_DISPATCH_ON PR_SYS_DISPATCH_EXCLUSIVE_ON
259266
/* The control values for the user space selector when dispatch is enabled */
260267
# define SYSCALL_DISPATCH_FILTER_ALLOW 0
261268
# define SYSCALL_DISPATCH_FILTER_BLOCK 1

0 commit comments

Comments
 (0)