Skip to content

Commit 690811f

Browse files
committed
tools headers uapi: Sync linux/stat.h with the kernel sources to pick STATX_MNT_ID_UNIQUE
To pick the changes from: 98d2b43 ("add unique mount ID") That add STATX_MNT_ID_UNIQUE that was manually added to tools/perf/trace/beauty/statx.c, at some point this should move to the shell based automated way. This silences this perf build warning: Warning: Kernel ABI header differences: diff -u tools/include/uapi/linux/stat.h include/uapi/linux/stat.h Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Christian Brauner <brauner@kernel.org> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Miklos Szeredi <mszeredi@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lore.kernel.org/lkml/ZbJq08s19890WDo-@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent ecb1b82 commit 690811f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

tools/include/uapi/linux/stat.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ struct statx {
154154
#define STATX_BTIME 0x00000800U /* Want/got stx_btime */
155155
#define STATX_MNT_ID 0x00001000U /* Got stx_mnt_id */
156156
#define STATX_DIOALIGN 0x00002000U /* Want/got direct I/O alignment info */
157+
#define STATX_MNT_ID_UNIQUE 0x00004000U /* Want/got extended stx_mount_id */
157158

158159
#define STATX__RESERVED 0x80000000U /* Reserved for future struct statx expansion */
159160

tools/perf/trace/beauty/statx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ size_t syscall_arg__scnprintf_statx_mask(char *bf, size_t size, struct syscall_a
6767
P_FLAG(BTIME);
6868
P_FLAG(MNT_ID);
6969
P_FLAG(DIOALIGN);
70+
P_FLAG(MNT_ID_UNIQUE);
7071

7172
#undef P_FLAG
7273

0 commit comments

Comments
 (0)