Thread (48 messages) 48 messages, 8 authors, 2022-01-14

Re: [PATCH v21 bpf-next 18/23] libbpf: Add SEC name for xdp_mb programs

From: Alexei Starovoitov <hidden>
Date: 2022-01-14 02:09:50
Also in: bpf

On Thu, Jan 13, 2022 at 3:58 PM Lorenzo Bianconi [off-list ref] wrote:
quoted
Btw "xdp_cpumap" should be cleaned up.
xdp_cpumap is an attach type. It's not prog type.
Probably it should be "xdp/cpumap" to align with "cgroup/bind[46]" ?
so for xdp "mb" or xdp "frags" it will be xdp/cpumap.mb (xdp/devmap.mb) or
xdp/cpumap.frags (xdp/devmap.frags), right?
xdp.frags/cpumap
xdp.frags/devmap

The current de-facto standard for SEC("") in libbpf:
prog_type.prog_flags/attach_place

"attach_place" is either function_name for fentry/, tp/, lsm/, etc.
or attach_type/hook/target for cgroup/bind4, cgroup_skb/egress.

lsm.s/socket_bind -> prog_type = LSM, flags = SLEEPABLE
lsm/socket_bind -> prog_type = LSM, non sleepable.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help