From fddf81394141e10da01e8d8a1827daabd645e3ee Mon Sep 17 00:00:00 2001 From: Woody Lin Date: Mon, 1 Nov 2021 16:03:01 +0800 Subject: [PATCH] ANDROID: debug_symbols: Add show_mem Add show_mem symbol which will be used by the hard-lockup debugging module to debug_symbols driver. Bug: 199478662 Signed-off-by: Woody Lin Change-Id: I479700e9f1428b4e1192881b4e3b67c9e43afbeb --- drivers/android/debug_symbols.c | 1 + include/linux/android_debug_symbols.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/android/debug_symbols.c b/drivers/android/debug_symbols.c index 6a4a6f8992f2..f2a5a0614ccc 100644 --- a/drivers/android/debug_symbols.c +++ b/drivers/android/debug_symbols.c @@ -68,6 +68,7 @@ static const struct ads_entry ads_entries[ADS_END] = { #ifdef CONFIG_SYSCTL ADS_ENTRY(ADS_SYSCTL_LEGACY_VA_LAYOUT, &sysctl_legacy_va_layout), #endif + ADS_ENTRY(ADS_SHOW_MEM, show_mem), }; /* diff --git a/include/linux/android_debug_symbols.h b/include/linux/android_debug_symbols.h index 6a54e9116e3d..07484238c8e4 100644 --- a/include/linux/android_debug_symbols.h +++ b/include/linux/android_debug_symbols.h @@ -37,6 +37,7 @@ enum android_debug_symbol { #ifdef CONFIG_SYSCTL ADS_SYSCTL_LEGACY_VA_LAYOUT, #endif + ADS_SHOW_MEM, ADS_END };