Re: [PATCH v1 2/7] bpf: Add bpf_perf_event_aux_pause kfunc

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

 



On Fri, 2025-07-18 at 16:38 +0100, Leo Yan wrote:

[...]

> Just clarify one thing, I defined the kfunc in new patch:
> 
>   int bpf_perf_event_aux_pause(void *p__map, u64 flags, u32 pause)
> 
> Unlike your suggestion, I defined the first parameter as "void
> *p__map" (I refers to bpf_arena_alloc_pages()) rather than
> "struct bpf_map *map". This is because the BPF program will pass a
> variable from the map section, rather than passing a map pointer.

This is correct,
see commit 8d94f1357c00 ("bpf: Recognize '__map' suffix in kfunc arguments")

[...]





[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