Skip to content

Commit fb04563

Browse files
author
Peter Zijlstra
committed
sched: Show PF_flag holes
Put placeholders in PF_flag so we can see how holey it is. Suggested-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Ingo Molnar <mingo@kernel.org> Link: https://lkml.kernel.org/r/YxctoffFFPXONESt@hirez.programming.kicks-ass.net
1 parent f5d39b0 commit fb04563

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/linux/sched.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,17 +1722,24 @@ extern struct pid *cad_pid;
17221722
#define PF_MEMALLOC 0x00000800 /* Allocating memory */
17231723
#define PF_NPROC_EXCEEDED 0x00001000 /* set_user() noticed that RLIMIT_NPROC was exceeded */
17241724
#define PF_USED_MATH 0x00002000 /* If unset the fpu must be initialized before use */
1725+
#define PF__HOLE__00004000 0x00004000
17251726
#define PF_NOFREEZE 0x00008000 /* This thread should not be frozen */
1727+
#define PF__HOLE__00010000 0x00010000
17261728
#define PF_KSWAPD 0x00020000 /* I am kswapd */
17271729
#define PF_MEMALLOC_NOFS 0x00040000 /* All allocation requests will inherit GFP_NOFS */
17281730
#define PF_MEMALLOC_NOIO 0x00080000 /* All allocation requests will inherit GFP_NOIO */
17291731
#define PF_LOCAL_THROTTLE 0x00100000 /* Throttle writes only against the bdi I write to,
17301732
* I am cleaning dirty pages from some other bdi. */
17311733
#define PF_KTHREAD 0x00200000 /* I am a kernel thread */
17321734
#define PF_RANDOMIZE 0x00400000 /* Randomize virtual address space */
1735+
#define PF__HOLE__00800000 0x00800000
1736+
#define PF__HOLE__01000000 0x01000000
1737+
#define PF__HOLE__02000000 0x02000000
17331738
#define PF_NO_SETAFFINITY 0x04000000 /* Userland is not allowed to meddle with cpus_mask */
17341739
#define PF_MCE_EARLY 0x08000000 /* Early kill for mce process policy */
17351740
#define PF_MEMALLOC_PIN 0x10000000 /* Allocation context constrained to zones which allow long term pinning. */
1741+
#define PF__HOLE__20000000 0x20000000
1742+
#define PF__HOLE__40000000 0x40000000
17361743
#define PF_SUSPEND_TASK 0x80000000 /* This thread called freeze_processes() and should not be frozen */
17371744

17381745
/*

0 commit comments

Comments
 (0)