Re: bpf: Is it possible to move .BTF data into a module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 4, 2022 at 6:16 AM Vitaly Chikunov <vt@xxxxxxxxxxxx> wrote:
>
> Hi,
>
> We need to reduce kernel size for aarch64, because it does not fit into
> U-Boot loader on Raspberry Pi (due to it having fdt_addr_r=0x02600000)
> and one of big ELF sections in vmlinuz is .BTF taking around 5MB.
> Compression does not help because on aarch64 kernels are
> uncompressed[1].
>
> Is it theoretically possible to make sysfs_btf a module?

I think so, it may need some refactoring and changes
but, yeah, in theory, the module could ship with the
kernel's BTF information which can then be initialized by the module.

Curious to see what others think as well.

>
> Yes this will reduce tracing at boot times, but at least it will give
> option for occasional tracing after boot.
>
> Thanks,
>
> [1] https://www.kernel.org/doc/Documentation/arm64/booting.txt #3.



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux