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 <fj1508ic@fujitsu.com>
Acked-by: Kairui Song <kasong@redhat.com>
This commit is contained in:
fj1508ic@fujitsu.com 2021-01-26 06:37:28 +00:00 committed by Kairui Song
parent 18131894b6
commit f39000f524

View File

@ -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}
}