Kbuild: DWARF v5 support
Subsystems (4)
v5 cover Kbuild: DWARF v5 support
DWARF v5 is the latest standard of the DWARF debug info format.
DWARF5 wins significantly in terms of size when mixed with compression (CONFIG_DEBUG_INFO_COMPRESSED).
Patch 1 is a cleanup from Masahiro and isn't DWARF v5 specific. Patch 2 is a cleanup that lays the ground work and isn't DWARF v5 specific.
Patch 3 implements Kconfig and Kbuild support for DWARFv5.
Changes from v4:
* drop set -e from script as per Nathan.
* add dependency on !CONFIG_DEBUG_INFO_BTF for DWARF v5 as per Sedat.
* Move LLVM_IAS=1 complexity from patch 2 to patch 3 as per Arvind and Masahiro. Sorry it took me a few tries to understand the point (I might still not), but it looks much cleaner this way. Sorry Nathan, I did not carry forward your previous reviews as a result, but I would appreciate if you could look again.
* Add Nathan's reviewed by tag to patch 1.
* Reword commit message for patch 3 to mention LLVM_IAS=1 and -gdwarf-5 binutils addition later, and BTF issue.
* I still happen to see a pahole related error spew for the combination of:
* LLVM=1
* LLVM_IAS=1
* CONFIG_DEBUG_INFO_DWARF4
* CONFIG_DEBUG_INFO_BTF
Though they're non-fatal to the build. I'm not sure yet why removing any one of the above prevents the warning spew. Maybe we'll need a v6.
Changes from v3:
Changes as per Arvind:
* only add -Wa,-gdwarf-5 for (LLVM=1|CC=clang)+LLVM_IAS=0 builds.
* add -gdwarf-5 to Kconfig shell script.
* only run Kconfig shell script for Clang.
Apologies to Sedat and Nathan; I appreciate previous testing/review, but I did no carry forward your Tested-by and Reviewed-by tags, as the patches have changed too much IMO.
Changes from v2:
* Drop two of the earlier patches that have been accepted already.
* Add measurements with GCC 10.2 to commit message.
* Update help text as per Arvind with help from Caroline.
* Improve case/wording between DWARF Versions as per Masahiro.
Changes from the RFC:
* split patch in 3 patch series, include Fangrui's patch, too.
* prefer DWARF vX format, as per Fangrui.
* use spaces between assignment in Makefile as per Masahiro.
* simplify setting dwarf-version-y as per Masahiro.
* indent prompt in Kconfig change as per Masahiro.
* remove explicit default in Kconfig as per Masahiro.
* add comments to test_dwarf5_support.sh.
* change echo in test_dwarf5_support.sh as per Masahiro.
* remove -u from test_dwarf5_support.sh as per Masahiro.
* add a -gdwarf-5 cc-option check to Kconfig as per Jakub.
*** BLURB HERE ***
Masahiro Yamada (1):
Remove $(cc-option,-gdwarf-4) dependency from CONFIG_DEBUG_INFO_DWARF4
Nick Desaulniers (2):
Kbuild: make DWARF version a choice
Kbuild: implement support for DWARF v5
Makefile | 13 +++++++--- include/asm-generic/vmlinux.lds.h | 6 ++++- lib/Kconfig.debug | 42 +++++++++++++++++++++++++------ scripts/test_dwarf5_support.sh | 8 ++++++ 4 files changed, 57 insertions(+), 12 deletions(-) create mode 100755 scripts/test_dwarf5_support.sh
Signature · 1 line
2.30.0.284.gd98b1dd5eaa7-goog
PATCH v5 1/3 Remove $(cc-option,-gdwarf-4) dependency from CONFIG_DEBUG_INFO_DWARF4
From: Masahiro Yamada <[email protected]>
The -gdwarf-4 flag is supported by GCC 4.5+, and also by Clang.
You can see it at https://godbolt.org/z/6ed1oW
For gcc 4.5.3 pane, line 37: .value 0x4
For clang 10.0.1 pane, line 117: .short 4
Given Documentation/process/changes.rst stating GCC 4.9 is the minimal version, this cc-option is unneeded.
Note
----
CONFIG_DEBUG_INFO_DWARF4 controls the DWARF version only for C files.
As you can see in the top Makefile, -gdwarf-4 is only passed to CFLAGS.
ifdef CONFIG_DEBUG_INFO_DWARF4
DEBUG_CFLAGS += -gdwarf-4
endif
This flag is used when compiling *.c files.
On the other hand, the assembler is always given -gdwarf-2.
KBUILD_AFLAGS += -Wa,-gdwarf-2
Hence, the debug info that comes from *.S files is always DWARF v2. This is simply because GAS supported only -gdwarf-2 for a long time.
Recently, GAS gained the support for --dwarf-[3|4|5] options. [1] And, also we have Clang integrated assembler. So, the debug info for *.S files might be improved if we want.
In my understanding, the current code is intentional, not a bug.
[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=31bf18645d98b4d3d7357353be840e320649a67d
--- lib/Kconfig.debug | 1 - 1 file changed, 1 deletion(-)
lib/Kconfig.debug +0 -1
@@ -258,7 +258,6 @@ config DEBUG_INFO_SPLIT config DEBUG_INFO_DWARF4 bool "Generate dwarf4 debuginfo" - depends on $(cc-option,-gdwarf-4) help Generate dwarf4 debug info. This requires recent versions of gcc and gdb. It makes the debug information larger.
Signature · 1 line
2.30.0.284.gd98b1dd5eaa7-goog
Re: [PATCH v5 1/3] Remove $(cc-option,-gdwarf-4) dependency from CONFIG_DEBUG_INFO_DWARF4
Quoted 37 lines · Nick Desaulniers
From: Masahiro Yamada <[email protected]>
The -gdwarf-4 flag is supported by GCC 4.5+, and also by Clang.
You can see it at https://godbolt.org/z/6ed1oW
For gcc 4.5.3 pane, line 37: .value
0x4
For clang 10.0.1 pane, line 117: .short 4Given
Documentation/process/changes.rststating GCC 4.9 is the minimal version, this cc-option is unneeded.Note
----
CONFIG_DEBUG_INFO_DWARF4controls the DWARF version only for C files.As you can see in the top
Makefile, -gdwarf-4 is only passed to CFLAGS.ifdef
CONFIG_DEBUG_INFO_DWARF4
DEBUG_CFLAGS+= -gdwarf-4
endifThis flag is used when compiling *.c files.
On the other hand, the assembler is always given -gdwarf-2.
KBUILD_AFLAGS+= -Wa,-gdwarf-2Hence, the debug info that comes from *.S files is always DWARF v2. This is simply because GAS supported only -gdwarf-2 for a long time.
Recently, GAS gained the support for --dwarf-[3|4|5] options. [1] And, also we have Clang integrated assembler. So, the debug info for *.S files might be improved if we want.
Quoted 7 lines
In my understanding, the current code is intentional, not a bug.
[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=31bf18645d98b4d3d7357353be840e320649a67d
Reviewed-by Nick Desaulniers <[email protected]>Reviewed-by Nathan Chancellor <[email protected]>Signed-off-by Masahiro Yamada <[email protected]>
Subject misses a "kbuild:" label like in all other patches. You have:
"Remove $(cc-option,-gdwarf-4) dependency from CONFIG_DEBUG_INFO_DWARF4"
- Sedat -
Quoted 19 lines
--- lib/Kconfig.debug | 1 - 1 file changed, 1 deletion(-)lib/Kconfig.debug +0
-2@@ -258,7 +258,6 @@ config DEBUG_INFO_SPLIT config DEBUG_INFO_DWARF4 bool "Generate dwarf4 debuginfo" - depends on $(cc-option,-gdwarf-4) help Generate dwarf4 debug info. This requires recent versions of gcc and gdb. It makes the debug information larger. --2.30.0.284.gd98b1dd5eaa7-goog
Re: [PATCH v5 1/3] Remove $(cc-option,-gdwarf-4) dependency from CONFIG_DEBUG_INFO_DWARF4
Quoted 44 lines · Sedat Dilek
Quoted 41 lines · Nick Desaulniers
From: Masahiro Yamada <[email protected]>
The -gdwarf-4 flag is supported by GCC 4.5+, and also by Clang.
You can see it at https://godbolt.org/z/6ed1oW
For gcc 4.5.3 pane, line 37: .value
0x4
For clang 10.0.1 pane, line 117: .short 4Given
Documentation/process/changes.rststating GCC 4.9 is the minimal version, this cc-option is unneeded.Note
----
CONFIG_DEBUG_INFO_DWARF4controls the DWARF version only for C files.As you can see in the top
Makefile, -gdwarf-4 is only passed to CFLAGS.ifdef
CONFIG_DEBUG_INFO_DWARF4
DEBUG_CFLAGS+= -gdwarf-4
endifThis flag is used when compiling *.c files.
On the other hand, the assembler is always given -gdwarf-2.
KBUILD_AFLAGS+= -Wa,-gdwarf-2Hence, the debug info that comes from *.S files is always DWARF v2. This is simply because GAS supported only -gdwarf-2 for a long time.
Recently, GAS gained the support for --dwarf-[3|4|5] options. [1] And, also we have Clang integrated assembler. So, the debug info for *.S files might be improved if we want.
In my understanding, the current code is intentional, not a bug.
[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=31bf18645d98b4d3d7357353be840e320649a67d
Quoted 7 lines
Quoted 3 lines
Reviewed-by Nick Desaulniers <[email protected]>Reviewed-by Nathan Chancellor <[email protected]>Signed-off-by Masahiro Yamada <[email protected]>Subject misses a "kbuild:" label like in all other patches. You have:
"Remove $(cc-option,-gdwarf-4) dependency fromCONFIG_DEBUG_INFO_DWARF4"
Ack, I wonder how that happened? Ah well, will fix in v6; thanks for the feedback.
Quoted 22 lines
- Sedat -
Quoted 19 lines
--- lib/Kconfig.debug | 1 - 1 file changed, 1 deletion(-)lib/Kconfig.debug +0
-2@@ -258,7 +258,6 @@ config DEBUG_INFO_SPLIT config DEBUG_INFO_DWARF4 bool "Generate dwarf4 debuginfo" - depends on $(cc-option,-gdwarf-4) help Generate dwarf4 debug info. This requires recent versions of gcc and gdb. It makes the debug information larger. --2.30.0.284.gd98b1dd5eaa7-goog
Signature · 2 lines
Thanks, ~Nick Desaulniers
Re: [PATCH v5 1/3] Remove $(cc-option,-gdwarf-4) dependency from CONFIG_DEBUG_INFO_DWARF4
Quoted 50 lines · Nick Desaulniers
Quoted 48 lines · Sedat Dilek
Quoted 44 lines · Nick Desaulniers
From: Masahiro Yamada <[email protected]>
The -gdwarf-4 flag is supported by GCC 4.5+, and also by Clang.
You can see it at https://godbolt.org/z/6ed1oW
For gcc 4.5.3 pane, line 37: .value
0x4
For clang 10.0.1 pane, line 117: .short 4Given
Documentation/process/changes.rststating GCC 4.9 is the minimal version, this cc-option is unneeded.Note
----
CONFIG_DEBUG_INFO_DWARF4controls the DWARF version only for C files.As you can see in the top
Makefile, -gdwarf-4 is only passed to CFLAGS.ifdef
CONFIG_DEBUG_INFO_DWARF4
DEBUG_CFLAGS+= -gdwarf-4
endifThis flag is used when compiling *.c files.
On the other hand, the assembler is always given -gdwarf-2.
KBUILD_AFLAGS+= -Wa,-gdwarf-2Hence, the debug info that comes from *.S files is always DWARF v2. This is simply because GAS supported only -gdwarf-2 for a long time.
Recently, GAS gained the support for --dwarf-[3|4|5] options. [1] And, also we have Clang integrated assembler. So, the debug info for *.S files might be improved if we want.
In my understanding, the current code is intentional, not a bug.
[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=31bf18645d98b4d3d7357353be840e320649a67d
Reviewed-by Nick Desaulniers <[email protected]>Reviewed-by Nathan Chancellor <[email protected]>Signed-off-by Masahiro Yamada <[email protected]>
Quoted 6 lines
Quoted 3 lines
Subject misses a "kbuild:" label like in all other patches. You have:
"Remove $(cc-option,-gdwarf-4) dependency fromCONFIG_DEBUG_INFO_DWARF4"Ack, I wonder how that happened? Ah well, will fix in v6; thanks for the feedback.
I will apply this in my tree,
adding "kbuild:" and fixing the typo pointed out by Fangrui.
You do not need to resend this one.
Quoted 13 lines
Quoted 13 lines
- Sedat -
Quoted 10 lines
--- lib/Kconfig.debug | 1 - 1 file changed, 1 deletion(-)lib/Kconfig.debug +0
-0@@ -258,7 +258,6 @@ config DEBUG_INFO_SPLIT
Quoted 15 lines
Quoted 9 lines
Quoted 9 lines
lib/Kconfig.debug +0
-2config DEBUG_INFO_DWARF4 bool "Generate dwarf4 debuginfo" - depends on $(cc-option,-gdwarf-4) help Generate dwarf4 debug info. This requires recent versions of gcc and gdb. It makes the debug information larger. --2.30.0.284.gd98b1dd5eaa7-goog
--
Thanks,
~Nick Desaulniers
--
Best Regards
Masahiro Yamada
Re: [PATCH v5 1/3] Remove $(cc-option,-gdwarf-4) dependency from CONFIG_DEBUG_INFO_DWARF4
Quoted 62 lines · Masahiro Yamada
Quoted 50 lines · Nick Desaulniers
Quoted 48 lines · Sedat Dilek
Quoted 44 lines · Nick Desaulniers
From: Masahiro Yamada <[email protected]>
The -gdwarf-4 flag is supported by GCC 4.5+, and also by Clang.
You can see it at https://godbolt.org/z/6ed1oW
For gcc 4.5.3 pane, line 37: .value
0x4
For clang 10.0.1 pane, line 117: .short 4Given
Documentation/process/changes.rststating GCC 4.9 is the minimal version, this cc-option is unneeded.Note
----
CONFIG_DEBUG_INFO_DWARF4controls the DWARF version only for C files.As you can see in the top
Makefile, -gdwarf-4 is only passed to CFLAGS.ifdef
CONFIG_DEBUG_INFO_DWARF4
DEBUG_CFLAGS+= -gdwarf-4
endifThis flag is used when compiling *.c files.
On the other hand, the assembler is always given -gdwarf-2.
KBUILD_AFLAGS+= -Wa,-gdwarf-2Hence, the debug info that comes from *.S files is always DWARF v2. This is simply because GAS supported only -gdwarf-2 for a long time.
Recently, GAS gained the support for --dwarf-[3|4|5] options. [1] And, also we have Clang integrated assembler. So, the debug info for *.S files might be improved if we want.
In my understanding, the current code is intentional, not a bug.
[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=31bf18645d98b4d3d7357353be840e320649a67d
Reviewed-by Nick Desaulniers <[email protected]>Reviewed-by Nathan Chancellor <[email protected]>Signed-off-by Masahiro Yamada <[email protected]>Quoted 6 lines
Quoted 3 lines
Subject misses a "kbuild:" label like in all other patches. You have:
"Remove $(cc-option,-gdwarf-4) dependency fromCONFIG_DEBUG_INFO_DWARF4"Ack, I wonder how that happened? Ah well, will fix in v6; thanks for the feedback.
Quoted 5 lines
I will apply this in my tree,
adding "kbuild:" and fixing the typo pointed out by Fangrui.You do not need to resend this one.
Applied to linux-kbuild.
Quoted 40 lines
Quoted 19 lines
Quoted 19 lines
- Sedat -
Quoted 10 lines
--- lib/Kconfig.debug | 1 - 1 file changed, 1 deletion(-)lib/Kconfig.debug +0
-0@@ -258,7 +258,6 @@ config DEBUG_INFO_SPLITQuoted 15 lines
Quoted 9 lines
Quoted 9 lines
lib/Kconfig.debug +0
-2config DEBUG_INFO_DWARF4 bool "Generate dwarf4 debuginfo" - depends on $(cc-option,-gdwarf-4) help Generate dwarf4 debug info. This requires recent versions of gcc and gdb. It makes the debug information larger. --2.30.0.284.gd98b1dd5eaa7-goog
--
Thanks,
~Nick Desaulniers--
Best Regards
Masahiro Yamada
Signature · 2 lines
Best Regards Masahiro Yamada
Re: [PATCH v5 1/3] Remove $(cc-option,-gdwarf-4) dependency from CONFIG_DEBUG_INFO_DWARF4
In reply to Nick DesaulniersQuoted 25 lines · Nick Desaulniers
From: Masahiro Yamada <[email protected]>
The -gdwarf-4 flag is supported by GCC 4.5+, and also by Clang.
You can see it at https://godbolt.org/z/6ed1oW
For gcc 4.5.3 pane, line 37: .value
0x4
For clang 10.0.1 pane, line 117: .short 4Given
Documentation/process/changes.rststating GCC 4.9 is the minimal version, this cc-option is unneeded.Note
----
CONFIG_DEBUG_INFO_DWARF4controls the DWARF version only for C files.As you can see in the top
Makefile, -gdwarf-4 is only passed to CFLAGS.ifdef
CONFIG_DEBUG_INFO_DWARF4
DEBUG_CFLAGS+= -gdwarf-4
endifThis flag is used when compiling *.c files.
Quoted 8 lines
On the other hand, the assembler is always given -gdwarf-2.
KBUILD_AFLAGS+= -Wa,-gdwarf-2Hence, the debug info that comes from *.S files is always DWARF v2. This is simply because GAS supported only -gdwarf-2 for a long time.
Recently, GAS gained the support for --dwarf-[3|4|5] options. [1]
The gas commit description has a typo. The supported options are -gdwarf-[345] or --gdwarf-[345]. -gdwarf2 and --gdwarf2 are kept for compatibility.
Looks good otherwise.
Quoted 29 lines
And, also we have Clang integrated assembler. So, the debug info for *.S files might be improved if we want.
In my understanding, the current code is intentional, not a bug.
[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=31bf18645d98b4d3d7357353be840e320649a67d
Reviewed-by Nick Desaulniers <[email protected]>Reviewed-by Nathan Chancellor <[email protected]>Signed-off-by Masahiro Yamada <[email protected]>---
lib/Kconfig.debug| 1 -1 file changed, 1 deletion(-)lib/Kconfig.debug +0
-0@@ -258,7 +258,6 @@ config DEBUG_INFO_SPLITconfig
DEBUG_INFO_DWARF4
bool "Generate dwarf4 debuginfo"lib/Kconfig.debug +0
-1- depends on $(cc-option,-gdwarf-4)help
Generate dwarf4 debug info. This requires recent versions of gcc and gdb. It makes the debug information larger.Signature · 1 line
2.30.0.284.gd98b1dd5eaa7-goog
Re: [PATCH v5 1/3] Remove $(cc-option,-gdwarf-4) dependency from CONFIG_DEBUG_INFO_DWARF4
Quoted 34 lines · Fangrui Song
Quoted 32 lines · Nick Desaulniers
From: Masahiro Yamada <[email protected]>
The -gdwarf-4 flag is supported by GCC 4.5+, and also by Clang.
You can see it at https://godbolt.org/z/6ed1oW
For gcc 4.5.3 pane, line 37: .value
0x4
For clang 10.0.1 pane, line 117: .short 4Given
Documentation/process/changes.rststating GCC 4.9 is the minimal version, this cc-option is unneeded.Note
----
CONFIG_DEBUG_INFO_DWARF4controls the DWARF version only for C files.As you can see in the top
Makefile, -gdwarf-4 is only passed to CFLAGS.ifdef
CONFIG_DEBUG_INFO_DWARF4
DEBUG_CFLAGS+= -gdwarf-4
endifThis flag is used when compiling *.c files.
On the other hand, the assembler is always given -gdwarf-2.
KBUILD_AFLAGS+= -Wa,-gdwarf-2Hence, the debug info that comes from *.S files is always DWARF v2. This is simply because GAS supported only -gdwarf-2 for a long time.
Quoted 7 lines
Quoted 1 line
Recently, GAS gained the support for --dwarf-[3|4|5] options. [1]
The gas commit description has a typo. The supported options are -gdwarf-[345] or --gdwarf-[345]. -gdwarf2 and --gdwarf2 are kept for compatibility.
Looks good otherwise.
Good catch Fangrui.
Yesterday, I wondered - after a cut-n-paste from the patch's changelog
- why I did not see anything --dwarfX related in my logs.
- Sedat -
Quoted 29 lines
Quoted 29 lines
And, also we have Clang integrated assembler. So, the debug info for *.S files might be improved if we want.
In my understanding, the current code is intentional, not a bug.
[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=31bf18645d98b4d3d7357353be840e320649a67d
Reviewed-by Nick Desaulniers <[email protected]>Reviewed-by Nathan Chancellor <[email protected]>Signed-off-by Masahiro Yamada <[email protected]>---
lib/Kconfig.debug| 1 -1 file changed, 1 deletion(-)lib/Kconfig.debug +0
-0@@ -258,7 +258,6 @@ config DEBUG_INFO_SPLITconfig
DEBUG_INFO_DWARF4
bool "Generate dwarf4 debuginfo"
- depends on $(cc-option,-gdwarf-4)
help
Generate dwarf4 debug info. This requires recent versions of gcc and gdb. It makes the debug information larger.
--
2.30.0.284.gd98b1dd5eaa7-goog
PATCH v5 2/3 Kbuild: make DWARF version a choice
In reply to Nick DesaulniersModifies CONFIG_DEBUG_INFO_DWARF4 to be a member of a choice. Adds an explicit CONFIG_DEBUG_INFO_DWARF2, which is the default. Does so in a way that's forward compatible with existing configs, and makes adding future versions more straightforward.
--- Makefile | 13 ++++++------- lib/Kconfig.debug | 21 ++++++++++++++++----- 2 files changed, 22 insertions(+), 12 deletions(-)
Makefile +6 -7
@@ -826,13 +826,12 @@ else DEBUG_CFLAGS += -g endif -ifneq ($(LLVM_IAS),1) -KBUILD_AFLAGS += -Wa,-gdwarf-2 -endif - -ifdef CONFIG_DEBUG_INFO_DWARF4 -DEBUG_CFLAGS += -gdwarf-4 -endif +dwarf-version-$(CONFIG_DEBUG_INFO_DWARF2) := 2 +dwarf-version-$(CONFIG_DEBUG_INFO_DWARF4) := 4 +DEBUG_CFLAGS += -gdwarf-$(dwarf-version-y) +# Binutils 2.35+ required for -gdwarf-4+ support. +dwarf-aflag := $(call as-option,-Wa$(comma)-gdwarf-$(dwarf-version-y)) +KBUILD_AFLAGS += $(dwarf-aflag) ifdef CONFIG_DEBUG_INFO_REDUCED DEBUG_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \
lib/Kconfig.debug +16 -5
@@ -256,13 +256,24 @@ config DEBUG_INFO_SPLIT to know about the .dwo files and include them. Incompatible with older versions of ccache. +choice + prompt "DWARF version" + help + Which version of DWARF debug info to emit. + +config DEBUG_INFO_DWARF2 + bool "Generate DWARF Version 2 debuginfo" + help + Generate DWARF v2 debug info. + config DEBUG_INFO_DWARF4 - bool "Generate dwarf4 debuginfo" + bool "Generate DWARF Version 4 debuginfo" help - Generate dwarf4 debug info. This requires recent versions - of gcc and gdb. It makes the debug information larger. - But it significantly improves the success of resolving - variables in gdb on optimized code. + Generate DWARF v4 debug info. This requires gcc 4.5+ and gdb 7.0+. + It makes the debug information larger, but it significantly + improves the success of resolving variables in gdb on optimized code. + +endchoice # "DWARF version" config DEBUG_INFO_BTF bool "Generate BTF typeinfo"
Signature · 1 line
2.30.0.284.gd98b1dd5eaa7-goog
Re: [PATCH v5 2/3] Kbuild: make DWARF version a choice
Quoted 44 lines · Nick Desaulniers
Modifies
CONFIG_DEBUG_INFO_DWARF4to be a member of a choice. Adds an explicitCONFIG_DEBUG_INFO_DWARF2, which is the default. Does so in a way that's forward compatible with existing configs, and makes adding future versions more straightforward.Suggested-by Arvind Sankar <[email protected]>Suggested-by Fangrui Song <[email protected]>Suggested-by Masahiro Yamada <[email protected]>Signed-off-by Nick Desaulniers <[email protected]>--- Makefile | 13 ++++++------- lib/Kconfig.debug | 21 ++++++++++++++++----- 2 files changed, 22 insertions(+), 12 deletions(-)Makefile +6
-7@@ -826,13 +826,12 @@ else DEBUG_CFLAGS += -g endif -ifneq ($(LLVM_IAS),1) -KBUILD_AFLAGS += -Wa,-gdwarf-2 -endif - -ifdef CONFIG_DEBUG_INFO_DWARF4 -DEBUG_CFLAGS += -gdwarf-4 -endif +dwarf-version-$(CONFIG_DEBUG_INFO_DWARF2) := 2 +dwarf-version-$(CONFIG_DEBUG_INFO_DWARF4) := 4 +DEBUG_CFLAGS += -gdwarf-$(dwarf-version-y) +# Binutils 2.35+ required for -gdwarf-4+ support. +dwarf-aflag := $(call as-option,-Wa$(comma)-gdwarf-$(dwarf-version-y)) +KBUILD_AFLAGS += $(dwarf-aflag) ifdef CONFIG_DEBUG_INFO_REDUCED DEBUG_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \lib/Kconfig.debug +0
-0
lib/Kconfig.debug config DEBUG_INFO_SPLIT · line 260
Quoted 5 lines
lib/Kconfig.debug +2
-0@@ -256,13 +256,24 @@ config DEBUG_INFO_SPLIT to know about the .dwo files and include them. Incompatible with older versions of ccache. +choice + prompt "DWARF version"
Here you use "DWARF version" so keep this for v2 and v4.
lib/Kconfig.debug config DEBUG_INFO_SPLIT · line 265
Quoted 5 lines
lib/Kconfig.debug +5
-0+ help + Which version of DWARF debug info to emit. + +config DEBUG_INFO_DWARF2 + bool "Generate DWARF Version 2 debuginfo"
s/DWARF Version/DWARF version
lib/Kconfig.debug config DEBUG_INFO_SPLIT · line 270
Quoted 6 lines
lib/Kconfig.debug +4
-1+ help + Generate DWARF v2 debug info. + config DEBUG_INFO_DWARF4 - bool "Generate dwarf4 debuginfo" + bool "Generate DWARF Version 4 debuginfo"
Same here: s/DWARF Version/DWARF version
- Sedat -
Quoted 16 lines
lib/Kconfig.debug +5
-5help - Generate dwarf4 debug info. This requires recent versions - of gcc and gdb. It makes the debug information larger. - But it significantly improves the success of resolving - variables in gdb on optimized code. + Generate DWARF v4 debug info. This requires gcc 4.5+ and gdb 7.0+. + It makes the debug information larger, but it significantly + improves the success of resolving variables in gdb on optimized code. + +endchoice # "DWARF version" config DEBUG_INFO_BTF bool "Generate BTF typeinfo" --2.30.0.284.gd98b1dd5eaa7-goog
Re: [PATCH v5 2/3] Kbuild: make DWARF version a choice
Quoted 62 lines · Sedat Dilek
Quoted 44 lines · Nick Desaulniers
Modifies
CONFIG_DEBUG_INFO_DWARF4to be a member of a choice. Adds an explicitCONFIG_DEBUG_INFO_DWARF2, which is the default. Does so in a way that's forward compatible with existing configs, and makes adding future versions more straightforward.Suggested-by Arvind Sankar <[email protected]>Suggested-by Fangrui Song <[email protected]>Suggested-by Masahiro Yamada <[email protected]>Signed-off-by Nick Desaulniers <[email protected]>--- Makefile | 13 ++++++------- lib/Kconfig.debug | 21 ++++++++++++++++----- 2 files changed, 22 insertions(+), 12 deletions(-)Makefile +6
-7@@ -826,13 +826,12 @@ else DEBUG_CFLAGS += -g endif -ifneq ($(LLVM_IAS),1) -KBUILD_AFLAGS += -Wa,-gdwarf-2 -endif - -ifdef CONFIG_DEBUG_INFO_DWARF4 -DEBUG_CFLAGS += -gdwarf-4 -endif +dwarf-version-$(CONFIG_DEBUG_INFO_DWARF2) := 2 +dwarf-version-$(CONFIG_DEBUG_INFO_DWARF4) := 4 +DEBUG_CFLAGS += -gdwarf-$(dwarf-version-y) +# Binutils 2.35+ required for -gdwarf-4+ support. +dwarf-aflag := $(call as-option,-Wa$(comma)-gdwarf-$(dwarf-version-y)) +KBUILD_AFLAGS += $(dwarf-aflag) ifdef CONFIG_DEBUG_INFO_REDUCED DEBUG_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \lib/Kconfig.debug +0
-0lib/Kconfig.debug config DEBUG_INFO_SPLIT · line 260
Quoted 5 lines
lib/Kconfig.debug +2
-0@@ -256,13 +256,24 @@ config DEBUG_INFO_SPLIT to know about the .dwo files and include them. Incompatible with older versions of ccache. +choice + prompt "DWARF version"Here you use "DWARF version" so keep this for v2 and v4.
lib/Kconfig.debug config DEBUG_INFO_SPLIT · line 265
Quoted 5 lines
lib/Kconfig.debug +5
-0+ help + Which version of DWARF debug info to emit. + +config DEBUG_INFO_DWARF2 + bool "Generate DWARF Version 2 debuginfo"s/DWARF Version/DWARF version
Quoted 8 lines
lib/Kconfig.debug config DEBUG_INFO_SPLIT · line 270
Quoted 6 lines
lib/Kconfig.debug +4
-1+ help + Generate DWARF v2 debug info. + config DEBUG_INFO_DWARF4 - bool "Generate dwarf4 debuginfo" + bool "Generate DWARF Version 4 debuginfo"Same here: s/DWARF Version/DWARF version
DWARF Version 2 is fine and preferable.
I have checked DWARF Version 2/3/4/5 specifications. "DWARF Version 2" is the official way that version is referred to...
Quoted 19 lines
- Sedat -
Quoted 16 lines
lib/Kconfig.debug +5
-5help - Generate dwarf4 debug info. This requires recent versions - of gcc and gdb. It makes the debug information larger. - But it significantly improves the success of resolving - variables in gdb on optimized code. + Generate DWARF v4 debug info. This requires gcc 4.5+ and gdb 7.0+. + It makes the debug information larger, but it significantly + improves the success of resolving variables in gdb on optimized code. + +endchoice # "DWARF version" config DEBUG_INFO_BTF bool "Generate BTF typeinfo" --2.30.0.284.gd98b1dd5eaa7-goog
Re: [PATCH v5 2/3] Kbuild: make DWARF version a choice
In reply to Nick DesaulniersQuoted 19 lines · Nick Desaulniers
Modifies
CONFIG_DEBUG_INFO_DWARF4to be a member of a choice. Adds an explicitCONFIG_DEBUG_INFO_DWARF2, which is the default. Does so in a way that's forward compatible with existing configs, and makes adding future versions more straightforward.Suggested-by Arvind Sankar <[email protected]>Suggested-by Fangrui Song <[email protected]>Suggested-by Masahiro Yamada <[email protected]>Signed-off-by Nick Desaulniers <[email protected]>--- Makefile | 13 ++++++------- lib/Kconfig.debug | 21 ++++++++++++++++----- 2 files changed, 22 insertions(+), 12 deletions(-)Makefile +0
-0
Makefile else · line 831
Quoted 6 lines
Makefile +0
-3@@ -826,13 +826,12 @@ else DEBUG_CFLAGS += -g endif -ifneq ($(LLVM_IAS),1) -KBUILD_AFLAGS += -Wa,-gdwarf-2 -endif
Aren't you regressing this with this patch? Why is the hunk from 3/3 that adds
ifdef CONFIG_CC_IS_CLANG
ifneq ($(LLVM_IAS),1)
not in this patch?
Quoted 49 lines
Makefile +6
-3-ifdef CONFIG_DEBUG_INFO_DWARF4 -DEBUG_CFLAGS += -gdwarf-4 -endif +dwarf-version-$(CONFIG_DEBUG_INFO_DWARF2) := 2 +dwarf-version-$(CONFIG_DEBUG_INFO_DWARF4) := 4 +DEBUG_CFLAGS += -gdwarf-$(dwarf-version-y) +# Binutils 2.35+ required for -gdwarf-4+ support. +dwarf-aflag := $(call as-option,-Wa$(comma)-gdwarf-$(dwarf-version-y)) +KBUILD_AFLAGS += $(dwarf-aflag) ifdef CONFIG_DEBUG_INFO_REDUCED DEBUG_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \lib/Kconfig.debug +16
-5@@ -256,13 +256,24 @@ config DEBUG_INFO_SPLIT to know about the .dwo files and include them. Incompatible with older versions of ccache. +choice + prompt "DWARF version" + help + Which version of DWARF debug info to emit. + +config DEBUG_INFO_DWARF2 + bool "Generate DWARF Version 2 debuginfo" + help + Generate DWARF v2 debug info. + config DEBUG_INFO_DWARF4 - bool "Generate dwarf4 debuginfo" + bool "Generate DWARF Version 4 debuginfo" help - Generate dwarf4 debug info. This requires recent versions - of gcc and gdb. It makes the debug information larger. - But it significantly improves the success of resolving - variables in gdb on optimized code. + Generate DWARF v4 debug info. This requires gcc 4.5+ and gdb 7.0+. + It makes the debug information larger, but it significantly + improves the success of resolving variables in gdb on optimized code. + +endchoice # "DWARF version" config DEBUG_INFO_BTF bool "Generate BTF typeinfo"Signature · 1 line
2.30.0.284.gd98b1dd5eaa7-goog
Re: [PATCH v5 2/3] Kbuild: make DWARF version a choice
Quoted 31 lines · Nathan Chancellor
Quoted 19 lines · Nick Desaulniers
Modifies
CONFIG_DEBUG_INFO_DWARF4to be a member of a choice. Adds an explicitCONFIG_DEBUG_INFO_DWARF2, which is the default. Does so in a way that's forward compatible with existing configs, and makes adding future versions more straightforward.Suggested-by Arvind Sankar <[email protected]>Suggested-by Fangrui Song <[email protected]>Suggested-by Masahiro Yamada <[email protected]>Signed-off-by Nick Desaulniers <[email protected]>--- Makefile | 13 ++++++------- lib/Kconfig.debug | 21 ++++++++++++++++----- 2 files changed, 22 insertions(+), 12 deletions(-)Makefile +0
-0Makefile else · line 831
Quoted 6 lines
Makefile +0
-3@@ -826,13 +826,12 @@ else DEBUG_CFLAGS += -g endif -ifneq ($(LLVM_IAS),1) -KBUILD_AFLAGS += -Wa,-gdwarf-2 -endifAren't you regressing this with this patch? Why is the hunk from 3/3 that adds
Quoted 5 lines
ifdef
CONFIG_CC_IS_CLANG
ifneq ($(LLVM_IAS),1)not in this patch?
Nice catch Nathan.
Just FYI:
The patch...
"kbuild: Remove $(cc-option,-gdwarf-4) dependency from DEBUG_INFO_DWARF4"
... has now entered kbuild-next.
( This patch is included in this patch-series. )
So should we point to this one and add a comment? Thinking of a next version of this DWARF5 support patch-series.
- Sedat -
Quoted 49 lines
Quoted 49 lines
Makefile +6
-3-ifdef CONFIG_DEBUG_INFO_DWARF4 -DEBUG_CFLAGS += -gdwarf-4 -endif +dwarf-version-$(CONFIG_DEBUG_INFO_DWARF2) := 2 +dwarf-version-$(CONFIG_DEBUG_INFO_DWARF4) := 4 +DEBUG_CFLAGS += -gdwarf-$(dwarf-version-y) +# Binutils 2.35+ required for -gdwarf-4+ support. +dwarf-aflag := $(call as-option,-Wa$(comma)-gdwarf-$(dwarf-version-y)) +KBUILD_AFLAGS += $(dwarf-aflag) ifdef CONFIG_DEBUG_INFO_REDUCED DEBUG_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \lib/Kconfig.debug +16
-6@@ -256,13 +256,24 @@ config DEBUG_INFO_SPLIT to know about the .dwo files and include them. Incompatible with older versions of ccache. +choice + prompt "DWARF version" + help + Which version of DWARF debug info to emit. + +config DEBUG_INFO_DWARF2 + bool "Generate DWARF Version 2 debuginfo" + help + Generate DWARF v2 debug info. + config DEBUG_INFO_DWARF4 - bool "Generate dwarf4 debuginfo" + bool "Generate DWARF Version 4 debuginfo" help - Generate dwarf4 debug info. This requires recent versions - of gcc and gdb. It makes the debug information larger. - But it significantly improves the success of resolving - variables in gdb on optimized code. + Generate DWARF v4 debug info. This requires gcc 4.5+ and gdb 7.0+. + It makes the debug information larger, but it significantly + improves the success of resolving variables in gdb on optimized code. + +endchoice # "DWARF version" config DEBUG_INFO_BTF bool "Generate BTF typeinfo" --2.30.0.284.gd98b1dd5eaa7-goog
PATCH v5 3/3 Kbuild: implement support for DWARF v5
In reply to Nick DesaulniersDWARF v5 is the latest standard of the DWARF debug info format.
Feature detection of DWARF5 is onerous, especially given that we've removed $(AS), so we must query $(CC) for DWARF5 assembler directive support.
The DWARF version of a binary can be validated with:
$ llvm-dwarfdump vmlinux | head -n 4 | grep version or $ readelf --debug-dump=info vmlinux 2>/dev/null | grep Version
DWARF5 wins significantly in terms of size when mixed with compression (CONFIG_DEBUG_INFO_COMPRESSED).
363M vmlinux.clang12.dwarf5.compressed 434M vmlinux.clang12.dwarf4.compressed 439M vmlinux.clang12.dwarf2.compressed 457M vmlinux.clang12.dwarf5 536M vmlinux.clang12.dwarf4 548M vmlinux.clang12.dwarf2
515M vmlinux.gcc10.2.dwarf5.compressed 599M vmlinux.gcc10.2.dwarf4.compressed 624M vmlinux.gcc10.2.dwarf2.compressed 630M vmlinux.gcc10.2.dwarf5 765M vmlinux.gcc10.2.dwarf4 809M vmlinux.gcc10.2.dwarf2
Though the quality of debug info is harder to quantify; size is not a proxy for quality.
Jakub notes:
All [GCC] 5.1 - 6.x did was start accepting -gdwarf-5 as experimental option that enabled some small DWARF subset (initially only a few DW_LANG_* codes newly added to DWARF5 drafts). Only GCC 7 (released after DWARF 5 has been finalized) started emitting DWARF5 section headers and got most of the DWARF5 changes in...
Version check GCC so that we don't need to worry about the difference in command line args between GNU readelf and llvm-readelf/llvm-dwarfdump to validate the DWARF Version in the assembler feature detection script.
GNU as only recently gained support for specifying -gdwarf-5, so when compiling with Clang but without Clang's integrated assembler (LLVM_IAS=1 is not set), explicitly add -Wa,-gdwarf-5 to DEBUG_CFLAGS.
Disabled for now if CONFIG_DEBUG_INFO_BTF is set; pahole doesn't yet recognize the new additions to the DWARF debug info. Thanks to Sedat for the report.
--- Makefile | 6 ++++++ include/asm-generic/vmlinux.lds.h | 6 +++++- lib/Kconfig.debug | 18 ++++++++++++++++++ scripts/test_dwarf5_support.sh | 8 ++++++++ 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100755 scripts/test_dwarf5_support.sh
Makefile +6 -0
@@ -828,10 +828,16 @@ endif dwarf-version-$(CONFIG_DEBUG_INFO_DWARF2) := 2 dwarf-version-$(CONFIG_DEBUG_INFO_DWARF4) := 4 +dwarf-version-$(CONFIG_DEBUG_INFO_DWARF5) := 5 DEBUG_CFLAGS += -gdwarf-$(dwarf-version-y) # Binutils 2.35+ required for -gdwarf-4+ support. dwarf-aflag := $(call as-option,-Wa$(comma)-gdwarf-$(dwarf-version-y)) KBUILD_AFLAGS += $(dwarf-aflag) +ifdef CONFIG_CC_IS_CLANG +ifneq ($(LLVM_IAS),1) +DEBUG_CFLAGS += $(dwarf-aflag) +endif +endif ifdef CONFIG_DEBUG_INFO_REDUCED DEBUG_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \
include/asm-generic/vmlinux.lds.h +5 -1
@@ -843,7 +843,11 @@ .debug_types 0 : { *(.debug_types) } \/* DWARF 5 */ \ .debug_macro 0 : { *(.debug_macro) } \ - .debug_addr 0 : { *(.debug_addr) } + .debug_addr 0 : { *(.debug_addr) } \ + .debug_line_str 0 : { *(.debug_line_str) } \ + .debug_loclists 0 : { *(.debug_loclists) } \ + .debug_rnglists 0 : { *(.debug_rnglists) } \ + .debug_str_offsets 0 : { *(.debug_str_offsets) }/* Stabs debugging sections. */ #define STABS_DEBUG \
lib/Kconfig.debug +18 -0
@@ -273,6 +273,24 @@ config DEBUG_INFO_DWARF4 It makes the debug information larger, but it significantly improves the success of resolving variables in gdb on optimized code. +config DEBUG_INFO_DWARF5 + bool "Generate DWARF Version 5 debuginfo" + depends on GCC_VERSION >= 50000 || CC_IS_CLANG + depends on CC_IS_GCC || $(success,$(srctree)/scripts/test_dwarf5_support.sh $(CC) $(CLANG_FLAGS)) + depends on !DEBUG_INFO_BTF + help + Generate DWARF v5 debug info. Requires binutils 2.35, gcc 5.0+ (gcc + 5.0+ accepts the -gdwarf-5 flag but only had partial support for some + draft features until 7.0), and gdb 8.0+. + + Changes to the structure of debug info in Version 5 allow for around + 15-18% savings in resulting image and debug info section sizes as + compared to DWARF Version 4. DWARF Version 5 standardizes previous + extensions such as accelerators for symbol indexing and the format + for fission (.dwo/.dwp) files. Users may not want to select this + config if they rely on tooling that has not yet been updated to + support DWARF Version 5. + endchoice # "DWARF version" config DEBUG_INFO_BTF
scripts/test_dwarf5_support.sh new file +8 -0
@@ -0,0 +1,8 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +# Test that assembler accepts -gdwarf-5 and .file 0 directives, which were bugs +# in binutils < 2.35. +# https://sourceware.org/bugzilla/show_bug.cgi?id=25612 +# https://sourceware.org/bugzilla/show_bug.cgi?id=25614 +echo '.file 0 "filename"' | $* -gdwarf-5 -Wa,-gdwarf-5 -c -x assembler -o /dev/null -
Signature · 1 line
2.30.0.284.gd98b1dd5eaa7-goog
Re: [PATCH v5 3/3] Kbuild: implement support for DWARF v5
Quoted 111 lines · Nick Desaulniers
DWARF v5 is the latest standard of the DWARF debug info format.
Feature detection of DWARF5 is onerous, especially given that we've removed $(AS), so we must query $(CC) for DWARF5 assembler directive support.
The DWARF version of a binary can be validated with:
$ llvm-dwarfdump vmlinux | head -n 4 | grep version or $ readelf --debug-dump=info vmlinux 2>/dev/null | grep VersionDWARF5 wins significantly in terms of size when mixed with compression (
CONFIG_DEBUG_INFO_COMPRESSED).363M vmlinux.clang12.dwarf5.compressed 434M vmlinux.clang12.dwarf4.compressed 439M vmlinux.clang12.dwarf2.compressed 457M vmlinux.clang12.dwarf5 536M vmlinux.clang12.dwarf4 548M vmlinux.clang12.dwarf2515M vmlinux.gcc10.2.dwarf5.compressed 599M vmlinux.gcc10.2.dwarf4.compressed 624M vmlinux.gcc10.2.dwarf2.compressed 630M vmlinux.gcc10.2.dwarf5 765M vmlinux.gcc10.2.dwarf4 809M vmlinux.gcc10.2.dwarf2Though the quality of debug info is harder to quantify; size is not a proxy for quality.
Jakub notes:
All [GCC] 5.1 - 6.x did was start accepting -gdwarf-5 as experimental option that enabled some small DWARF subset (initially only a few DW_LANG_* codes newly added to DWARF5 drafts). Only GCC 7 (released after DWARF 5 has been finalized) started emitting DWARF5 section headers and got most of the DWARF5 changes in...Version check GCC so that we don't need to worry about the difference in command line args between GNU readelf and llvm-readelf/llvm-dwarfdump to validate the DWARF Version in the assembler feature detection script.
GNU
asonly recently gained support for specifying -gdwarf-5, so when compiling with Clang but without Clang's integrated assembler (LLVM_IAS=1 is not set), explicitly add -Wa,-gdwarf-5 toDEBUG_CFLAGS.Disabled for now if
CONFIG_DEBUG_INFO_BTFis set; pahole doesn't yet recognize the new additions to the DWARF debug info. Thanks to Sedat for the report.Reported-by Sedat Dilek <[email protected]>Suggested-by Arvind Sankar <[email protected]>Suggested-by Caroline Tice <[email protected]>Suggested-by Fangrui Song <[email protected]>Suggested-by Jakub Jelinek <[email protected]>Suggested-by Masahiro Yamada <[email protected]>Suggested-by Nathan Chancellor <[email protected]>Signed-off-by Nick Desaulniers <[email protected]>--- Makefile | 6 ++++++ include/asm-generic/vmlinux.lds.h | 6 +++++- lib/Kconfig.debug | 18 ++++++++++++++++++ scripts/test_dwarf5_support.sh | 8 ++++++++ 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100755 scripts/test_dwarf5_support.shMakefile +6
-0@@ -828,10 +828,16 @@ endif dwarf-version-$(CONFIG_DEBUG_INFO_DWARF2) := 2 dwarf-version-$(CONFIG_DEBUG_INFO_DWARF4) := 4 +dwarf-version-$(CONFIG_DEBUG_INFO_DWARF5) := 5 DEBUG_CFLAGS += -gdwarf-$(dwarf-version-y) # Binutils 2.35+ required for -gdwarf-4+ support. dwarf-aflag := $(call as-option,-Wa$(comma)-gdwarf-$(dwarf-version-y)) KBUILD_AFLAGS += $(dwarf-aflag) +ifdef CONFIG_CC_IS_CLANG +ifneq ($(LLVM_IAS),1) +DEBUG_CFLAGS += $(dwarf-aflag) +endif +endif ifdef CONFIG_DEBUG_INFO_REDUCED DEBUG_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \include/asm-generic/vmlinux.lds.h +5
-1@@ -843,7 +843,11 @@ .debug_types 0 : { *(.debug_types) } \/* DWARF 5 */ \ .debug_macro 0 : { *(.debug_macro) } \ - .debug_addr 0 : { *(.debug_addr) } + .debug_addr 0 : { *(.debug_addr) } \ + .debug_line_str 0 : { *(.debug_line_str) } \ + .debug_loclists 0 : { *(.debug_loclists) } \ + .debug_rnglists 0 : { *(.debug_rnglists) } \ + .debug_str_offsets 0 : { *(.debug_str_offsets) }/* Stabs debugging sections. */ #define STABS_DEBUG \lib/Kconfig.debug +0
-0
lib/Kconfig.debug config DEBUG_INFO_DWARF4 · line 279
Quoted 7 lines
lib/Kconfig.debug +4
-0@@ -273,6 +273,24 @@ config DEBUG_INFO_DWARF4 It makes the debug information larger, but it significantly improves the success of resolving variables in gdb on optimized code. +config DEBUG_INFO_DWARF5 + bool "Generate DWARF Version 5 debuginfo" + depends on GCC_VERSION >= 50000 || CC_IS_CLANG + depends on CC_IS_GCC || $(success,$(srctree)/scripts/test_dwarf5_support.sh $(CC) $(CLANG_FLAGS))
Better keep GCC depends in one line:
+ depends on CC_IS_GCC && GCC_VERSION >= 50000 || CC_IS_CLANG
+ depends on $(success,$(srctree)/scripts/test_dwarf5_support.sh
$(CC) $(CLANG_FLAGS))
As said in the other patch:
Use consistently: s/DWARF Version/DWARF version/g
- Sedat -
Quoted 34 lines
lib/Kconfig.debug +14
-0+ depends on !DEBUG_INFO_BTF + help + Generate DWARF v5 debug info. Requires binutils 2.35, gcc 5.0+ (gcc + 5.0+ accepts the -gdwarf-5 flag but only had partial support for some + draft features until 7.0), and gdb 8.0+. + + Changes to the structure of debug info in Version 5 allow for around + 15-18% savings in resulting image and debug info section sizes as + compared to DWARF Version 4. DWARF Version 5 standardizes previous + extensions such as accelerators for symbol indexing and the format + for fission (.dwo/.dwp) files. Users may not want to select this + config if they rely on tooling that has not yet been updated to + support DWARF Version 5. + endchoice # "DWARF version" config DEBUG_INFO_BTFscripts/test_dwarf5_support.sh new file +8
-1@@ -0,0 +1,8 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +# Test that assembler accepts -gdwarf-5 and .file 0 directives, which were bugs +# in binutils < 2.35. +# https://sourceware.org/bugzilla/show_bug.cgi?id=25612 +# https://sourceware.org/bugzilla/show_bug.cgi?id=25614 +echo '.file 0 "filename"' | $* -gdwarf-5 -Wa,-gdwarf-5 -c -x assembler -o /dev/null - --2.30.0.284.gd98b1dd5eaa7-goog
Re: [PATCH v5 3/3] Kbuild: implement support for DWARF v5
Quoted 126 lines · Sedat Dilek
Quoted 111 lines · Nick Desaulniers
DWARF v5 is the latest standard of the DWARF debug info format.
Feature detection of DWARF5 is onerous, especially given that we've removed $(AS), so we must query $(CC) for DWARF5 assembler directive support.
The DWARF version of a binary can be validated with:
$ llvm-dwarfdump vmlinux | head -n 4 | grep version or $ readelf --debug-dump=info vmlinux 2>/dev/null | grep VersionDWARF5 wins significantly in terms of size when mixed with compression (
CONFIG_DEBUG_INFO_COMPRESSED).363M vmlinux.clang12.dwarf5.compressed 434M vmlinux.clang12.dwarf4.compressed 439M vmlinux.clang12.dwarf2.compressed 457M vmlinux.clang12.dwarf5 536M vmlinux.clang12.dwarf4 548M vmlinux.clang12.dwarf2515M vmlinux.gcc10.2.dwarf5.compressed 599M vmlinux.gcc10.2.dwarf4.compressed 624M vmlinux.gcc10.2.dwarf2.compressed 630M vmlinux.gcc10.2.dwarf5 765M vmlinux.gcc10.2.dwarf4 809M vmlinux.gcc10.2.dwarf2Though the quality of debug info is harder to quantify; size is not a proxy for quality.
Jakub notes:
All [GCC] 5.1 - 6.x did was start accepting -gdwarf-5 as experimental option that enabled some small DWARF subset (initially only a few DW_LANG_* codes newly added to DWARF5 drafts). Only GCC 7 (released after DWARF 5 has been finalized) started emitting DWARF5 section headers and got most of the DWARF5 changes in...Version check GCC so that we don't need to worry about the difference in command line args between GNU readelf and llvm-readelf/llvm-dwarfdump to validate the DWARF Version in the assembler feature detection script.
GNU
asonly recently gained support for specifying -gdwarf-5, so when compiling with Clang but without Clang's integrated assembler (LLVM_IAS=1 is not set), explicitly add -Wa,-gdwarf-5 toDEBUG_CFLAGS.Disabled for now if
CONFIG_DEBUG_INFO_BTFis set; pahole doesn't yet recognize the new additions to the DWARF debug info. Thanks to Sedat for the report.Reported-by Sedat Dilek <[email protected]>Suggested-by Arvind Sankar <[email protected]>Suggested-by Caroline Tice <[email protected]>Suggested-by Fangrui Song <[email protected]>Suggested-by Jakub Jelinek <[email protected]>Suggested-by Masahiro Yamada <[email protected]>Suggested-by Nathan Chancellor <[email protected]>Signed-off-by Nick Desaulniers <[email protected]>--- Makefile | 6 ++++++ include/asm-generic/vmlinux.lds.h | 6 +++++- lib/Kconfig.debug | 18 ++++++++++++++++++ scripts/test_dwarf5_support.sh | 8 ++++++++ 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100755 scripts/test_dwarf5_support.shMakefile +6
-0@@ -828,10 +828,16 @@ endif dwarf-version-$(CONFIG_DEBUG_INFO_DWARF2) := 2 dwarf-version-$(CONFIG_DEBUG_INFO_DWARF4) := 4 +dwarf-version-$(CONFIG_DEBUG_INFO_DWARF5) := 5 DEBUG_CFLAGS += -gdwarf-$(dwarf-version-y) # Binutils 2.35+ required for -gdwarf-4+ support. dwarf-aflag := $(call as-option,-Wa$(comma)-gdwarf-$(dwarf-version-y)) KBUILD_AFLAGS += $(dwarf-aflag) +ifdef CONFIG_CC_IS_CLANG +ifneq ($(LLVM_IAS),1) +DEBUG_CFLAGS += $(dwarf-aflag) +endif +endif ifdef CONFIG_DEBUG_INFO_REDUCED DEBUG_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \include/asm-generic/vmlinux.lds.h +5
-1@@ -843,7 +843,11 @@ .debug_types 0 : { *(.debug_types) } \/* DWARF 5 */ \ .debug_macro 0 : { *(.debug_macro) } \ - .debug_addr 0 : { *(.debug_addr) } + .debug_addr 0 : { *(.debug_addr) } \ + .debug_line_str 0 : { *(.debug_line_str) } \ + .debug_loclists 0 : { *(.debug_loclists) } \ + .debug_rnglists 0 : { *(.debug_rnglists) } \ + .debug_str_offsets 0 : { *(.debug_str_offsets) }/* Stabs debugging sections. */ #define STABS_DEBUG \lib/Kconfig.debug +0
-0lib/Kconfig.debug config DEBUG_INFO_DWARF4 · line 279
Quoted 7 lines
lib/Kconfig.debug +4
-0@@ -273,6 +273,24 @@ config DEBUG_INFO_DWARF4 It makes the debug information larger, but it significantly improves the success of resolving variables in gdb on optimized code. +config DEBUG_INFO_DWARF5 + bool "Generate DWARF Version 5 debuginfo" + depends on GCC_VERSION >= 50000 || CC_IS_CLANG + depends on CC_IS_GCC || $(success,$(srctree)/scripts/test_dwarf5_support.sh $(CC) $(CLANG_FLAGS))Better keep GCC depends in one line:
(quoted diff) +2
-0+ depends on CC_IS_GCC && GCC_VERSION >= 50000 || CC_IS_CLANG + depends on $(success,$(srctree)/scripts/test_dwarf5_support.sh
Quoted 1 line
$(CC) $(CLANG_FLAGS))
It's intentional, if a bit obtuse:
We don't want to check the assembler support for -Wa,-gdwarf-5 via compiler driver when CC=gcc; instead, we'll rely on how GCC was configured as per Arvind.
Quoted 4 lines
As said in the other patch:
Use consistently: s/DWARF Version/DWARF version/g
Ah right, and I forget your point about kbuild/Kbuild. Will wait for more feedback then send a v6 next week. Thanks as always for the feedback.
Quoted 37 lines
- Sedat -
Quoted 34 lines
lib/Kconfig.debug +14
-0+ depends on !DEBUG_INFO_BTF + help + Generate DWARF v5 debug info. Requires binutils 2.35, gcc 5.0+ (gcc + 5.0+ accepts the -gdwarf-5 flag but only had partial support for some + draft features until 7.0), and gdb 8.0+. + + Changes to the structure of debug info in Version 5 allow for around + 15-18% savings in resulting image and debug info section sizes as + compared to DWARF Version 4. DWARF Version 5 standardizes previous + extensions such as accelerators for symbol indexing and the format + for fission (.dwo/.dwp) files. Users may not want to select this + config if they rely on tooling that has not yet been updated to + support DWARF Version 5. + endchoice # "DWARF version" config DEBUG_INFO_BTFscripts/test_dwarf5_support.sh new file +8
-1@@ -0,0 +1,8 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +# Test that assembler accepts -gdwarf-5 and .file 0 directives, which were bugs +# in binutils < 2.35. +# https://sourceware.org/bugzilla/show_bug.cgi?id=25612 +# https://sourceware.org/bugzilla/show_bug.cgi?id=25614 +echo '.file 0 "filename"' | $* -gdwarf-5 -Wa,-gdwarf-5 -c -x assembler -o /dev/null - --2.30.0.284.gd98b1dd5eaa7-goog
Signature · 2 lines
Thanks, ~Nick Desaulniers
Re: [PATCH v5 3/3] Kbuild: implement support for DWARF v5
Quoted 126 lines · Nick Desaulniers
Quoted 124 lines · Sedat Dilek
Quoted 111 lines · Nick Desaulniers
DWARF v5 is the latest standard of the DWARF debug info format.
Feature detection of DWARF5 is onerous, especially given that we've removed $(AS), so we must query $(CC) for DWARF5 assembler directive support.
The DWARF version of a binary can be validated with:
$ llvm-dwarfdump vmlinux | head -n 4 | grep version or $ readelf --debug-dump=info vmlinux 2>/dev/null | grep VersionDWARF5 wins significantly in terms of size when mixed with compression (
CONFIG_DEBUG_INFO_COMPRESSED).363M vmlinux.clang12.dwarf5.compressed 434M vmlinux.clang12.dwarf4.compressed 439M vmlinux.clang12.dwarf2.compressed 457M vmlinux.clang12.dwarf5 536M vmlinux.clang12.dwarf4 548M vmlinux.clang12.dwarf2515M vmlinux.gcc10.2.dwarf5.compressed 599M vmlinux.gcc10.2.dwarf4.compressed 624M vmlinux.gcc10.2.dwarf2.compressed 630M vmlinux.gcc10.2.dwarf5 765M vmlinux.gcc10.2.dwarf4 809M vmlinux.gcc10.2.dwarf2Though the quality of debug info is harder to quantify; size is not a proxy for quality.
Jakub notes:
All [GCC] 5.1 - 6.x did was start accepting -gdwarf-5 as experimental option that enabled some small DWARF subset (initially only a few DW_LANG_* codes newly added to DWARF5 drafts). Only GCC 7 (released after DWARF 5 has been finalized) started emitting DWARF5 section headers and got most of the DWARF5 changes in...Version check GCC so that we don't need to worry about the difference in command line args between GNU readelf and llvm-readelf/llvm-dwarfdump to validate the DWARF Version in the assembler feature detection script.
GNU
asonly recently gained support for specifying -gdwarf-5, so when compiling with Clang but without Clang's integrated assembler (LLVM_IAS=1 is not set), explicitly add -Wa,-gdwarf-5 toDEBUG_CFLAGS.Disabled for now if
CONFIG_DEBUG_INFO_BTFis set; pahole doesn't yet recognize the new additions to the DWARF debug info. Thanks to Sedat for the report.Reported-by Sedat Dilek <[email protected]>Suggested-by Arvind Sankar <[email protected]>Suggested-by Caroline Tice <[email protected]>Suggested-by Fangrui Song <[email protected]>Suggested-by Jakub Jelinek <[email protected]>Suggested-by Masahiro Yamada <[email protected]>Suggested-by Nathan Chancellor <[email protected]>Signed-off-by Nick Desaulniers <[email protected]>--- Makefile | 6 ++++++ include/asm-generic/vmlinux.lds.h | 6 +++++- lib/Kconfig.debug | 18 ++++++++++++++++++ scripts/test_dwarf5_support.sh | 8 ++++++++ 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100755 scripts/test_dwarf5_support.shMakefile +6
-0@@ -828,10 +828,16 @@ endif dwarf-version-$(CONFIG_DEBUG_INFO_DWARF2) := 2 dwarf-version-$(CONFIG_DEBUG_INFO_DWARF4) := 4 +dwarf-version-$(CONFIG_DEBUG_INFO_DWARF5) := 5 DEBUG_CFLAGS += -gdwarf-$(dwarf-version-y) # Binutils 2.35+ required for -gdwarf-4+ support. dwarf-aflag := $(call as-option,-Wa$(comma)-gdwarf-$(dwarf-version-y)) KBUILD_AFLAGS += $(dwarf-aflag) +ifdef CONFIG_CC_IS_CLANG +ifneq ($(LLVM_IAS),1) +DEBUG_CFLAGS += $(dwarf-aflag) +endif +endif ifdef CONFIG_DEBUG_INFO_REDUCED DEBUG_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \include/asm-generic/vmlinux.lds.h +5
-1@@ -843,7 +843,11 @@ .debug_types 0 : { *(.debug_types) } \/* DWARF 5 */ \ .debug_macro 0 : { *(.debug_macro) } \ - .debug_addr 0 : { *(.debug_addr) } + .debug_addr 0 : { *(.debug_addr) } \ + .debug_line_str 0 : { *(.debug_line_str) } \ + .debug_loclists 0 : { *(.debug_loclists) } \ + .debug_rnglists 0 : { *(.debug_rnglists) } \ + .debug_str_offsets 0 : { *(.debug_str_offsets) }/* Stabs debugging sections. */ #define STABS_DEBUG \lib/Kconfig.debug +0
-0lib/Kconfig.debug config DEBUG_INFO_DWARF4 · line 279
Quoted 7 lines
lib/Kconfig.debug +4
-0@@ -273,6 +273,24 @@ config DEBUG_INFO_DWARF4 It makes the debug information larger, but it significantly improves the success of resolving variables in gdb on optimized code. +config DEBUG_INFO_DWARF5 + bool "Generate DWARF Version 5 debuginfo" + depends on GCC_VERSION >= 50000 || CC_IS_CLANG + depends on CC_IS_GCC || $(success,$(srctree)/scripts/test_dwarf5_support.sh $(CC) $(CLANG_FLAGS))Better keep GCC depends in one line:
Quoted 9 lines
Quoted 3 lines
(quoted diff) +2
-0+ depends on CC_IS_GCC && GCC_VERSION >= 50000 || CC_IS_CLANG + depends on $(success,$(srctree)/scripts/test_dwarf5_support.sh$(CC) $(CLANG_FLAGS))
It's intentional, if a bit obtuse:
We don't want to check the assembler support for -Wa,-gdwarf-5 via compiler driver when CC=gcc; instead, we'll rely on how GCC was configured as per Arvind.
Hmm, OK.
I have not tested my diff in diverse setup/combination of compiler and "bin"utils.
So, I did not want to have a different behaviour.
Can you comment on this intentional setting in v6?
Thanks.
- Sedat -
Quoted 52 lines
Quoted 4 lines
As said in the other patch:
Use consistently: s/DWARF Version/DWARF version/g
Ah right, and I forget your point about kbuild/Kbuild. Will wait for more feedback then send a v6 next week. Thanks as always for the feedback.
Quoted 29 lines
- Sedat -
Quoted 26 lines
lib/Kconfig.debug +14
-0+ depends on !DEBUG_INFO_BTF + help + Generate DWARF v5 debug info. Requires binutils 2.35, gcc 5.0+ (gcc + 5.0+ accepts the -gdwarf-5 flag but only had partial support for some + draft features until 7.0), and gdb 8.0+. + + Changes to the structure of debug info in Version 5 allow for around + 15-18% savings in resulting image and debug info section sizes as + compared to DWARF Version 4. DWARF Version 5 standardizes previous + extensions such as accelerators for symbol indexing and the format + for fission (.dwo/.dwp) files. Users may not want to select this + config if they rely on tooling that has not yet been updated to + support DWARF Version 5. + endchoice # "DWARF version" config DEBUG_INFO_BTFscripts/test_dwarf5_support.sh new file +3
-0@@ -0,0 +1,8 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 +Quoted 8 lines
Quoted 8 lines
scripts/test_dwarf5_support.sh new file +5
-1+# Test that assembler accepts -gdwarf-5 and .file 0 directives, which were bugs +# in binutils < 2.35. +# https://sourceware.org/bugzilla/show_bug.cgi?id=25612 +# https://sourceware.org/bugzilla/show_bug.cgi?id=25614 +echo '.file 0 "filename"' | $* -gdwarf-5 -Wa,-gdwarf-5 -c -x assembler -o /dev/null - --2.30.0.284.gd98b1dd5eaa7-goog
--
Thanks,
~Nick Desaulniers
Quoted 24 lines · Nick Desaulniers
DWARF v5 is the latest standard of the DWARF debug info format.
DWARF5 wins significantly in terms of size when mixed with compression (
CONFIG_DEBUG_INFO_COMPRESSED).Patch 1 is a cleanup from Masahiro and isn't DWARF v5 specific. Patch 2 is a cleanup that lays the ground work and isn't DWARF v5 specific.
Patch 3 implementsKconfigandKbuildsupport for DWARFv5.Changes from v4:
* drop set -e from script as per Nathan.
* add dependency on !CONFIG_DEBUG_INFO_BTF for DWARF v5 as per Sedat.
* Move LLVM_IAS=1 complexity from patch 2 to patch 3 as per Arvind and Masahiro. Sorry it took me a few tries to understand the point (I might still not), but it looks much cleaner this way. Sorry Nathan, I did not carry forward your previous reviews as a result, but I would appreciate if you could look again.
* Add Nathan's reviewed by tag to patch 1.
* Reword commit message for patch 3 to mention LLVM_IAS=1 and -gdwarf-5 binutils addition later, and BTF issue.
Quoted 9 lines
* I still happen to see a pahole related error spew for the combination of:
* LLVM=1
* LLVM_IAS=1
*CONFIG_DEBUG_INFO_DWARF4
*CONFIG_DEBUG_INFO_BTF
Though they're non-fatal to the build. I'm not sure yet why removing any one of the above prevents the warning spew. Maybe we'll need a v6.
En plus, I encountered breakage with GCC v10.2.1 and LLVM=1 and CONFIG_DEBUG_INFO_DWARF4.
So might be good to add a "depends on !DEBUG_INFO_BTF" in this combination.
I had some other small nits commented in the single patches.
As requested in your previous patch-series, feel free to add my:
- Sedat -
Quoted 48 lines
Changes from v3:
Changes as per Arvind:
* only add -Wa,-gdwarf-5 for (LLVM=1|CC=clang)+LLVM_IAS=0 builds.
* add -gdwarf-5 toKconfigshell script.
* only runKconfigshell script for Clang.Apologies to Sedat and Nathan; I appreciate previous testing/review, but I did no carry forward your Tested-by and Reviewed-by tags, as the patches have changed too much IMO.
Changes from v2:
* Drop two of the earlier patches that have been accepted already.
* Add measurements with GCC 10.2 to commit message.
* Update help text as per Arvind with help from Caroline.
* Improve case/wording between DWARF Versions as per Masahiro.Changes from the RFC:
* split patch in 3 patch series, include Fangrui's patch, too.
* preferDWARF vXformat, as per Fangrui.
* use spaces between assignment inMakefileas per Masahiro.
* simplify setting dwarf-version-y as per Masahiro.
* indentpromptinKconfigchange as per Masahiro.
* remove explicit default inKconfigas per Masahiro.
* add comments totest_dwarf5_support.sh.
* change echo intest_dwarf5_support.shas per Masahiro.
* remove -u fromtest_dwarf5_support.shas per Masahiro.
* add a -gdwarf-5 cc-option check toKconfigas per Jakub.*** BLURB HERE ***
Masahiro Yamada (1):
Remove $(cc-option,-gdwarf-4) dependency fromCONFIG_DEBUG_INFO_DWARF4Nick Desaulniers (2):
Kbuild: make DWARF version a choice
Kbuild: implement support for DWARF v5Makefile | 13 +++++++--- include/asm-generic/vmlinux.lds.h | 6 ++++- lib/Kconfig.debug | 42 +++++++++++++++++++++++++------ scripts/test_dwarf5_support.sh | 8 ++++++ 4 files changed, 57 insertions(+), 12 deletions(-) create mode 100755 scripts/test_dwarf5_support.sh--
2.30.0.284.gd98b1dd5eaa7-goog
Quoted 36 lines · Sedat Dilek
Quoted 24 lines · Nick Desaulniers
DWARF v5 is the latest standard of the DWARF debug info format.
DWARF5 wins significantly in terms of size when mixed with compression (
CONFIG_DEBUG_INFO_COMPRESSED).Patch 1 is a cleanup from Masahiro and isn't DWARF v5 specific. Patch 2 is a cleanup that lays the ground work and isn't DWARF v5 specific.
Patch 3 implementsKconfigandKbuildsupport for DWARFv5.Changes from v4:
* drop set -e from script as per Nathan.
* add dependency on !CONFIG_DEBUG_INFO_BTF for DWARF v5 as per Sedat.
* Move LLVM_IAS=1 complexity from patch 2 to patch 3 as per Arvind and Masahiro. Sorry it took me a few tries to understand the point (I might still not), but it looks much cleaner this way. Sorry Nathan, I did not carry forward your previous reviews as a result, but I would appreciate if you could look again.
* Add Nathan's reviewed by tag to patch 1.
* Reword commit message for patch 3 to mention LLVM_IAS=1 and -gdwarf-5 binutils addition later, and BTF issue.Quoted 9 lines
* I still happen to see a pahole related error spew for the combination of:
* LLVM=1
* LLVM_IAS=1
*CONFIG_DEBUG_INFO_DWARF4
*CONFIG_DEBUG_INFO_BTF
Though they're non-fatal to the build. I'm not sure yet why removing any one of the above prevents the warning spew. Maybe we'll need a v6.
Quoted 3 lines
En plus, I encountered breakage with GCC v10.2.1 and LLVM=1 and
CONFIG_DEBUG_INFO_DWARF4.
So might be good to add a "depends on !DEBUG_INFO_BTF" in this combination.
I suggested not to add !DEBUG_INFO_BTF to CONFIG_DEBUG_INFO_DWARF4. It is not there before and adding this may suddenly break some users.
If certain combination of gcc/llvm does not work for CONFIG_DEBUG_INFO_DWARF4 with pahole, this is a bug bpf community should fix.
Quoted 57 lines
I had some other small nits commented in the single patches.
As requested in your previous patch-series, feel free to add my:
Tested-by Sedat Dilek <[email protected]>- Sedat -
Quoted 48 lines
Changes from v3:
Changes as per Arvind:
* only add -Wa,-gdwarf-5 for (LLVM=1|CC=clang)+LLVM_IAS=0 builds.
* add -gdwarf-5 toKconfigshell script.
* only runKconfigshell script for Clang.Apologies to Sedat and Nathan; I appreciate previous testing/review, but I did no carry forward your Tested-by and Reviewed-by tags, as the patches have changed too much IMO.
Changes from v2:
* Drop two of the earlier patches that have been accepted already.
* Add measurements with GCC 10.2 to commit message.
* Update help text as per Arvind with help from Caroline.
* Improve case/wording between DWARF Versions as per Masahiro.Changes from the RFC:
* split patch in 3 patch series, include Fangrui's patch, too.
* preferDWARF vXformat, as per Fangrui.
* use spaces between assignment inMakefileas per Masahiro.
* simplify setting dwarf-version-y as per Masahiro.
* indentpromptinKconfigchange as per Masahiro.
* remove explicit default inKconfigas per Masahiro.
* add comments totest_dwarf5_support.sh.
* change echo intest_dwarf5_support.shas per Masahiro.
* remove -u fromtest_dwarf5_support.shas per Masahiro.
* add a -gdwarf-5 cc-option check toKconfigas per Jakub.*** BLURB HERE ***
Masahiro Yamada (1):
Remove $(cc-option,-gdwarf-4) dependency from CONFIG_DEBUG_INFO_DWARF4Nick Desaulniers (2):
Kbuild: make DWARF version a choice
Kbuild: implement support for DWARF v5Makefile | 13 +++++++--- include/asm-generic/vmlinux.lds.h | 6 ++++- lib/Kconfig.debug | 42 +++++++++++++++++++++++++------ scripts/test_dwarf5_support.sh | 8 ++++++ 4 files changed, 57 insertions(+), 12 deletions(-)create mode 100755
scripts/test_dwarf5_support.sh--
2.30.0.284.gd98b1dd5eaa7-goog
Quoted 7 lines · Yonghong Song
Quoted 3 lines · Sedat Dilek
En plus, I encountered breakage with GCC v10.2.1 and LLVM=1 and
CONFIG_DEBUG_INFO_DWARF4.
So might be good to add a "depends on !DEBUG_INFO_BTF" in this combination.
Can you privately send me your configs that repro? Maybe I can isolate it to a set of configs?
Quoted 7 lines
I suggested not to add !DEBUG_INFO_BTF to
CONFIG_DEBUG_INFO_DWARF4. It is not there before and adding this may suddenly break some users.If certain combination of gcc/llvm does not work for
CONFIG_DEBUG_INFO_DWARF4with pahole, this is a bug bpf community should fix.
Is there a place I should report bugs?
Quoted 7 lines
Quoted 7 lines
I had some other small nits commented in the single patches.
As requested in your previous patch-series, feel free to add my:
Tested-by Sedat Dilek <[email protected]>
Yeah, I'll keep it if v6 is just commit message changes.
Signature · 2 lines
Thanks, ~Nick Desaulniers
Quoted 5 lines · Nick Desaulniers
Quoted 3 lines · Yonghong Song
Quoted 7 lines
Quoted 4 lines · Sedat Dilek
Quoted 3 lines
En plus, I encountered breakage with GCC v10.2.1 and LLVM=1 and
CONFIG_DEBUG_INFO_DWARF4.
So might be good to add a "depends on !DEBUG_INFO_BTF" in this combination.Can you privately send me your configs that repro? Maybe I can isolate it to a set of configs?
Why privately? To reproduce and fix the issue we (BPF and pahole community) would need the config as well.
Quoted 10 lines
Quoted 8 lines
I suggested not to add !DEBUG_INFO_BTF to
CONFIG_DEBUG_INFO_DWARF4. It is not there before and adding this may suddenly break some users.If certain combination of gcc/llvm does not work for
CONFIG_DEBUG_INFO_DWARF4with pahole, this is a bug bpf community should fix.Is there a place I should report bugs?
[email protected] (BPF in general) and [email protected] (pahole, which seems to be emitting these warnings and having problems with DWARF5).
Quoted 14 lines
Quoted 8 lines
Quoted 8 lines
I had some other small nits commented in the single patches.
As requested in your previous patch-series, feel free to add my:
Tested-by Sedat Dilek <[email protected]>Yeah, I'll keep it if v6 is just commit message changes.
--
Thanks,
~Nick Desaulniers
Quoted 13 lines · Nick Desaulniers
Quoted 7 lines · Yonghong Song
Quoted 3 lines · Sedat Dilek
En plus, I encountered breakage with GCC v10.2.1 and LLVM=1 and
CONFIG_DEBUG_INFO_DWARF4.
So might be good to add a "depends on !DEBUG_INFO_BTF" in this combination.Can you privately send me your configs that repro? Maybe I can isolate it to a set of configs?
Quoted 1 line
Quoted 8 lines
Quoted 6 lines
I suggested not to add !DEBUG_INFO_BTF to
CONFIG_DEBUG_INFO_DWARF4. It is not there before and adding this may suddenly break some users.If certain combination of gcc/llvm does not work for
CONFIG_DEBUG_INFO_DWARF4with pahole, this is a bug bpf community should fix.Is there a place I should report bugs?
You can send bug report to Arnaldo Carvalho de Melo <[email protected]>, [email protected] and [email protected].
Quoted 11 lines
Quoted 8 lines
Quoted 8 lines
I had some other small nits commented in the single patches.
As requested in your previous patch-series, feel free to add my:
Tested-by Sedat Dilek <[email protected]>Yeah, I'll keep it if v6 is just commit message changes.
Em Fri, Jan 15, 2021 at 03:43:06PM -0800, Yonghong Song escreveu:
Quoted 19 lines · Nick Desaulniers
Quoted 16 lines · Yonghong Song
Quoted 7 lines · Sedat Dilek
Quoted 3 lines
En plus, I encountered breakage with GCC v10.2.1 and LLVM=1 and
CONFIG_DEBUG_INFO_DWARF4.
So might be good to add a "depends on !DEBUG_INFO_BTF" in this combination.Can you privately send me your configs that repro? Maybe I can isolate it to a set of configs?
Quoted 4 lines
I suggested not to add !DEBUG_INFO_BTF to
CONFIG_DEBUG_INFO_DWARF4. It is not there before and adding this may suddenly break some users.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
If certain combination of gcc/llvm does not work for
CONFIG_DEBUG_INFO_DWARF4with pahole, this is a bug bpf community should fix.Is there a place I should report bugs?
You can send bug report to Arnaldo Carvalho de Melo <[email protected]>, [email protected] and [email protected].
I'm coming back from vacation, will try to read the messages and see if I can fix this.
Thanks,
- Arnaldo
Quoted 11 lines
Quoted 11 lines
Quoted 8 lines
Quoted 8 lines
I had some other small nits commented in the single patches.
As requested in your previous patch-series, feel free to add my:
Tested-by Sedat Dilek <[email protected]>Yeah, I'll keep it if v6 is just commit message changes.
Signature · 1 line
- Arnaldo
Quoted 25 lines · Arnaldo Carvalho de Melo
Em Fri, Jan 15, 2021 at 03:43:06PM -0800, Yonghong Song escreveu:
Quoted 23 lines · Nick Desaulniers
Quoted 20 lines · Yonghong Song
Quoted 7 lines · Sedat Dilek
Quoted 3 lines
En plus, I encountered breakage with GCC v10.2.1 and LLVM=1 and
CONFIG_DEBUG_INFO_DWARF4.
So might be good to add a "depends on !DEBUG_INFO_BTF" in this combination.Can you privately send me your configs that repro? Maybe I can isolate it to a set of configs?
Quoted 7 lines
I suggested not to add !DEBUG_INFO_BTF to
CONFIG_DEBUG_INFO_DWARF4. It is not there before and adding this may suddenly break some users.If certain combination of gcc/llvm does not work for
CONFIG_DEBUG_INFO_DWARF4with pahole, this is a bug bpf community should fix.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Is there a place I should report bugs?
You can send bug report to Arnaldo Carvalho de Melo <[email protected]>, [email protected] and [email protected].
I'm coming back from vacation, will try to read the messages and see if I can fix this.
IDK about DWARF v4; that seems to work for me. I was previously observing
https://bugzilla.redhat.com/show_bug.cgi?id=1922698
with DWARF v5. I just re-pulled the latest pahole, rebuilt, and no longer see that warning.
I now observe a different set. I plan on attending "BPF office hours tomorrow morning," but if anyone wants a sneak peak of the errors and how to reproduce:
https://gist.github.com/nickdesaulniers/ae8c9efbe4da69b1cf0dce138c1d2781
(FWIW: some other folks are hitting issues now with kernel's lack of DWARF v5 support: https://bugzilla.redhat.com/show_bug.cgi?id=1922707)
Signature · 2 lines
Thanks, ~Nick Desaulniers
Quoted 41 lines · Nick Desaulniers
Quoted 25 lines · Arnaldo Carvalho de Melo
Em Fri, Jan 15, 2021 at 03:43:06PM -0800, Yonghong Song escreveu:
Quoted 23 lines · Nick Desaulniers
Quoted 20 lines · Yonghong Song
Quoted 7 lines · Sedat Dilek
Quoted 3 lines
En plus, I encountered breakage with GCC v10.2.1 and LLVM=1 and
CONFIG_DEBUG_INFO_DWARF4.
So might be good to add a "depends on !DEBUG_INFO_BTF" in this combination.Can you privately send me your configs that repro? Maybe I can isolate it to a set of configs?
Quoted 7 lines
I suggested not to add !DEBUG_INFO_BTF to
CONFIG_DEBUG_INFO_DWARF4. It is not there before and adding this may suddenly break some users.If certain combination of gcc/llvm does not work for
CONFIG_DEBUG_INFO_DWARF4with pahole, this is a bug bpf community should fix.Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Is there a place I should report bugs?
You can send bug report to Arnaldo Carvalho de Melo <[email protected]>, [email protected] and [email protected].
I'm coming back from vacation, will try to read the messages and see if I can fix this.
IDK about DWARF v4; that seems to work for me. I was previously observing
https://bugzilla.redhat.com/show_bug.cgi?id=1922698
with DWARF v5. I just re-pulled the latest pahole, rebuilt, and no longer see that warning.
Quoted 5 lines
I now observe a different set. I plan on attending "BPF office hours tomorrow morning," but if anyone wants a sneak peak of the errors and how to reproduce:
https://gist.github.com/nickdesaulniers/ae8c9efbe4da69b1cf0dce138c1d2781
Is there another (easy) way to get your patch set without the b4 tool? Is your patch set present in some patchworks instance, so that I can download it in mbox format, for example?
Quoted 6 lines
(FWIW: some other folks are hitting issues now with kernel's lack of DWARF v5 support: https://bugzilla.redhat.com/show_bug.cgi?id=1922707)
--
Thanks,
~Nick Desaulniers
Quoted 49 lines · Andrii Nakryiko
Quoted 41 lines · Nick Desaulniers
Quoted 25 lines · Arnaldo Carvalho de Melo
Em Fri, Jan 15, 2021 at 03:43:06PM -0800, Yonghong Song escreveu:
Quoted 23 lines · Nick Desaulniers
Quoted 20 lines · Yonghong Song
Quoted 7 lines · Sedat Dilek
Quoted 3 lines
En plus, I encountered breakage with GCC v10.2.1 and LLVM=1 and
CONFIG_DEBUG_INFO_DWARF4.
So might be good to add a "depends on !DEBUG_INFO_BTF" in this combination.Can you privately send me your configs that repro? Maybe I can isolate it to a set of configs?
Quoted 7 lines
I suggested not to add !DEBUG_INFO_BTF to
CONFIG_DEBUG_INFO_DWARF4. It is not there before and adding this may suddenly break some users.If certain combination of gcc/llvm does not work for
CONFIG_DEBUG_INFO_DWARF4with pahole, this is a bug bpf community should fix.Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Is there a place I should report bugs?
You can send bug report to Arnaldo Carvalho de Melo <[email protected]>, [email protected] and [email protected].
I'm coming back from vacation, will try to read the messages and see if I can fix this.
IDK about DWARF v4; that seems to work for me. I was previously observing
https://bugzilla.redhat.com/show_bug.cgi?id=1922698
with DWARF v5. I just re-pulled the latest pahole, rebuilt, and no longer see that warning.Quoted 5 lines
I now observe a different set. I plan on attending "BPF office hours tomorrow morning," but if anyone wants a sneak peak of the errors and how to reproduce:
https://gist.github.com/nickdesaulniers/ae8c9efbe4da69b1cf0dce138c1d2781
Quoted 3 lines
Is there another (easy) way to get your patch set without the b4 tool? Is your patch set present in some patchworks instance, so that I can download it in mbox format, for example?
$ wget https://lore.kernel.org/lkml/[email protected]/raw -O - | git am $ wget https://lore.kernel.org/lkml/[email protected]/raw -O - | git am
If you haven't tried b4 yet, it's quite nice. Hard to go back. Lore also has mbox.gz links. Not sure about patchwork.
Quoted 4 lines
Quoted 4 lines
(FWIW: some other folks are hitting issues now with kernel's lack of DWARF v5 support: https://bugzilla.redhat.com/show_bug.cgi?id=1922707)
Signature · 2 lines
Thanks, ~Nick Desaulniers
Quoted 56 lines · Nick Desaulniers
Quoted 49 lines · Andrii Nakryiko
Quoted 41 lines · Nick Desaulniers
Quoted 25 lines · Arnaldo Carvalho de Melo
Em Fri, Jan 15, 2021 at 03:43:06PM -0800, Yonghong Song escreveu:
Quoted 23 lines · Nick Desaulniers
Quoted 20 lines · Yonghong Song
Quoted 7 lines · Sedat Dilek
Quoted 3 lines
En plus, I encountered breakage with GCC v10.2.1 and LLVM=1 and
CONFIG_DEBUG_INFO_DWARF4.
So might be good to add a "depends on !DEBUG_INFO_BTF" in this combination.Can you privately send me your configs that repro? Maybe I can isolate it to a set of configs?
Quoted 7 lines
I suggested not to add !DEBUG_INFO_BTF to
CONFIG_DEBUG_INFO_DWARF4. It is not there before and adding this may suddenly break some users.If certain combination of gcc/llvm does not work for
CONFIG_DEBUG_INFO_DWARF4with pahole, this is a bug bpf community should fix.Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Is there a place I should report bugs?
You can send bug report to Arnaldo Carvalho de Melo <[email protected]>, [email protected] and [email protected].
I'm coming back from vacation, will try to read the messages and see if I can fix this.
IDK about DWARF v4; that seems to work for me. I was previously observing
https://bugzilla.redhat.com/show_bug.cgi?id=1922698
with DWARF v5. I just re-pulled the latest pahole, rebuilt, and no longer see that warning.Quoted 5 lines
I now observe a different set. I plan on attending "BPF office hours tomorrow morning," but if anyone wants a sneak peak of the errors and how to reproduce:
https://gist.github.com/nickdesaulniers/ae8c9efbe4da69b1cf0dce138c1d2781Quoted 3 lines
Is there another (easy) way to get your patch set without the b4 tool? Is your patch set present in some patchworks instance, so that I can download it in mbox format, for example?
Quoted 8 lines
$ wget https://lore.kernel.org/lkml/[email protected]/raw -O - | git am $ wget https://lore.kernel.org/lkml/[email protected]/raw -O - | git amIf you haven't tried b4 yet, it's quite nice. Hard to go back. Lore also has mbox.gz links. Not sure about patchwork.
Ok, I managed to apply that on linux-next, but I can't get past this:
ld.lld: error: undefined symbol: pa_trampoline_start
Quoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol: pa_trampoline_header
Quoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol: pa_trampoline_pgd
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
referenced by trampoline_64.S:142 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:142)arch/x86/realmode/rm/trampoline_64.o:(startup_32)
ld.lld: error: undefined symbol: pa_wakeup_start
Quoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol: pa_wakeup_header
Quoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol: pa_machine_real_restart_asm
Quoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol: pa_startup_32
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:77 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:77)
arch/x86/realmode/rm/trampoline_64.o:(trampoline_start)
ld.lld: error: undefined symbol: pa_tr_flags
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:124 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:124)
arch/x86/realmode/rm/trampoline_64.o:(startup_32)
ld.lld: error: undefined symbol: pa_tr_cr4
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:138 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:138)
arch/x86/realmode/rm/trampoline_64.o:(startup_32)
ld.lld: error: undefined symbol: pa_tr_efer
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
referenced by trampoline_64.S:146 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:146)
arch/x86/realmode/rm/trampoline_64.o:(startup_32) referenced by trampoline_64.S:147 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:147) arch/x86/realmode/rm/trampoline_64.o:(startup_32)
ld.lld: error: undefined symbol: pa_startup_64
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:161 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:161)
arch/x86/realmode/rm/trampoline_64.o:(startup_32)
ld.lld: error: undefined symbol: pa_tr_gdt
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
referenced by arch/x86/realmode/rm/trampoline_64.o:(tr_gdt)
referenced by reboot.S:28 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:28)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)
ld.lld: error: undefined symbol: pa_machine_real_restart_paging_off
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by reboot.S:34 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:34)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)
ld.lld: error: undefined symbol: pa_machine_real_restart_idt
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by reboot.S:47 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:47)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)
ld.lld: error: undefined symbol: pa_machine_real_restart_gdt
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
referenced by reboot.S:54 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:54)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)
referenced by arch/x86/realmode/rm/reboot.o:(machine_real_restart_gdt)
ld.lld: error: undefined symbol: pa_wakeup_gdt
Quoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/wakeup_asm.o:(wakeup_gdt)
CC arch/x86/mm/numa_64.o CC arch/x86/mm/amdtopology.o HOSTCC arch/x86/entry/vdso/vdso2c
make[4]: *** [arch/x86/realmode/rm/realmode.elf] Error 1 make[3]: *** [arch/x86/realmode/rm/realmode.bin] Error 2 make[2]: *** [arch/x86/realmode] Error 2 make[2]: *** Waiting for unfinished jobs....
Hopefully Arnaldo will have better luck.
Quoted 9 lines
Quoted 4 lines
Quoted 4 lines
(FWIW: some other folks are hitting issues now with kernel's lack of DWARF v5 support: https://bugzilla.redhat.com/show_bug.cgi?id=1922707)
--
Thanks,
~Nick Desaulniers
Moving a bunch of folks + lists to BCC.
Quoted 63 lines · Andrii Nakryiko
Quoted 61 lines · Nick Desaulniers
Quoted 49 lines · Andrii Nakryiko
Quoted 41 lines · Nick Desaulniers
Quoted 25 lines · Arnaldo Carvalho de Melo
Em Fri, Jan 15, 2021 at 03:43:06PM -0800, Yonghong Song escreveu:
Quoted 23 lines · Nick Desaulniers
Quoted 20 lines · Yonghong Song
Quoted 7 lines · Sedat Dilek
Quoted 3 lines
En plus, I encountered breakage with GCC v10.2.1 and LLVM=1 and
CONFIG_DEBUG_INFO_DWARF4.
So might be good to add a "depends on !DEBUG_INFO_BTF" in this combination.Can you privately send me your configs that repro? Maybe I can isolate it to a set of configs?
Quoted 7 lines
I suggested not to add !DEBUG_INFO_BTF to
CONFIG_DEBUG_INFO_DWARF4. It is not there before and adding this may suddenly break some users.If certain combination of gcc/llvm does not work for
CONFIG_DEBUG_INFO_DWARF4with pahole, this is a bug bpf community should fix.Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Is there a place I should report bugs?
You can send bug report to Arnaldo Carvalho de Melo <[email protected]>, [email protected] and [email protected].
I'm coming back from vacation, will try to read the messages and see if I can fix this.
IDK about DWARF v4; that seems to work for me. I was previously observing
https://bugzilla.redhat.com/show_bug.cgi?id=1922698
with DWARF v5. I just re-pulled the latest pahole, rebuilt, and no longer see that warning.Quoted 5 lines
I now observe a different set. I plan on attending "BPF office hours tomorrow morning," but if anyone wants a sneak peak of the errors and how to reproduce:
https://gist.github.com/nickdesaulniers/ae8c9efbe4da69b1cf0dce138c1d2781Quoted 3 lines
Is there another (easy) way to get your patch set without the b4 tool? Is your patch set present in some patchworks instance, so that I can download it in mbox format, for example?
$ wget https://lore.kernel.org/lkml/[email protected]/raw -O - | git am $ wget https://lore.kernel.org/lkml/[email protected]/raw -O - | git am
Quoted 8 lines
Quoted 3 lines
If you haven't tried b4 yet, it's quite nice. Hard to go back. Lore also has mbox.gz links. Not sure about patchwork.
Ok, I managed to apply that on linux-next, but I can't get past this:
ld.lld: error: undefined symbol:
pa_trampoline_startQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
Thanks for testing and the report. Do you have a .config you can send me to reproduce?
Quoted 82 lines
ld.lld: error: undefined symbol:
pa_trampoline_headerQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol:
pa_trampoline_pgdQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
referenced by trampoline_64.S:142 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:142)arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_wakeup_startQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol:
pa_wakeup_headerQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol:
pa_machine_real_restart_asmQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol:
pa_startup_32Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:77 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:77)
arch/x86/realmode/rm/trampoline_64.o:(trampoline_start)ld.lld: error: undefined symbol:
pa_tr_flagsQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:124 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:124)
arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_tr_cr4Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:138 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:138)
arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_tr_eferQuoted 4 lines
Quoted 4 lines
Quoted 4 lines
referenced by trampoline_64.S:146 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:146)
arch/x86/realmode/rm/trampoline_64.o:(startup_32) referenced by trampoline_64.S:147 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:147) arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_startup_64Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:161 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:161)
arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_tr_gdtQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
referenced by arch/x86/realmode/rm/trampoline_64.o:(tr_gdt)
referenced by reboot.S:28 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:28)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)ld.lld: error: undefined symbol:
pa_machine_real_restart_paging_offQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by reboot.S:34 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:34)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)ld.lld: error: undefined symbol:
pa_machine_real_restart_idtQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by reboot.S:47 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:47)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)ld.lld: error: undefined symbol:
pa_machine_real_restart_gdtQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
referenced by reboot.S:54 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:54)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)
referenced by arch/x86/realmode/rm/reboot.o:(machine_real_restart_gdt)ld.lld: error: undefined symbol:
pa_wakeup_gdtQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/wakeup_asm.o:(wakeup_gdt)
CC arch/x86/mm/numa_64.o CC arch/x86/mm/amdtopology.o HOSTCC arch/x86/entry/vdso/vdso2cmake[4]: *** [
arch/x86/realmode/rm/realmode.elf] Error 1 make[3]: *** [arch/x86/realmode/rm/realmode.bin] Error 2 make[2]: *** [arch/x86/realmode] Error 2 make[2]: *** Waiting for unfinished jobs....Hopefully Arnaldo will have better luck.
Quoted 9 lines
Quoted 4 lines
Quoted 4 lines
(FWIW: some other folks are hitting issues now with kernel's lack of DWARF v5 support: https://bugzilla.redhat.com/show_bug.cgi?id=1922707)
--
Thanks,
~Nick Desaulniers
Signature · 2 lines
Thanks, ~Nick Desaulniers
Quoted 74 lines · Nick Desaulniers
Moving a bunch of folks + lists to BCC.
Quoted 69 lines · Andrii Nakryiko
Quoted 56 lines · Nick Desaulniers
Quoted 49 lines · Andrii Nakryiko
Quoted 41 lines · Nick Desaulniers
Quoted 25 lines · Arnaldo Carvalho de Melo
Em Fri, Jan 15, 2021 at 03:43:06PM -0800, Yonghong Song escreveu:
Quoted 23 lines · Nick Desaulniers
Quoted 20 lines · Yonghong Song
Quoted 7 lines · Sedat Dilek
Quoted 3 lines
En plus, I encountered breakage with GCC v10.2.1 and LLVM=1 and
CONFIG_DEBUG_INFO_DWARF4.
So might be good to add a "depends on !DEBUG_INFO_BTF" in this combination.Can you privately send me your configs that repro? Maybe I can isolate it to a set of configs?
Quoted 7 lines
I suggested not to add !DEBUG_INFO_BTF to
CONFIG_DEBUG_INFO_DWARF4. It is not there before and adding this may suddenly break some users.If certain combination of gcc/llvm does not work for
CONFIG_DEBUG_INFO_DWARF4with pahole, this is a bug bpf community should fix.Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Is there a place I should report bugs?
You can send bug report to Arnaldo Carvalho de Melo <[email protected]>, [email protected] and [email protected].
I'm coming back from vacation, will try to read the messages and see if I can fix this.
IDK about DWARF v4; that seems to work for me. I was previously observing
https://bugzilla.redhat.com/show_bug.cgi?id=1922698
with DWARF v5. I just re-pulled the latest pahole, rebuilt, and no longer see that warning.Quoted 5 lines
I now observe a different set. I plan on attending "BPF office hours tomorrow morning," but if anyone wants a sneak peak of the errors and how to reproduce:
https://gist.github.com/nickdesaulniers/ae8c9efbe4da69b1cf0dce138c1d2781Quoted 3 lines
Is there another (easy) way to get your patch set without the b4 tool? Is your patch set present in some patchworks instance, so that I can download it in mbox format, for example?
Quoted 8 lines
$ wget https://lore.kernel.org/lkml/[email protected]/raw -O - | git am $ wget https://lore.kernel.org/lkml/[email protected]/raw -O - | git amIf you haven't tried b4 yet, it's quite nice. Hard to go back. Lore also has mbox.gz links. Not sure about patchwork.
Ok, I managed to apply that on linux-next, but I can't get past this:
Quoted 6 lines
Quoted 2 lines
ld.lld: error: undefined symbol:
pa_trampoline_startQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
Thanks for testing and the report. Do you have a .config you can send me to reproduce?
I followed your steps exactly, used olddefconfig. I've build with both latest clang master and llvmorg-12.0.0-rc1 tag. This might be something with my environment, I don't know.
Quoted 88 lines
Quoted 63 lines
ld.lld: error: undefined symbol:
pa_trampoline_headerQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol:
pa_trampoline_pgdQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
referenced by trampoline_64.S:142 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:142)arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_wakeup_startQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol:
pa_wakeup_headerQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol:
pa_machine_real_restart_asmQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol:
pa_startup_32Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:77 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:77)
arch/x86/realmode/rm/trampoline_64.o:(trampoline_start)ld.lld: error: undefined symbol:
pa_tr_flagsQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:124 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:124)
arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_tr_cr4Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:138 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:138)
arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_tr_eferQuoted 4 lines
Quoted 4 lines
Quoted 4 lines
referenced by trampoline_64.S:146 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:146)
arch/x86/realmode/rm/trampoline_64.o:(startup_32) referenced by trampoline_64.S:147 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:147) arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_startup_64Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:161 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:161)
arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_tr_gdtQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
referenced by arch/x86/realmode/rm/trampoline_64.o:(tr_gdt)
referenced by reboot.S:28 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:28)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)ld.lld: error: undefined symbol:
pa_machine_real_restart_paging_offQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by reboot.S:34 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:34)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)ld.lld: error: undefined symbol:
pa_machine_real_restart_idtQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by reboot.S:47 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:47)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)ld.lld: error: undefined symbol:
pa_machine_real_restart_gdtQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
referenced by reboot.S:54 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:54)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)
referenced by arch/x86/realmode/rm/reboot.o:(machine_real_restart_gdt)ld.lld: error: undefined symbol:
pa_wakeup_gdtQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/wakeup_asm.o:(wakeup_gdt)
CC arch/x86/mm/numa_64.o CC arch/x86/mm/amdtopology.o HOSTCC arch/x86/entry/vdso/vdso2cQuoted 19 lines
make[4]: *** [
arch/x86/realmode/rm/realmode.elf] Error 1 make[3]: *** [arch/x86/realmode/rm/realmode.bin] Error 2 make[2]: *** [arch/x86/realmode] Error 2 make[2]: *** Waiting for unfinished jobs....Hopefully Arnaldo will have better luck.
Quoted 9 lines
Quoted 4 lines
Quoted 4 lines
(FWIW: some other folks are hitting issues now with kernel's lack of DWARF v5 support: https://bugzilla.redhat.com/show_bug.cgi?id=1922707)
--
Thanks,
~Nick Desaulniers--
Thanks,
~Nick Desaulniers
Quoted 79 lines · Andrii Nakryiko
Quoted 77 lines · Nick Desaulniers
Moving a bunch of folks + lists to BCC.
Quoted 71 lines · Andrii Nakryiko
Quoted 56 lines · Nick Desaulniers
Quoted 49 lines · Andrii Nakryiko
Quoted 41 lines · Nick Desaulniers
Quoted 25 lines · Arnaldo Carvalho de Melo
Em Fri, Jan 15, 2021 at 03:43:06PM -0800, Yonghong Song escreveu:
Quoted 23 lines · Nick Desaulniers
Quoted 20 lines · Yonghong Song
Quoted 7 lines · Sedat Dilek
Quoted 3 lines
En plus, I encountered breakage with GCC v10.2.1 and LLVM=1 and
CONFIG_DEBUG_INFO_DWARF4.
So might be good to add a "depends on !DEBUG_INFO_BTF" in this combination.Can you privately send me your configs that repro? Maybe I can isolate it to a set of configs?
Quoted 7 lines
I suggested not to add !DEBUG_INFO_BTF to
CONFIG_DEBUG_INFO_DWARF4. It is not there before and adding this may suddenly break some users.If certain combination of gcc/llvm does not work for
CONFIG_DEBUG_INFO_DWARF4with pahole, this is a bug bpf community should fix.Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Is there a place I should report bugs?
You can send bug report to Arnaldo Carvalho de Melo <[email protected]>, [email protected] and [email protected].
I'm coming back from vacation, will try to read the messages and see if I can fix this.
IDK about DWARF v4; that seems to work for me. I was previously observing
https://bugzilla.redhat.com/show_bug.cgi?id=1922698
with DWARF v5. I just re-pulled the latest pahole, rebuilt, and no longer see that warning.Quoted 5 lines
I now observe a different set. I plan on attending "BPF office hours tomorrow morning," but if anyone wants a sneak peak of the errors and how to reproduce:
https://gist.github.com/nickdesaulniers/ae8c9efbe4da69b1cf0dce138c1d2781Quoted 3 lines
Is there another (easy) way to get your patch set without the b4 tool? Is your patch set present in some patchworks instance, so that I can download it in mbox format, for example?
Quoted 8 lines
$ wget https://lore.kernel.org/lkml/[email protected]/raw -O - | git am $ wget https://lore.kernel.org/lkml/[email protected]/raw -O - | git amIf you haven't tried b4 yet, it's quite nice. Hard to go back. Lore also has mbox.gz links. Not sure about patchwork.
Ok, I managed to apply that on linux-next, but I can't get past this:
ld.lld: error: undefined symbol:
pa_trampoline_startQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
Quoted 7 lines
Quoted 3 lines
Thanks for testing and the report. Do you have a .config you can send me to reproduce?
I followed your steps exactly, used olddefconfig. I've build with both latest clang master and llvmorg-12.0.0-rc1 tag. This might be something with my environment, I don't know.
Perhaps, but "olddefconfig" is not reproducible for anyone else, ever. Please send me your .config that produced the errors.
Quoted 89 lines
Quoted 89 lines
Quoted 64 lines
ld.lld: error: undefined symbol:
pa_trampoline_headerQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol:
pa_trampoline_pgdQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
referenced by trampoline_64.S:142 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:142)arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_wakeup_startQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol:
pa_wakeup_headerQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol:
pa_machine_real_restart_asmQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol:
pa_startup_32Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:77 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:77)
arch/x86/realmode/rm/trampoline_64.o:(trampoline_start)ld.lld: error: undefined symbol:
pa_tr_flagsQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:124 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:124)
arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_tr_cr4Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:138 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:138)
arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_tr_eferQuoted 4 lines
Quoted 4 lines
Quoted 4 lines
referenced by trampoline_64.S:146 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:146)
arch/x86/realmode/rm/trampoline_64.o:(startup_32) referenced by trampoline_64.S:147 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:147) arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_startup_64Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:161 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:161)
arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_tr_gdtQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
referenced by arch/x86/realmode/rm/trampoline_64.o:(tr_gdt)
referenced by reboot.S:28 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:28)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)ld.lld: error: undefined symbol:
pa_machine_real_restart_paging_offQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by reboot.S:34 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:34)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)ld.lld: error: undefined symbol:
pa_machine_real_restart_idtQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by reboot.S:47 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:47)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)ld.lld: error: undefined symbol:
pa_machine_real_restart_gdtQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
referenced by reboot.S:54 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:54)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)
referenced by arch/x86/realmode/rm/reboot.o:(machine_real_restart_gdt)ld.lld: error: undefined symbol:
pa_wakeup_gdtQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/wakeup_asm.o:(wakeup_gdt)
CC arch/x86/mm/numa_64.o CC arch/x86/mm/amdtopology.o HOSTCC arch/x86/entry/vdso/vdso2cQuoted 19 lines
make[4]: *** [
arch/x86/realmode/rm/realmode.elf] Error 1 make[3]: *** [arch/x86/realmode/rm/realmode.bin] Error 2 make[2]: *** [arch/x86/realmode] Error 2 make[2]: *** Waiting for unfinished jobs....Hopefully Arnaldo will have better luck.
Quoted 9 lines
Quoted 4 lines
Quoted 4 lines
(FWIW: some other folks are hitting issues now with kernel's lack of DWARF v5 support: https://bugzilla.redhat.com/show_bug.cgi?id=1922707)
--
Thanks,
~Nick Desaulniers--
Thanks,
~Nick Desaulniers
Signature · 2 lines
Thanks, ~Nick Desaulniers
Quoted 86 lines · Nick Desaulniers
Quoted 83 lines · Andrii Nakryiko
Quoted 80 lines · Nick Desaulniers
Moving a bunch of folks + lists to BCC.
Quoted 63 lines · Andrii Nakryiko
Quoted 61 lines · Nick Desaulniers
Quoted 49 lines · Andrii Nakryiko
Quoted 41 lines · Nick Desaulniers
Quoted 25 lines · Arnaldo Carvalho de Melo
Em Fri, Jan 15, 2021 at 03:43:06PM -0800, Yonghong Song escreveu:
Quoted 23 lines · Nick Desaulniers
Quoted 20 lines · Yonghong Song
Quoted 7 lines · Sedat Dilek
Quoted 3 lines
En plus, I encountered breakage with GCC v10.2.1 and LLVM=1 and
CONFIG_DEBUG_INFO_DWARF4.
So might be good to add a "depends on !DEBUG_INFO_BTF" in this combination.Can you privately send me your configs that repro? Maybe I can isolate it to a set of configs?
Quoted 7 lines
I suggested not to add !DEBUG_INFO_BTF to
CONFIG_DEBUG_INFO_DWARF4. It is not there before and adding this may suddenly break some users.If certain combination of gcc/llvm does not work for
CONFIG_DEBUG_INFO_DWARF4with pahole, this is a bug bpf community should fix.Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Is there a place I should report bugs?
You can send bug report to Arnaldo Carvalho de Melo <[email protected]>, [email protected] and [email protected].
I'm coming back from vacation, will try to read the messages and see if I can fix this.
IDK about DWARF v4; that seems to work for me. I was previously observing
https://bugzilla.redhat.com/show_bug.cgi?id=1922698
with DWARF v5. I just re-pulled the latest pahole, rebuilt, and no longer see that warning.Quoted 5 lines
I now observe a different set. I plan on attending "BPF office hours tomorrow morning," but if anyone wants a sneak peak of the errors and how to reproduce:
https://gist.github.com/nickdesaulniers/ae8c9efbe4da69b1cf0dce138c1d2781Quoted 3 lines
Is there another (easy) way to get your patch set without the b4 tool? Is your patch set present in some patchworks instance, so that I can download it in mbox format, for example?
$ wget https://lore.kernel.org/lkml/[email protected]/raw -O - | git am $ wget https://lore.kernel.org/lkml/[email protected]/raw -O - | git amQuoted 8 lines
Quoted 3 lines
If you haven't tried b4 yet, it's quite nice. Hard to go back. Lore also has mbox.gz links. Not sure about patchwork.
Ok, I managed to apply that on linux-next, but I can't get past this:
ld.lld: error: undefined symbol:
pa_trampoline_startQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
Thanks for testing and the report. Do you have a .config you can send me to reproduce?
Quoted 7 lines
Quoted 3 lines
I followed your steps exactly, used olddefconfig. I've build with both latest clang master and llvmorg-12.0.0-rc1 tag. This might be something with my environment, I don't know.
Perhaps, but "olddefconfig" is not reproducible for anyone else, ever. Please send me your .config that produced the errors.
Sorry, I meant defconfig + enable DWARF5 and BTF + then olddefconfig. But I can send you config still a bit later.
Quoted 95 lines
Quoted 86 lines
Quoted 86 lines
Quoted 83 lines
ld.lld: error: undefined symbol:
pa_trampoline_headerQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol:
pa_trampoline_pgdQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
referenced by trampoline_64.S:142 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:142)arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_wakeup_startQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol:
pa_wakeup_headerQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol:
pa_machine_real_restart_asmQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/header.o:(real_mode_header)
ld.lld: error: undefined symbol:
pa_startup_32Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:77 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:77)
arch/x86/realmode/rm/trampoline_64.o:(trampoline_start)ld.lld: error: undefined symbol:
pa_tr_flagsQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:124 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:124)
arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_tr_cr4Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:138 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:138)
arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_tr_eferQuoted 4 lines
Quoted 4 lines
Quoted 4 lines
referenced by trampoline_64.S:146 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:146)
arch/x86/realmode/rm/trampoline_64.o:(startup_32) referenced by trampoline_64.S:147 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:147) arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_startup_64Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by trampoline_64.S:161 (/data/users/andriin/linux/arch/x86/realmode/rm/trampoline_64.S:161)
arch/x86/realmode/rm/trampoline_64.o:(startup_32)ld.lld: error: undefined symbol:
pa_tr_gdtQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
referenced by arch/x86/realmode/rm/trampoline_64.o:(tr_gdt)
referenced by reboot.S:28 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:28)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)ld.lld: error: undefined symbol:
pa_machine_real_restart_paging_offQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by reboot.S:34 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:34)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)ld.lld: error: undefined symbol:
pa_machine_real_restart_idtQuoted 2 lines
Quoted 2 lines
Quoted 2 lines
referenced by reboot.S:47 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:47)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)ld.lld: error: undefined symbol:
pa_machine_real_restart_gdtQuoted 3 lines
Quoted 3 lines
Quoted 3 lines
referenced by reboot.S:54 (/data/users/andriin/linux/arch/x86/realmode/rm/reboot.S:54)
arch/x86/realmode/rm/reboot.o:(machine_real_restart_asm)
referenced by arch/x86/realmode/rm/reboot.o:(machine_real_restart_gdt)ld.lld: error: undefined symbol:
pa_wakeup_gdtQuoted 1 line
Quoted 1 line
Quoted 1 line
referenced by arch/x86/realmode/rm/wakeup_asm.o:(wakeup_gdt)
CC arch/x86/mm/numa_64.o CC arch/x86/mm/amdtopology.o HOSTCC arch/x86/entry/vdso/vdso2cmake[4]: *** [
arch/x86/realmode/rm/realmode.elf] Error 1 make[3]: *** [arch/x86/realmode/rm/realmode.bin] Error 2 make[2]: *** [arch/x86/realmode] Error 2 make[2]: *** Waiting for unfinished jobs....Hopefully Arnaldo will have better luck.
Quoted 9 lines
Quoted 4 lines
Quoted 4 lines
(FWIW: some other folks are hitting issues now with kernel's lack of DWARF v5 support: https://bugzilla.redhat.com/show_bug.cgi?id=1922707)
--
Thanks,
~Nick DesaulniersQuoted 3 lines
Quoted 3 lines
--
Thanks,
~Nick Desaulniers--
Thanks,
~Nick Desaulniers
On Thu, Feb 4, 2021 at 3:58 AM Andrii Nakryiko
<[email protected]> wrote:
...
Quoted 5 lines
Is there another (easy) way to get your patch set without the b4 tool? Is your patch set present in some patchworks instance, so that I can download it in mbox format, for example?
Just to promote the b4 tool - we have some cool wiki in [1].
Personally, I got in touch with b4 when dealing with the ClangBuiltLinux project.
Note: Sometimes it takes a bit for the patch(set) to be available from the LORE link.
- Sedat -
Quoted 15 lines · Sedat Dilek
On Thu, Feb 4, 2021 at 3:58 AM Andrii Nakryiko
<[email protected]> wrote:
...Quoted 5 lines
Is there another (easy) way to get your patch set without the b4 tool? Is your patch set present in some patchworks instance, so that I can download it in mbox format, for example?
Just to promote the b4 tool - we have some cool wiki in [1].
Personally, I got in touch with b4 when dealing with the ClangBuiltLinux project.
Quoted 6 lines
Note: Sometimes it takes a bit for the patch(set) to be available from the LORE link.
- Sedat -
Honestly, when behind a proxy-server I did not find a trick to use b4 here (DNS resolution problems).
I tried with proxychains-ng - NOPE.
In the meantime I updated the CBL-wiki page and added v8 as an example :-).
- Sedat -