Skip to content

Commit 5be9338

Browse files
committed
tools headers: Sync uapi/linux/prctl.h with the kernel source
To pick up the changes in these csets: 8cdc4d2 ("mm/huge_memory: respect MADV_COLLAPSE with PR_THP_DISABLE_EXCEPT_ADVISED") 9dc21bb ("prctl: extend PR_SET_THP_DISABLE to optionally exclude VM_HUGEPAGE") That don't introduce anything of interest for the tools/, just addressing these perf build warnings: Warning: Kernel ABI header differences: diff -u tools/perf/trace/beauty/include/uapi/linux/prctl.h include/uapi/linux/prctl.h Please see tools/include/uapi/README for further details. Cc: Andrew Morton <akpm@linux-foundation.org> Cc: David Hildenbrand <david@redhat.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 76977ba commit 5be9338

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • tools/perf/trace/beauty/include/uapi/linux

tools/perf/trace/beauty/include/uapi/linux/prctl.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,17 @@ struct prctl_mm_map {
177177

178178
#define PR_GET_TID_ADDRESS 40
179179

180+
/*
181+
* Flags for PR_SET_THP_DISABLE are only applicable when disabling. Bit 0
182+
* is reserved, so PR_GET_THP_DISABLE can return "1 | flags", to effectively
183+
* return "1" when no flags were specified for PR_SET_THP_DISABLE.
184+
*/
180185
#define PR_SET_THP_DISABLE 41
186+
/*
187+
* Don't disable THPs when explicitly advised (e.g., MADV_HUGEPAGE /
188+
* VM_HUGEPAGE, MADV_COLLAPSE).
189+
*/
190+
# define PR_THP_DISABLE_EXCEPT_ADVISED (1 << 1)
181191
#define PR_GET_THP_DISABLE 42
182192

183193
/*

0 commit comments

Comments
 (0)