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:
Chinwen Chang 2021-05-20 10:31:03 +08:00 committed by Todd Kjos
commit f88eb0d245
2 changed files with 7 additions and 0 deletions

View file

@ -15,6 +15,7 @@
#include "../../mm/slab.h"
#include <linux/memblock.h>
#include <linux/page_owner.h>
#include <linux/swap.h>
struct ads_entry {
char *name;
@ -55,6 +56,9 @@ static const struct ads_entry ads_entries[ADS_END] = {
#ifdef CONFIG_SLUB_DEBUG
ADS_ENTRY(ADS_SLUB_DEBUG, &slub_debug),
#endif
#ifdef CONFIG_SWAP
ADS_ENTRY(ADS_NR_SWAP_PAGES, &nr_swap_pages),
#endif
};
/*

View file

@ -26,6 +26,9 @@ enum android_debug_symbol {
#endif
#ifdef CONFIG_SLUB_DEBUG
ADS_SLUB_DEBUG,
#endif
#ifdef CONFIG_SWAP
ADS_NR_SWAP_PAGES,
#endif
ADS_END
};