]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf-libbpf-attach-by-name'
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 27 Sep 2018 19:15:00 +0000 (21:15 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 27 Sep 2018 19:19:34 +0000 (21:19 +0200)
commit4d750b31123fb70ffd5284e7284a80469bd29f5d
treee906592468b388ae703879244a33a80259e0c4b1
parent6e06004e7b8855dae863aee9ea1dd787750f1a1d
parent413e741b8a526a9a086a7ec015a314eefc4d10c6
Merge branch 'bpf-libbpf-attach-by-name'

Andrey Ignatov says:

====================
This patch set introduces libbpf_attach_type_by_name function in libbpf
to identify attach type by section name.

This is useful to avoid writing same logic over and over again in user
space applications that leverage libbpf.

Patch 1 has more details on the new function and problem being solved.
Patches 2 and 3 add support for new section names.
Patch 4 uses new function in a selftest.
Patch 5 adds selftest for libbpf_{prog,attach}_type_by_name.

As a side note there are a lot of inconsistencies now between names used
by libbpf and bpftool (e.g. cgroup/skb vs cgroup_skb, cgroup_device and
device vs cgroup/dev, sockops vs sock_ops, etc). This patch set does not
address it but it tries not to make it harder to address it in the future.
====================

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>