Skip to contentSkip to conversation

tools include uapi: Grab a copy of linux/mount.h

tip:perf/urgent tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Jan 9, 2019 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  250bfc87ddc427fa001bbc8bc1468ce5fc06645b
Gitweb:     https://git.kernel.org/tip/250bfc87ddc427fa001bbc8bc1468ce5fc06645b
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Tue, 8 Jan 2019 13:42:37 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Tue, 8 Jan 2019 14:09:28 -0300

tools include uapi: Grab a copy of linux/mount.h

We were using a copy of uapi/linux/fs.h to create the mount syscall 'flags' string table to use in 'perf trace', to convert from the number obtained via the raw_syscalls:sys_enter into a string, using tools/perf/trace/beauty/mount_flags.sh, but in e262e32d6bde ("vfs:
Suppress MS_* flag defs within the kernel unless explicitly enabled") those defines got moved to linux/mount.h, so grab a copy of mount.h too.

Keep the uapi/linux/fs.h as we'll use it for the SEEK_ constants.

---
 {include => tools/include}/uapi/linux/mount.h | 0
 tools/perf/check-headers.sh                   | 1 +
 2 files changed, 1 insertion(+)
tools/include/uapi/linux/mount.h renamed from include/uapi/linux/mount.h +0 -0
similarity index 100%
copy from include/uapi/linux/mount.h
copy to tools/include/uapi/linux/mount.h
tools/perf/check-headers.sh +1 -0
index 6cb98f8570a2..b51e952ab35f 100755
@@ -10,6 +10,7 @@ include/uapi/linux/fs.h
 include/uapi/linux/kcmp.h
 include/uapi/linux/kvm.h
 include/uapi/linux/in.h
+include/uapi/linux/mount.h
 include/uapi/linux/perf_event.h
 include/uapi/linux/prctl.h
 include/uapi/linux/sched.h