diff options
author | Suren Baghdasaryan <surenb@google.com> | 2023-01-28 00:52:24 +0000 |
---|---|---|
committer | Suren Baghdasaryan <surenb@google.com> | 2024-03-21 00:05:21 +0000 |
commit | bcf767c6744e06a84d959b48b6f3a141e66eda92 (patch) | |
tree | 0915393a080b32d5d0e37051fedd882db3a64892 /rust/helpers.c | |
parent | 6f3548384af20553beb146f008dd31764d57f707 (diff) |
mm/page_ext: enable early_page_ext when CONFIG_MEM_ALLOC_PROFILING_DEBUG=y
For all page allocations to be tagged, page_ext has to be initialized
before the first page allocation. Early tasks allocate their stacks
using page allocator before alloc_node_page_ext() initializes page_ext
area, unless early_page_ext is enabled. Therefore these allocations will
generate a warning when CONFIG_MEM_ALLOC_PROFILING_DEBUG is enabled.
Enable early_page_ext whenever CONFIG_MEM_ALLOC_PROFILING_DEBUG=y to
ensure page_ext initialization prior to any page allocation. This will
have all the negative effects associated with early_page_ext, such as
possible longer boot time, therefore we enable it only when debugging
with CONFIG_MEM_ALLOC_PROFILING_DEBUG enabled and not universally for
CONFIG_MEM_ALLOC_PROFILING.
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions