diff options
Diffstat (limited to 'mm/slab.c')
| -rw-r--r-- | mm/slab.c | 12 |
1 files changed, 6 insertions, 6 deletions
| @@ -490,7 +490,7 @@ static void **dbg_userword(struct kmem_cache *cachep, void *objp) | |||
| 490 | 490 | ||
| 491 | #endif | 491 | #endif |
| 492 | 492 | ||
| 493 | #ifdef CONFIG_KMEMTRACE | 493 | #ifdef CONFIG_TRACING |
| 494 | size_t slab_buffer_size(struct kmem_cache *cachep) | 494 | size_t slab_buffer_size(struct kmem_cache *cachep) |
| 495 | { | 495 | { |
| 496 | return cachep->buffer_size; | 496 | return cachep->buffer_size; |
| @@ -3578,7 +3578,7 @@ void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags) | |||
| 3578 | } | 3578 | } |
| 3579 | EXPORT_SYMBOL(kmem_cache_alloc); | 3579 | EXPORT_SYMBOL(kmem_cache_alloc); |
| 3580 | 3580 | ||
| 3581 | #ifdef CONFIG_KMEMTRACE | 3581 | #ifdef CONFIG_TRACING |
| 3582 | void *kmem_cache_alloc_notrace(struct kmem_cache *cachep, gfp_t flags) | 3582 | void *kmem_cache_alloc_notrace(struct kmem_cache *cachep, gfp_t flags) |
| 3583 | { | 3583 | { |
| 3584 | return __cache_alloc(cachep, flags, __builtin_return_address(0)); | 3584 | return __cache_alloc(cachep, flags, __builtin_return_address(0)); |
| @@ -3641,7 +3641,7 @@ void *kmem_cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid) | |||
| 3641 | } | 3641 | } |
| 3642 | EXPORT_SYMBOL(kmem_cache_alloc_node); | 3642 | EXPORT_SYMBOL(kmem_cache_alloc_node); |
| 3643 | 3643 | ||
| 3644 | #ifdef CONFIG_KMEMTRACE | 3644 | #ifdef CONFIG_TRACING |
| 3645 | void *kmem_cache_alloc_node_notrace(struct kmem_cache *cachep, | 3645 | void *kmem_cache_alloc_node_notrace(struct kmem_cache *cachep, |
| 3646 | gfp_t flags, | 3646 | gfp_t flags, |
| 3647 | int nodeid) | 3647 | int nodeid) |
| @@ -3669,7 +3669,7 @@ __do_kmalloc_node(size_t size, gfp_t flags, int node, void *caller) | |||
| 3669 | return ret; | 3669 | return ret; |
| 3670 | } | 3670 | } |
| 3671 | 3671 | ||
| 3672 | #if defined(CONFIG_DEBUG_SLAB) || defined(CONFIG_KMEMTRACE) | 3672 | #if defined(CONFIG_DEBUG_SLAB) || defined(CONFIG_TRACING) |
| 3673 | void *__kmalloc_node(size_t size, gfp_t flags, int node) | 3673 | void *__kmalloc_node(size_t size, gfp_t flags, int node) |
| 3674 | { | 3674 | { |
| 3675 | return __do_kmalloc_node(size, flags, node, | 3675 | return __do_kmalloc_node(size, flags, node, |
| @@ -3689,7 +3689,7 @@ void *__kmalloc_node(size_t size, gfp_t flags, int node) | |||
| 3689 | return __do_kmalloc_node(size, flags, node, NULL); | 3689 | return __do_kmalloc_node(size, flags, node, NULL); |
| 3690 | } | 3690 | } |
| 3691 | EXPORT_SYMBOL(__kmalloc_node); | 3691 | EXPORT_SYMBOL(__kmalloc_node); |
| 3692 | #endif /* CONFIG_DEBUG_SLAB */ | 3692 | #endif /* CONFIG_DEBUG_SLAB || CONFIG_TRACING */ |
| 3693 | #endif /* CONFIG_NUMA */ | 3693 | #endif /* CONFIG_NUMA */ |
| 3694 | 3694 | ||
| 3695 | /** | 3695 | /** |
| @@ -3721,7 +3721,7 @@ static __always_inline void *__do_kmalloc(size_t size, gfp_t flags, | |||
| 3721 | } | 3721 | } |
| 3722 | 3722 | ||
| 3723 | 3723 | ||
| 3724 | #if defined(CONFIG_DEBUG_SLAB) || defined(CONFIG_KMEMTRACE) | 3724 | #if defined(CONFIG_DEBUG_SLAB) || defined(CONFIG_TRACING) |
| 3725 | void *__kmalloc(size_t size, gfp_t flags) | 3725 | void *__kmalloc(size_t size, gfp_t flags) |
| 3726 | { | 3726 | { |
| 3727 | return __do_kmalloc(size, flags, __builtin_return_address(0)); | 3727 | return __do_kmalloc(size, flags, __builtin_return_address(0)); |
