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:
Vijayanand Jitta
2021-03-23 08:57:33 +05:30
committed by Suren Baghdasaryan
parent 29d1a0e310
commit 1430928b8a
2 changed files with 3 additions and 2 deletions

View File

@@ -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)
{

View File

@@ -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;