Skip to content

Commit 140cd9e

Browse files
committed
tools headers UAPI: Sync linux/prctl.h with the kernel sources
To pick the changes in: 9e4ab6c ("arm64/sme: Implement vector length configuration prctl()s") That don't result in any changes in tooling: $ tools/perf/trace/beauty/prctl_option.sh > before $ cp include/uapi/linux/prctl.h tools/include/uapi/linux/prctl.h $ tools/perf/trace/beauty/prctl_option.sh > after $ diff -u before after $ Just silences this perf tools build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/prctl.h' differs from latest version at 'include/uapi/linux/prctl.h' diff -u tools/include/uapi/linux/prctl.h include/uapi/linux/prctl.h Cc: Catalin Marinas <[email protected]> Cc: Mark Brown <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent c788ef6 commit 140cd9e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tools/include/uapi/linux/prctl.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,15 @@ struct prctl_mm_map {
272272
# define PR_SCHED_CORE_SCOPE_THREAD_GROUP 1
273273
# define PR_SCHED_CORE_SCOPE_PROCESS_GROUP 2
274274

275+
/* arm64 Scalable Matrix Extension controls */
276+
/* Flag values must be in sync with SVE versions */
277+
#define PR_SME_SET_VL 63 /* set task vector length */
278+
# define PR_SME_SET_VL_ONEXEC (1 << 18) /* defer effect until exec */
279+
#define PR_SME_GET_VL 64 /* get task vector length */
280+
/* Bits common to PR_SME_SET_VL and PR_SME_GET_VL */
281+
# define PR_SME_VL_LEN_MASK 0xffff
282+
# define PR_SME_VL_INHERIT (1 << 17) /* inherit across exec */
283+
275284
#define PR_SET_VMA 0x53564d41
276285
# define PR_SET_VMA_ANON_NAME 0
277286

0 commit comments

Comments
 (0)