From: Stephen Brennan <stephen.s.brennan@oracle.com>
To: "HAGIO KAZUHITO(萩尾 一仁)" <k-hagio-ab@nec.com>,
"Tao Liu" <ltao@redhat.com>,
"YAMAZAKI MASAMITSU(山崎 真光)" <yamazaki-msmt@nec.com>,
"kexec@lists.infradead.org" <kexec@lists.infradead.org>
Subject: Re: [PATCH v5][makedumpfile 6/9] Add makedumpfile extensions support
Date: Mon, 15 Jun 2026 10:12:07 -0700 [thread overview]
Message-ID: <874ij3zq1k.fsf@oracle.com> (raw)
In-Reply-To: <8b0079dd-e50a-4667-aabf-1612921b022a@nec.com>
HAGIO KAZUHITO(萩尾 一仁) <k-hagio-ab@nec.com> writes:
> 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.
Hello Kazu,
In kallsyms.c from patch 2, there is the line:
INIT_MOD_SYM(vmlinux, _stext);
This adds a struct ksym_info to the main makedumpfile executable's
array, which requests symbol "_stext" from vmlinux.
In kallsyms.c "init_kernel_kallsyms()", again from patch 2, the first
step is to call:
register_ksym_section((char *)__start_init_ksyms,
(char *)__stop_init_ksyms))
Which is a function generated by the macro REGISTER_SECTION(). The
implementation will use add_ksym_modname() whens it encounters this
symbol, ensuring that "vmlinux" is part of the modname array.
Thanks,
Stephen
> [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
next prev parent reply other threads:[~2026-06-15 17:12 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-14 10:26 [PATCH v5][makedumpfile 0/9] btf/kallsyms based makedumpfile extension for mm page filtering Tao Liu
2026-04-14 10:26 ` [PATCH v5][makedumpfile 1/9] Reserve sections for makedumpfile and extenions Tao Liu
2026-04-14 10:26 ` [PATCH v5][makedumpfile 2/9] Implement kernel kallsyms resolving Tao Liu
2026-06-15 8:09 ` HAGIO KAZUHITO(萩尾 一仁)
2026-06-15 23:04 ` Tao Liu
2026-04-14 10:26 ` [PATCH v5][makedumpfile 3/9] Implement kernel btf resolving Tao Liu
2026-04-14 10:26 ` [PATCH v5][makedumpfile 4/9] Implement kernel module's kallsyms resolving Tao Liu
2026-04-14 10:26 ` [PATCH v5][makedumpfile 5/9] Implement kernel module's btf resolving Tao Liu
2026-04-14 10:26 ` [PATCH v5][makedumpfile 6/9] Add makedumpfile extensions support Tao Liu
2026-06-15 8:09 ` HAGIO KAZUHITO(萩尾 一仁)
2026-06-15 17:12 ` Stephen Brennan [this message]
2026-06-15 23:03 ` Tao Liu
2026-06-16 1:39 ` HAGIO KAZUHITO(萩尾 一仁)
2026-06-16 2:17 ` Tao Liu
2026-06-16 7:51 ` HAGIO KAZUHITO(萩尾 一仁)
2026-06-16 10:31 ` Tao Liu
2026-06-17 1:50 ` HAGIO KAZUHITO(萩尾 一仁)
2026-06-17 2:34 ` Tao Liu
2026-04-14 10:26 ` [PATCH v5][makedumpfile 7/9] Add sample extension as an example reference Tao Liu
2026-04-14 10:26 ` [PATCH v5][makedumpfile 8/9] Doc: Add --extension option to makedumpfile manual Tao Liu
2026-04-14 10:26 ` [PATCH v5][makedumpfile 9/9] Add amdgpu mm pages filtering extension Tao Liu
2026-05-20 4:55 ` [PATCH v5][makedumpfile 0/9] btf/kallsyms based makedumpfile extension for mm page filtering Tao Liu
2026-05-28 18:37 ` Stephen Brennan
2026-05-28 22:02 ` Tao Liu
2026-05-29 21:11 ` Krister Johansen
2026-06-01 23:12 ` Tao Liu
2026-06-02 0:47 ` Krister Johansen
2026-06-02 3:04 ` Tao Liu
2026-06-02 4:49 ` Krister Johansen
2026-06-11 1:24 ` Tao Liu
2026-06-10 23:42 ` [PATCH] Add erase_sample extension as an data erase reference Tao Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874ij3zq1k.fsf@oracle.com \
--to=stephen.s.brennan@oracle.com \
--cc=k-hagio-ab@nec.com \
--cc=kexec@lists.infradead.org \
--cc=ltao@redhat.com \
--cc=yamazaki-msmt@nec.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox