Commit 000814f4 authored by Catalin Marinas's avatar Catalin Marinas

kmemleak: Rename kmemleak_panic to kmemleak_stop

This is to avoid the confusion created by the "panic" word.
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Acked-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
parent 216c04b0
...@@ -251,7 +251,7 @@ static void kmemleak_disable(void); ...@@ -251,7 +251,7 @@ static void kmemleak_disable(void);
* recovered from. Kkmemleak will be disabled and further allocation/freeing * recovered from. Kkmemleak will be disabled and further allocation/freeing
* tracing no longer available. * tracing no longer available.
*/ */
#define kmemleak_panic(x...) do { \ #define kmemleak_stop(x...) do { \
kmemleak_warn(x); \ kmemleak_warn(x); \
kmemleak_disable(); \ kmemleak_disable(); \
} while (0) } while (0)
...@@ -467,7 +467,7 @@ static void create_object(unsigned long ptr, size_t size, int min_count, ...@@ -467,7 +467,7 @@ static void create_object(unsigned long ptr, size_t size, int min_count,
object = kmem_cache_alloc(object_cache, gfp & GFP_KMEMLEAK_MASK); object = kmem_cache_alloc(object_cache, gfp & GFP_KMEMLEAK_MASK);
if (!object) { if (!object) {
kmemleak_panic("kmemleak: Cannot allocate a kmemleak_object " kmemleak_stop("kmemleak: Cannot allocate a kmemleak_object "
"structure\n"); "structure\n");
return; return;
} }
...@@ -527,7 +527,7 @@ static void create_object(unsigned long ptr, size_t size, int min_count, ...@@ -527,7 +527,7 @@ static void create_object(unsigned long ptr, size_t size, int min_count,
if (node != &object->tree_node) { if (node != &object->tree_node) {
unsigned long flags; unsigned long flags;
kmemleak_panic("kmemleak: Cannot insert 0x%lx into the object " kmemleak_stop("kmemleak: Cannot insert 0x%lx into the object "
"search tree (already existing)\n", ptr); "search tree (already existing)\n", ptr);
object = lookup_object(ptr, 1); object = lookup_object(ptr, 1);
spin_lock_irqsave(&object->lock, flags); spin_lock_irqsave(&object->lock, flags);
...@@ -699,7 +699,7 @@ static void log_early(int op_type, const void *ptr, size_t size, ...@@ -699,7 +699,7 @@ static void log_early(int op_type, const void *ptr, size_t size,
struct early_log *log; struct early_log *log;
if (crt_early_log >= ARRAY_SIZE(early_log)) { if (crt_early_log >= ARRAY_SIZE(early_log)) {
kmemleak_panic("kmemleak: Early log buffer exceeded\n"); kmemleak_stop("kmemleak: Early log buffer exceeded\n");
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment