Skip to content

linux: Add version 6.12.23 #3231

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

linux: Add version 6.12.23 #3231

wants to merge 1 commit into from

Conversation

donald
Copy link
Collaborator

@donald donald commented Apr 18, 2025

No description provided.

@pmenzel
Copy link
Collaborator

pmenzel commented Apr 18, 2025

Yout beat me to it. ;-) I already checked out the branch this morning.

Now that pahole is in MarIuX, it’d be great, if you could built the BTF (BPF Type Format) encoded debug information, so that we can use ptcpdump.

@donald
Copy link
Collaborator Author

donald commented Apr 19, 2025

With CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y, CONFIG_DEBUG_INFO_BTF=y:


 LD      vmlinux.o
  OBJCOPY modules.builtin.modinfo
  GEN     modules.builtin
  GEN     .vmlinux.objs
  MODPOST Module.symvers
  CC      .vmlinux.export.o
  UPD     include/generated/utsversion.h
  CC      init/version-timestamp.o
  KSYMS   .tmp_vmlinux0.kallsyms.S
  AS      .tmp_vmlinux0.kallsyms.o
  LD      .tmp_vmlinux1
  BTF     .tmp_vmlinux1.btf.o
die__process: DW_TAG_compile_unit, DW_TAG_type_unit, DW_TAG_partial_unit or DW_TAG_skeleton_unit expected got INVALID (0x0) @ 115a59b!
error decoding cu 
pahole: .tmp_vmlinux1: Invalid argument
  NM      .tmp_vmlinux1.syms
  KSYMS   .tmp_vmlinux1.kallsyms.S
  AS      .tmp_vmlinux1.kallsyms.o
  LD      .tmp_vmlinux2
  NM      .tmp_vmlinux2.syms
  KSYMS   .tmp_vmlinux2.kallsyms.S
  AS      .tmp_vmlinux2.kallsyms.o
  LD      vmlinux
  BTFIDS  vmlinux
libbpf: failed to find '.BTF' ELF section in vmlinux
FAILED: load BTF from vmlinux: No data available
make[2]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 255
make[2]: *** Deleting file 'vmlinux'
make[1]: *** [/scratch/local/linux/Makefile:1179: vmlinux] Error 2
make: *** [Makefile:224: __sub-make] Error 2

Just tried, no time for debugging right now. Any idea?

@pmenzel
Copy link
Collaborator

pmenzel commented Apr 19, 2025

Just tried, no time for debugging right now. Any idea?

Unfortunately, I do not. Sorry for wasting your time. I am going to do more tests next week.

@pmenzel
Copy link
Collaborator

pmenzel commented Apr 19, 2025

For next week from Reddit:

You need BTF debug info enabled for BTF to be found correctly but debug needs to be setup correctly.
Debug compressed needs to be disabled, split debugging disabled, struct randomization for gcc disabled ect.
There are other options that will block or interfere with debugging for btf.

@donald
Copy link
Collaborator Author

donald commented Apr 22, 2025

What exactly do we need this for?

@pmenzel
Copy link
Collaborator

pmenzel commented Apr 22, 2025

What exactly do we need this for?

To fully use eBPF. For example, ptcpdump is able to also show the process ids. I do not know the details, but it needs the BTF symbols.

@pmenzel pmenzel closed this in ff4776c Apr 26, 2025
@pmenzel pmenzel reopened this Apr 26, 2025
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants