Re: [PATCH bpf-next 1/3] bpf: implement relay map basis

2023-12-25 Thread Hou Tao
Hi, On 12/25/2023 7:36 PM, Philo Lu wrote: > On 2023/12/23 21:02, Philo Lu wrote: >> >> >> On 2023/12/23 19:22, Hou Tao wrote: >>> Hi, >>> >>> On 12/22/2023 8:21 PM, Philo Lu wrote: BPF_MAP_TYPE_RELAY is implemented based on relay interface, which creates per-cpu buffer to transfer

Re: [PATCH bpf-next 1/3] bpf: implement relay map basis

2023-12-25 Thread Philo Lu
On 2023/12/23 21:02, Philo Lu wrote: On 2023/12/23 19:22, Hou Tao wrote: Hi, On 12/22/2023 8:21 PM, Philo Lu wrote: BPF_MAP_TYPE_RELAY is implemented based on relay interface, which creates per-cpu buffer to transfer data. Each buffer is essentially a list of fix-sized sub-buffers, and is

Re: [PATCH bpf-next 1/3] bpf: implement relay map basis

2023-12-23 Thread Philo Lu
On 2023/12/23 19:22, Hou Tao wrote: Hi, On 12/22/2023 8:21 PM, Philo Lu wrote: BPF_MAP_TYPE_RELAY is implemented based on relay interface, which creates per-cpu buffer to transfer data. Each buffer is essentially a list of fix-sized sub-buffers, and is exposed to user space as files in

Re: [PATCH bpf-next 1/3] bpf: implement relay map basis

2023-12-23 Thread Hou Tao
Hi, On 12/22/2023 8:21 PM, Philo Lu wrote: > BPF_MAP_TYPE_RELAY is implemented based on relay interface, which > creates per-cpu buffer to transfer data. Each buffer is essentially a > list of fix-sized sub-buffers, and is exposed to user space as files in > debugfs. attr->max_entries is used as

Re: [PATCH bpf-next 1/3] bpf: implement relay map basis

2023-12-22 Thread Philo Lu
On 2023/12/22 22:45, Jiri Olsa wrote: On Fri, Dec 22, 2023 at 08:21:44PM +0800, Philo Lu wrote: SNIP +/* bpf_attr is used as follows: + * - key size: must be 0 + * - value size: value will be used as directory name by map_update_elem + * (to create relay files). If passed as 0, it will

Re: [PATCH bpf-next 1/3] bpf: implement relay map basis

2023-12-22 Thread kernel test robot
master patch link: https://lore.kernel.org/r/20231222122146.65519-2-lulie%40linux.alibaba.com patch subject: [PATCH bpf-next 1/3] bpf: implement relay map basis config: x86_64-kexec (https://download.01.org/0day-ci/archive/20231223/202312230850.nqeizxj6-...@intel.com/config) compiler: gcc-12

Re: [PATCH bpf-next 1/3] bpf: implement relay map basis

2023-12-22 Thread kernel test robot
master patch link: https://lore.kernel.org/r/20231222122146.65519-2-lulie%40linux.alibaba.com patch subject: [PATCH bpf-next 1/3] bpf: implement relay map basis config: arm-randconfig-001-20231223 (https://download.01.org/0day-ci/archive/20231223/202312230638.iydd8joz-...@intel.com/config

Re: [PATCH bpf-next 1/3] bpf: implement relay map basis

2023-12-22 Thread Jiri Olsa
On Fri, Dec 22, 2023 at 08:21:44PM +0800, Philo Lu wrote: SNIP > +/* bpf_attr is used as follows: > + * - key size: must be 0 > + * - value size: value will be used as directory name by map_update_elem > + * (to create relay files). If passed as 0, it will be set to NAME_MAX as > + * default

[PATCH bpf-next 1/3] bpf: implement relay map basis

2023-12-22 Thread Philo Lu
BPF_MAP_TYPE_RELAY is implemented based on relay interface, which creates per-cpu buffer to transfer data. Each buffer is essentially a list of fix-sized sub-buffers, and is exposed to user space as files in debugfs. attr->max_entries is used as subbuf size and attr->map_extra is used as subbuf