Skip to contentSkip to conversation

lib-stackdepot-export-save-fetch-stack-for-drivers.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 14, 2016

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: lib/stackdepot: export save/fetch stack for drivers
has been removed from the -mm tree. Its filename was
lib-stackdepot-export-save-fetch-stack-for-drivers.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Chris Wilson <[email protected]>
Subject: lib/stackdepot: export save/fetch stack for drivers

Some drivers would like to record stacktraces in order to aide leak tracing. As stackdepot already provides a facility for only storing the unique traces, thereby reducing the memory required, export that functionality for use by drivers.

The code was originally created for KASAN and moved under lib in commit cd11016e5f521 ("mm, kasan: stackdepot implementation. Enable stackdepot for SLAB") so that it could be shared with mm/. In turn, we want to share it now with drivers.

Cc Andrey Ryabinin <[email protected]>
Cc Alexander Potapenko <[email protected]>
Cc Dmitry Vyukov <[email protected]>
Cc Joonsoo Kim <[email protected]>
Cc "Kirill A. Shutemov" <[email protected]>
Cc Daniel Vetter <[email protected]>

---

 lib/stackdepot.c |    2 ++
 1 file changed, 2 insertions(+)
lib/stackdepot.c renamed from lib/stackdepot.c~lib-stackdepot-export-save-fetch-stack-for-drivers +2 -0
diff -puN lib/stackdepot.c~lib-stackdepot-export-save-fetch-stack-for-drivers lib/stackdepot.c
@@ -192,6 +192,7 @@ void depot_fetch_stack(depot_stack_handl
 	trace->entries = stack->entries;
 	trace->skip = 0;
 }
+EXPORT_SYMBOL_GPL(depot_fetch_stack);
 
 /**
  * depot_save_stack - save stack in a stack depot.
@@ -283,3 +284,4 @@ exit:
 fast_exit:
 	return retval;
 }
+EXPORT_SYMBOL_GPL(depot_save_stack);

_

Patches currently in -mm which might be from [email protected] are