1 #ifndef _LINUX_SLAB_DEF_H
2 #define _LINUX_SLAB_DEF_H
15 #include <asm/cache.h>
16 #include <linux/compiler.h>
60 #ifdef CONFIG_DEBUG_SLAB
61 unsigned long num_active;
62 unsigned long num_allocations;
63 unsigned long high_mark;
67 unsigned long max_freeable;
68 unsigned long node_allocs;
69 unsigned long node_frees;
70 unsigned long node_overflow;
104 #ifdef CONFIG_ZONE_DMA
113 #ifdef CONFIG_TRACING
114 extern void *kmem_cache_alloc_trace(
struct kmem_cache *,
gfp_t,
size_t);
128 if (__builtin_constant_p(size)) {
143 #ifdef CONFIG_ZONE_DMA
150 ret = kmem_cache_alloc_trace(cachep, flags, size);
161 #ifdef CONFIG_TRACING
162 extern void *kmem_cache_alloc_node_trace(
struct kmem_cache *cachep,
168 kmem_cache_alloc_node_trace(
struct kmem_cache *cachep,
181 if (__builtin_constant_p(size)) {
196 #ifdef CONFIG_ZONE_DMA
203 return kmem_cache_alloc_node_trace(cachep, flags, node, size);