mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 20:10:23 +09: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:
@@ -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
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user