Re: bpf selftests and page size

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

 



On Mon, Mar 1, 2021 at 1:02 AM Yauheni Kaliuta
<yauheni.kaliuta@xxxxxxxxxx> wrote:
>
> Hi!
>
> Bunch of bpf selftests actually depends of page size and has it
> hardcoded to 4K. That causes failures if page shift is configured
> to values other than 12. It looks as a known issue since for the
> userspace parts sysconf(_SC_PAGE_SIZE) is used, but what would be
> the correct way to export it to bpf programs?
>

Given PAGE_SIZE and PAGE_SHIFT are just #defines, the only way seems
to be to pass it from the user-space as a read-only variable.

> --
> WBR,
> Yauheni Kaliuta
>



[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