kexec_file: add kexec_file flag to support debug printing
Subsystems (2)
PATCH 1/1 kexec_file: add kexec_file flag to support debug printing
This add KEXEC_FILE_DEBUG to kexec_file_flags so that it can be passed to kernel when '-d' is added with kexec_file_load interface. With that flag enabled, kernel can enable the debugging message printing.
--- kexec/kexec-syscall.h | 1 + kexec/kexec.c | 1 + 2 files changed, 2 insertions(+)
kexec/kexec-syscall.h +1 -0
@@ -119,6 +119,7 @@ static inline long kexec_file_load(int kernel_fd, int initrd_fd,#define KEXEC_FILE_UNLOAD 0x00000001#define KEXEC_FILE_ON_CRASH 0x00000002#define KEXEC_FILE_NO_INITRAMFS 0x00000004 +#define KEXEC_FILE_DEBUG 0x00000008/* These values match the ELF architecture values. * Unless there is a good reason that should continue to be the case.
kexec/kexec.c +1 -0
@@ -1477,6 +1477,7 @@ int main(int argc, char *argv[])return 0 ;case OPT_DEBUG : kexec_debug =1 ; + kexec_file_flags |=KEXEC_FILE_DEBUG ;break ;case OPT_NOIFDOWN : skip_ifdown =1 ;
Signature · 7 lines
2.41.0 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Quoted 5 lines · Baoquan He
This add
KEXEC_FILE_DEBUGtokexec_file_flagsso that it can be passed to kernel when '-d' is added withkexec_file_loadinterface. With that flag enabled, kernel can enable the debugging message printing.Signed-off-by Baoquan He <[email protected]>
Thanks,
this looks fine to me.
But perhaps the corresponding Kernel patch should land first? Let me know what you think.
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Quoted 5 lines · Simon Horman
Quoted 4 lines · Baoquan He
This add
KEXEC_FILE_DEBUGtokexec_file_flagsso that it can be passed to kernel when '-d' is added withkexec_file_loadinterface. With that flag enabled, kernel can enable the debugging message printing.
Quoted 7 lines
Quoted 1 line
Signed-off-by Baoquan He <[email protected]>Thanks,
this looks fine to me.
But perhaps the corresponding Kernel patch should land first? Let me know what you think.
Yes, agree. I will ping you once kernel patches are taken. Thanks.
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Quoted 5 lines · Simon Horman
Quoted 4 lines · Baoquan He
This add
KEXEC_FILE_DEBUGtokexec_file_flagsso that it can be passed to kernel when '-d' is added withkexec_file_loadinterface. With that flag enabled, kernel can enable the debugging message printing.
Quoted 7 lines
Quoted 1 line
Signed-off-by Baoquan He <[email protected]>Thanks,
this looks fine to me.
But perhaps the corresponding Kernel patch should land first? Let me know what you think.
Ping, the relevant kernel patches landed in mainline kernel, please help merge this patch.
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Simon Horman
AppliedQuoted 8 lines · Baoquan He
Quoted 7 lines · Simon Horman
Quoted 5 lines · Baoquan He
This add
KEXEC_FILE_DEBUGtokexec_file_flagsso that it can be passed to kernel when '-d' is added withkexec_file_loadinterface. With that flag enabled, kernel can enable the debugging message printing.Signed-off-by Baoquan He <[email protected]>
Quoted 8 lines
Quoted 5 lines
Thanks,
this looks fine to me.
But perhaps the corresponding Kernel patch should land first? Let me know what you think.Ping, the relevant kernel patches landed in mainline kernel, please help merge this patch.
Thanks, applied.
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Quoted 11 lines · Simon Horman
Quoted 10 lines · Baoquan He
Quoted 9 lines · Simon Horman
Quoted 5 lines · Baoquan He
This add
KEXEC_FILE_DEBUGtokexec_file_flagsso that it can be passed to kernel when '-d' is added withkexec_file_loadinterface. With that flag enabled, kernel can enable the debugging message printing.Signed-off-by Baoquan He <[email protected]>Thanks,
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
this looks fine to me.
But perhaps the corresponding Kernel patch should land first? Let me know what you think.Ping, the relevant kernel patches landed in mainline kernel, please help merge this patch.
Thanks, applied.
Great, thanks a lot.
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec