Re: 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]

 



On 02/13, Alan Jowett wrote:
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/.

Patches are welcome. I don't see anything controversial with extending
bpftool with those extra fields.

PTAL at [0] on how and where to submit the patches.

0: https://www.kernel.org/doc/Documentation/bpf/bpf_devel_QA.rst

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