Fix the breakage of log_pstore function
authora17671 <a17671@motorola.com>
Wed, 19 Sep 2018 06:57:05 +0000 (14:57 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:16 +0000 (17:30 +0800)
Ramoops does not work after adding annotation
Total memory size exceeds the oriGinal 2M
Reduce the ftrace_size to fix the problem

Change-Id: I9f0a140e653bb08644201a855cad65e381214cc1
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1243000
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Master Yoda
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

lib/debug-snapshot-pstore.c

index 460f740484e2d5dffdee8875ea74cd54815fda53..ecc3534ccb95c6dd2670a6fbf117530e5da10ce8 100644 (file)
@@ -218,7 +218,7 @@ static struct ramoops_platform_data dss_ramoops_data = {
 #else
        .record_size    = SZ_512K,
        .console_size   = SZ_512K,
-       .ftrace_size    = SZ_512K,
+       .ftrace_size    = SZ_256K,
        .pmsg_size      = SZ_512K,
         .annotate_size  = SZ_2K,
 #endif