ANDROID: mm: Make slub_debug global
Make slub_debug a global variable so that it can be used by the minidump module to reserve memory for slab owner. Bug: 177377077 Change-Id: I0548a0f0d7abfa1d2df864669fa3aae443fbd6ec Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
This commit is contained in:
committed by
Suren Baghdasaryan
parent
29d1a0e310
commit
1430928b8a
@@ -239,6 +239,7 @@ extern unsigned long get_each_object_track(struct kmem_cache *s,
|
||||
struct page *page, enum track_item alloc,
|
||||
int (*fn)(const struct kmem_cache *, const void *,
|
||||
const struct track *, void *), void *private);
|
||||
extern slab_flags_t slub_debug;
|
||||
#else
|
||||
static inline void print_tracking(struct kmem_cache *s, void *object)
|
||||
{
|
||||
|
||||
@@ -473,9 +473,9 @@ static inline void *restore_red_left(struct kmem_cache *s, void *p)
|
||||
* Debug settings:
|
||||
*/
|
||||
#if defined(CONFIG_SLUB_DEBUG_ON)
|
||||
static slab_flags_t slub_debug = DEBUG_DEFAULT_FLAGS;
|
||||
slab_flags_t slub_debug = DEBUG_DEFAULT_FLAGS;
|
||||
#else
|
||||
static slab_flags_t slub_debug;
|
||||
slab_flags_t slub_debug;
|
||||
#endif
|
||||
|
||||
static char *slub_debug_string;
|
||||
|
||||
Reference in New Issue
Block a user