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:
parent
18131894b6
commit
f39000f524
@ -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}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user