diff --git a/drivers/android/debug_symbols.c b/drivers/android/debug_symbols.c index 2ce0bfc51421..61e55575ed5f 100644 --- a/drivers/android/debug_symbols.c +++ b/drivers/android/debug_symbols.c @@ -15,6 +15,7 @@ #include "../../mm/slab.h" #include #include +#include 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 }; /* diff --git a/include/linux/android_debug_symbols.h b/include/linux/android_debug_symbols.h index a68636bba186..3fc44fb36fb7 100644 --- a/include/linux/android_debug_symbols.h +++ b/include/linux/android_debug_symbols.h @@ -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 };