Skip to content
Snippets Groups Projects
Commit 8fff5c29 authored by Sebastian Reichel's avatar Sebastian Reichel Committed by Sebastian Reichel
Browse files

Port changes from PATCHv2 of Memory allocation profiling patchset


This fixes the feature on 32 bit architectures.

Official changelog:
- Simplified allocation tagging macros;
- Runtime enable/disable sysctl switch (/proc/sys/vm/mem_profiling)
  instead of kernel command-line option;
- CONFIG_MEM_ALLOC_PROFILING_BY_DEFAULT to select default enable state;
- Changed the user-facing API from debugfs to procfs (/proc/allocinfo);
- Removed context capture support to make patch incremental;
- Renamed uninstrumented allocation functions to use _noprof suffix;
- Added __GFP_LAST_BIT to make the code cleaner;
- Removed lazy per-cpu counters; it turned out the memory savings was
  minimal and not worth the performance impact;

Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 06cbadc9
No related branches found
No related tags found
No related merge requests found
Showing
with 271 additions and 420 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment