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

tools headers: Update syscall.tbl files to support mount_setattr

To pick the changes from:

9caccd41541a6f7d ("fs: introduce MOUNT_ATTR_IDMAP")

This adds this new syscall to the tables used by tools such as 'perf
trace', so that one can specify it by name and have it filtered, etc.

Addressing these perf build warnings:

Warning: Kernel ABI header at 'tools/perf/arch/x86/entry/syscalls/syscall_64.tbl' differs from latest version at 'arch/x86/entry/syscalls/syscall_64.tbl'
diff -u tools/perf/arch/x86/entry/syscalls/syscall_64.tbl arch/x86/entry/syscalls/syscall_64.tbl
Warning: Kernel ABI header at 'tools/perf/arch/powerpc/entry/syscalls/syscall.tbl' differs from latest version at 'arch/powerpc/kernel/syscalls/syscall.tbl'
diff -u tools/perf/arch/powerpc/entry/syscalls/syscall.tbl arch/powerpc/kernel/syscalls/syscall.tbl
Warning: Kernel ABI header at 'tools/perf/arch/s390/entry/syscalls/syscall.tbl' differs from latest version at 'arch/s390/kernel/syscalls/syscall.tbl'
diff -u tools/perf/arch/s390/entry/syscalls/syscall.tbl arch/s390/kernel/syscalls/syscall.tbl

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Christian Brauner <christian.brauner@ubuntu.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lore.kernel.org/lkml/YD6Wsxr9ByUbab/a@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+19
+16
tools/include/uapi/linux/mount.h
··· 1 1 #ifndef _UAPI_LINUX_MOUNT_H 2 2 #define _UAPI_LINUX_MOUNT_H 3 3 4 + #include <linux/types.h> 5 + 4 6 /* 5 7 * These are the fs-independent mount-flags: up to 32 flags are supported 6 8 * ··· 119 117 #define MOUNT_ATTR_NOATIME 0x00000010 /* - Do not update access times. */ 120 118 #define MOUNT_ATTR_STRICTATIME 0x00000020 /* - Always perform atime updates */ 121 119 #define MOUNT_ATTR_NODIRATIME 0x00000080 /* Do not update directory access times */ 120 + #define MOUNT_ATTR_IDMAP 0x00100000 /* Idmap mount to @userns_fd in struct mount_attr. */ 121 + 122 + /* 123 + * mount_setattr() 124 + */ 125 + struct mount_attr { 126 + __u64 attr_set; 127 + __u64 attr_clr; 128 + __u64 propagation; 129 + __u64 userns_fd; 130 + }; 131 + 132 + /* List of all mount_attr versions. */ 133 + #define MOUNT_ATTR_SIZE_VER0 32 /* sizeof first published struct */ 122 134 123 135 #endif /* _UAPI_LINUX_MOUNT_H */
+1
tools/perf/arch/powerpc/entry/syscalls/syscall.tbl
··· 521 521 439 common faccessat2 sys_faccessat2 522 522 440 common process_madvise sys_process_madvise 523 523 441 common epoll_pwait2 sys_epoll_pwait2 compat_sys_epoll_pwait2 524 + 442 common mount_setattr sys_mount_setattr
+1
tools/perf/arch/s390/entry/syscalls/syscall.tbl
··· 444 444 439 common faccessat2 sys_faccessat2 sys_faccessat2 445 445 440 common process_madvise sys_process_madvise sys_process_madvise 446 446 441 common epoll_pwait2 sys_epoll_pwait2 compat_sys_epoll_pwait2 447 + 442 common mount_setattr sys_mount_setattr sys_mount_setattr
+1
tools/perf/arch/x86/entry/syscalls/syscall_64.tbl
··· 363 363 439 common faccessat2 sys_faccessat2 364 364 440 common process_madvise sys_process_madvise 365 365 441 common epoll_pwait2 sys_epoll_pwait2 366 + 442 common mount_setattr sys_mount_setattr 366 367 367 368 # 368 369 # Due to a historical design error, certain syscalls are numbered differently