From f39000f5240e577347d2cdae8fd9bcb710fe7325 Mon Sep 17 00:00:00 2001 From: "fj1508ic@fujitsu.com" Date: Tue, 26 Jan 2021 06:37:28 +0000 Subject: [PATCH] Remove trace_buf_size and trace_event from the kernel bootparameters of the kdump kernel The kdump kernel uses resources for ftrace because trace_buf_size, which specifies the ring buffer size for ftrace, and trace_event, which specifies a valid trace event, are not removed, but the kdump kernel does not require ftrace. trace_buf_size is ignored if the specified size is 0, so specify 1. Signed-off-by: Hisashi Nagaoka Acked-by: Kairui Song --- kdump-lib.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kdump-lib.sh b/kdump-lib.sh index 46e5e03..537d5f8 100755 --- a/kdump-lib.sh +++ b/kdump-lib.sh @@ -821,6 +821,10 @@ prepare_cmdline() fi done + # Remove trace_buf_size, trace_event + cmdline=$(remove_cmdline_param "$cmdline" trace_buf_size trace_event) + cmdline="${cmdline} trace_buf_size=1" + echo ${cmdline} }