Skip to content

Commit d6d829d

Browse files
committed
tools headers UAPI: Sync sched.h with the kernel
To get the changes in: 769071a ("ns: Introduce Time Namespace") Silencing this tools/perf build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h' diff -u tools/include/uapi/linux/sched.h include/uapi/linux/sched.h Which enables 'perf trace' to decode the CLONE_NEWTIME bit in the 'flags' argument to the clone syscalls. Example of clone flags being decoded: [root@quaco ~]# perf trace -e clone* 0.000 qemu-system-x8/23923 clone(clone_flags: VM|FS|FILES|SIGHAND|THREAD|SYSVSEM|SETTLS|PARENT_SETTID|CHILD_CLEARTID, newsp: 0x7f0dad7f9870, parent_tidptr: 0x7f0dad7fa9d0, child_tidptr: 0x7f0dad7fa9d0, tls: 0x7f0dad7fa700) = 6806 (qemu-system-x86) ? qemu-system-x8/6806 ... [continued]: clone()) = 0 ^C[root@quaco ~]# At some point this should enable things like: # perf trace -e 'clone*/clone_flags&NEWTIME/' Cc: Adrian Hunter <[email protected]> Cc: Andrei Vagin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent d7a07b2 commit d6d829d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/include/uapi/linux/sched.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
/* Flags for the clone3() syscall. */
3737
#define CLONE_CLEAR_SIGHAND 0x100000000ULL /* Clear any signal handler and reset to SIG_DFL. */
3838

39+
/*
40+
* cloning flags intersect with CSIGNAL so can be used with unshare and clone3
41+
* syscalls only:
42+
*/
43+
#define CLONE_NEWTIME 0x00000080 /* New time namespace */
44+
3945
#ifndef __ASSEMBLY__
4046
/**
4147
* struct clone_args - arguments for the clone3 syscall

0 commit comments

Comments
 (0)