Skip to content

Reference kconfig variables in bpf using __kconfig #698

@eiffel-fl

Description

@eiffel-fl

Describe the bug
With cilium/ebpf, it is not possible reference kconfig variables like LINUX_KERNEL_VERSION.

To Reproduce
Steps to reproduce the behavior. Please include:

# Try to bpf2go a file which contains the following line:
# extern int LINUX_KERNEL_VERSION __kconfig;
foo_bpfel.go: can't load BPF from ELF: load BTF: reference to .kconfig: not supported

Expected behavior
We should be able to reference kconfig variables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions