Proposal for patch - Extend bpftool prog run to accept cpu and flags options

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

 



BPF,

The existing bpf_test_run_opts structure exposes additional fields including "flags" and "cpu". I propose extending the bpftool prog run to accept options so set these additional fields.

Use case:
Some BPF programs access state that is potentially shared between programs running on different CPUs. This can impact the performance of a BPF program. To permit users to more accurately assess how their BPF program will perform when being invoked on multiple CPUs in parallel I am proposing adding the ability for bpftool to set the cpu field in  bpf_test_run_opts struct when calling the syscall.

If no one else is working on this or there are no objections, I will submit a patch using bpf-next https://github.com/xdp-project/bpf-next/.

Regards,
Alan Jowett




[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