From 078307f19fe9d5f5966f4e14700864d18895a151 Mon Sep 17 00:00:00 2001 From: Tao Liu Date: Nov 10 2021 02:20:27 +0000 Subject: Remove trace_buf_size and trace_event from the kernel bootparameters of the kdump kernel upstream: fedora resolves: bz2003832 conflict: none commit f39000f5240e577347d2cdae8fd9bcb710fe7325 Author: fj1508ic@fujitsu.com Date: Tue Jan 26 06:37:28 2021 +0000 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 Signed-off-by: Tao Liu --- diff --git a/kdump-lib.sh b/kdump-lib.sh index 3c42325..05a047a 100755 --- a/kdump-lib.sh +++ b/kdump-lib.sh @@ -757,6 +757,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} }