slab_common.c (1ba586de22909f48db78682ee791e0213aba73ae) slab_common.c (4f6923fbb352d126659cabe34806cff75c7b5ea0)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Slab allocator functions that are independent of the allocator strategy
4 *
5 * (C) 2012 Christoph Lameter <cl@linux.com>
6 */
7#include <linux/slab.h>
8

--- 1502 unchanged lines hidden (view full) ---

1511
1512/* Tracepoints definitions. */
1513EXPORT_TRACEPOINT_SYMBOL(kmalloc);
1514EXPORT_TRACEPOINT_SYMBOL(kmem_cache_alloc);
1515EXPORT_TRACEPOINT_SYMBOL(kmalloc_node);
1516EXPORT_TRACEPOINT_SYMBOL(kmem_cache_alloc_node);
1517EXPORT_TRACEPOINT_SYMBOL(kfree);
1518EXPORT_TRACEPOINT_SYMBOL(kmem_cache_free);
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Slab allocator functions that are independent of the allocator strategy
4 *
5 * (C) 2012 Christoph Lameter <cl@linux.com>
6 */
7#include <linux/slab.h>
8

--- 1502 unchanged lines hidden (view full) ---

1511
1512/* Tracepoints definitions. */
1513EXPORT_TRACEPOINT_SYMBOL(kmalloc);
1514EXPORT_TRACEPOINT_SYMBOL(kmem_cache_alloc);
1515EXPORT_TRACEPOINT_SYMBOL(kmalloc_node);
1516EXPORT_TRACEPOINT_SYMBOL(kmem_cache_alloc_node);
1517EXPORT_TRACEPOINT_SYMBOL(kfree);
1518EXPORT_TRACEPOINT_SYMBOL(kmem_cache_free);
1519
1520int should_failslab(struct kmem_cache *s, gfp_t gfpflags)
1521{
1522 if (__should_failslab(s, gfpflags))
1523 return -ENOMEM;
1524 return 0;
1525}
1526ALLOW_ERROR_INJECTION(should_failslab, ERRNO);