diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-10-31 09:04:11 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-10-31 15:17:03 -0400 |
commit | 735e215e95e53b857000aaabe1b4707878b10f43 (patch) | |
tree | c124380910a089b5882964b98fd8546a68b6331c | |
parent | d6332a176b869df1839abb26c8f80026a66d21d6 (diff) |
tools include uapi: Grab a copy of linux/kcmp.h
We will use it to generate tables for beautifying kcmp's 'type' arg.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andrey Vagin <avagin@openvz.org>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-r35zr79invmpinfe1zu57cas@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/include/uapi/linux/kcmp.h | 27 | ||||
-rwxr-xr-x | tools/perf/check-headers.sh | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/tools/include/uapi/linux/kcmp.h b/tools/include/uapi/linux/kcmp.h new file mode 100644 index 000000000000..481e103da78e --- /dev/null +++ b/tools/include/uapi/linux/kcmp.h | |||
@@ -0,0 +1,27 @@ | |||
1 | #ifndef _UAPI_LINUX_KCMP_H | ||
2 | #define _UAPI_LINUX_KCMP_H | ||
3 | |||
4 | #include <linux/types.h> | ||
5 | |||
6 | /* Comparison type */ | ||
7 | enum kcmp_type { | ||
8 | KCMP_FILE, | ||
9 | KCMP_VM, | ||
10 | KCMP_FILES, | ||
11 | KCMP_FS, | ||
12 | KCMP_SIGHAND, | ||
13 | KCMP_IO, | ||
14 | KCMP_SYSVSEM, | ||
15 | KCMP_EPOLL_TFD, | ||
16 | |||
17 | KCMP_TYPES, | ||
18 | }; | ||
19 | |||
20 | /* Slot for KCMP_EPOLL_TFD */ | ||
21 | struct kcmp_epoll_slot { | ||
22 | __u32 efd; /* epoll file descriptor */ | ||
23 | __u32 tfd; /* target file number */ | ||
24 | __u32 toff; /* target offset within same numbered sequence */ | ||
25 | }; | ||
26 | |||
27 | #endif /* _UAPI_LINUX_KCMP_H */ | ||
diff --git a/tools/perf/check-headers.sh b/tools/perf/check-headers.sh index 8d8b37198666..a3a041b0d35e 100755 --- a/tools/perf/check-headers.sh +++ b/tools/perf/check-headers.sh | |||
@@ -4,6 +4,7 @@ HEADERS=' | |||
4 | include/uapi/drm/drm.h | 4 | include/uapi/drm/drm.h |
5 | include/uapi/drm/i915_drm.h | 5 | include/uapi/drm/i915_drm.h |
6 | include/uapi/linux/fcntl.h | 6 | include/uapi/linux/fcntl.h |
7 | include/uapi/linux/kcmp.h | ||
7 | include/uapi/linux/kvm.h | 8 | include/uapi/linux/kvm.h |
8 | include/uapi/linux/perf_event.h | 9 | include/uapi/linux/perf_event.h |
9 | include/uapi/linux/prctl.h | 10 | include/uapi/linux/prctl.h |