[PATCH v5][makedumpfile 6/9] Add makedumpfile extensions support

HAGIO KAZUHITO(萩尾 一仁) k-hagio-ab at nec.com
Mon Jun 15 01:09:36 PDT 2026


On 2026/04/14 19:26, Tao Liu wrote:

> +static bool init_kallsyms_btf(void)
> +{
> +	int count;
> +	bool ret = false;
> +	/* We will load module's btf/kallsyms on demand */
> +	bool init_ksyms_module = false;
> +	bool init_ktypes_module = false;
> +
> +	if (check_ksyms_require_modname("vmlinux", &count)) {

Thank you for the explanation [1].

so which code path adds "vmlinux" to the mods array before this line?
I could not find it.

[1] https://lore.kernel.org/kexec/CAO7dBbUa_8H0fe+9bTNTQWjMVy9qCPiu0fo3g8XamiDS_Mr8eA@mail.gmail.com/


> +
> +bool has_extension_loaded(void)
> +{
> +	return extension_opts_len > 0;

If an extension is skipped, this looks > 0 with no extention.
handle_cbs_len is better?


Thanks,
Kazu


More information about the kexec mailing list