help for kernel debug for gcc options -Og
by di.yao from LinuxQuestions.org on (#5P5EE)
hi, read the article(https://patchwork.kernel.org/project...ndo@intel.com/) about close gcc optimization from kernel patchwork.and when I do patch as what said, I failed......
I use pwclient search "debug-experience"
and then use pwclient git-am $patch-ID
it failed. and it looks like your patch on certain kernel version if so how can i find out the kernel version?
I am new about kernel knowledge. could someone do me a help... thanks thanks thanks
root@peter-Z390-UD:/opt/test/linux# pwclient search "DEBUG_EXPERIENCE"
ID State Name
10373897 New [4/5] kernel hacking: new config DEBUG_EXPERIENCE to apply GCC -Og optimization
10373893 New [5/5] asm-generic: fix build error in fix_to_virt with CONFIG_DEBUG_EXPERIENCE
10375673 New [v2,4/5] kernel hacking: new config DEBUG_EXPERIENCE to apply GCC -Og optimization
10375671 New [v2,5/5] asm-generic: fix build error in fix_to_virt with CONFIG_DEBUG_EXPERIENCE
10378241 New [v2,5/5] asm-generic: fix build error in fix_to_virt with CONFIG_DEBUG_EXPERIENCE
root@peter-Z390-UD:/opt/test/linux# pwclient get 10375673
Saved patch to v2-4-5-kernel-hacking-new-config-DEBUG_EXPERIENCE-to-apply-GCC--Og-optimization.0.patch
root@peter-Z390-UD:/opt/test/linux# pwclient git-am 10375673
Applying patch #10375673 using "git am"
Description: [v2,4/5] kernel hacking: new config DEBUG_EXPERIENCE to apply GCC -Og optimization
Applying: kernel hacking: new config DEBUG_EXPERIENCE to apply GCC -Og optimization
error: patch failed: Makefile:639
error: Makefile: patch does not apply
error: patch failed: include/linux/compiler-gcc.h:192
error: include/linux/compiler-gcc.h: patch does not apply
error: patch failed: include/linux/compiler.h:301
error: include/linux/compiler.h: patch does not apply
error: patch failed: lib/Kconfig.debug:216
error: lib/Kconfig.debug: patch does not apply
Patch failed at 0001 kernel hacking: new config DEBUG_EXPERIENCE to apply GCC -Og optimization
hint: Use 'git am --show-current-patch' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
'git am' failed with exit status 128
I use pwclient search "debug-experience"
and then use pwclient git-am $patch-ID
it failed. and it looks like your patch on certain kernel version if so how can i find out the kernel version?
I am new about kernel knowledge. could someone do me a help... thanks thanks thanks
root@peter-Z390-UD:/opt/test/linux# pwclient search "DEBUG_EXPERIENCE"
ID State Name
10373897 New [4/5] kernel hacking: new config DEBUG_EXPERIENCE to apply GCC -Og optimization
10373893 New [5/5] asm-generic: fix build error in fix_to_virt with CONFIG_DEBUG_EXPERIENCE
10375673 New [v2,4/5] kernel hacking: new config DEBUG_EXPERIENCE to apply GCC -Og optimization
10375671 New [v2,5/5] asm-generic: fix build error in fix_to_virt with CONFIG_DEBUG_EXPERIENCE
10378241 New [v2,5/5] asm-generic: fix build error in fix_to_virt with CONFIG_DEBUG_EXPERIENCE
root@peter-Z390-UD:/opt/test/linux# pwclient get 10375673
Saved patch to v2-4-5-kernel-hacking-new-config-DEBUG_EXPERIENCE-to-apply-GCC--Og-optimization.0.patch
root@peter-Z390-UD:/opt/test/linux# pwclient git-am 10375673
Applying patch #10375673 using "git am"
Description: [v2,4/5] kernel hacking: new config DEBUG_EXPERIENCE to apply GCC -Og optimization
Applying: kernel hacking: new config DEBUG_EXPERIENCE to apply GCC -Og optimization
error: patch failed: Makefile:639
error: Makefile: patch does not apply
error: patch failed: include/linux/compiler-gcc.h:192
error: include/linux/compiler-gcc.h: patch does not apply
error: patch failed: include/linux/compiler.h:301
error: include/linux/compiler.h: patch does not apply
error: patch failed: lib/Kconfig.debug:216
error: lib/Kconfig.debug: patch does not apply
Patch failed at 0001 kernel hacking: new config DEBUG_EXPERIENCE to apply GCC -Og optimization
hint: Use 'git am --show-current-patch' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
'git am' failed with exit status 128