From fa1425e37c000483d471e3fafb6bc8dd7b0353a3 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/android_debug_symbols.c | 1 + include/linux/android_debug_symbols.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/android/android_debug_symbols.c b/drivers/android/android_debug_symbols.c index 13084b171412..254d52b0e368 100644 --- a/drivers/android/android_debug_symbols.c +++ b/drivers/android/android_debug_symbols.c @@ -75,6 +75,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 8cadd426c27d..3750d361ce46 100644 --- a/include/linux/android_debug_symbols.h +++ b/include/linux/android_debug_symbols.h @@ -39,6 +39,7 @@ enum android_debug_symbol { #ifdef CONFIG_SYSCTL ADS_SYSCTL_LEGACY_VA_LAYOUT, #endif + ADS_SHOW_MEM, ADS_END };