Messages in this thread Patch in this message | | | Date | Thu, 10 Jul 2008 21:06:06 +0300 | From | Eduard - Gabriel Munteanu <> | Subject | [RFC PATCH 2/5] Add new GFP flag __GFP_NOTRACE. |
| |
__GFP_NOTRACE turns off allocator tracing for that particular allocation.
This is used by kmemtrace to correctly classify different kinds of allocations, without recording one event multiple times. Example: SLAB's kmalloc() calls kmem_cache_alloc(), but we want to record this only as a kmalloc.
Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> --- include/linux/gfp.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/linux/gfp.h b/include/linux/gfp.h index b414be3..693a5a9 100644 --- a/include/linux/gfp.h +++ b/include/linux/gfp.h @@ -43,6 +43,7 @@ struct vm_area_struct; #define __GFP_REPEAT ((__force gfp_t)0x400u) /* See above */ #define __GFP_NOFAIL ((__force gfp_t)0x800u) /* See above */ #define __GFP_NORETRY ((__force gfp_t)0x1000u)/* See above */ +#define __GFP_NOTRACE ((__force gfp_t)0x2000u) /* Inhibit tracing this. */ #define __GFP_COMP ((__force gfp_t)0x4000u)/* Add compound page metadata */ #define __GFP_ZERO ((__force gfp_t)0x8000u)/* Return zeroed page on success */ #define __GFP_NOMEMALLOC ((__force gfp_t)0x10000u) /* Don't use emergency reserves */ -- 1.5.6.1
| |