mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
ANDROID: android: Add nr_swap_pages to debug_symbols driver
Add nr_swap_pages symbol which will be used by the memory profiling module to debug_symbols driver. Bug: 149040612 Change-Id: I444e53046cf83c91899360e82f817d38cd4fba40 Signed-off-by: Chinwen Chang <chinwen.chang@mediatek.com>
This commit is contained in:
parent
9b5c870516
commit
f88eb0d245
|
|
@ -15,6 +15,7 @@
|
||||||
#include "../../mm/slab.h"
|
#include "../../mm/slab.h"
|
||||||
#include <linux/memblock.h>
|
#include <linux/memblock.h>
|
||||||
#include <linux/page_owner.h>
|
#include <linux/page_owner.h>
|
||||||
|
#include <linux/swap.h>
|
||||||
|
|
||||||
struct ads_entry {
|
struct ads_entry {
|
||||||
char *name;
|
char *name;
|
||||||
|
|
@ -55,6 +56,9 @@ static const struct ads_entry ads_entries[ADS_END] = {
|
||||||
#ifdef CONFIG_SLUB_DEBUG
|
#ifdef CONFIG_SLUB_DEBUG
|
||||||
ADS_ENTRY(ADS_SLUB_DEBUG, &slub_debug),
|
ADS_ENTRY(ADS_SLUB_DEBUG, &slub_debug),
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_SWAP
|
||||||
|
ADS_ENTRY(ADS_NR_SWAP_PAGES, &nr_swap_pages),
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,9 @@ enum android_debug_symbol {
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_SLUB_DEBUG
|
#ifdef CONFIG_SLUB_DEBUG
|
||||||
ADS_SLUB_DEBUG,
|
ADS_SLUB_DEBUG,
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_SWAP
|
||||||
|
ADS_NR_SWAP_PAGES,
|
||||||
#endif
|
#endif
|
||||||
ADS_END
|
ADS_END
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user