<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/lib/bpf/libbpf.map, branch linux-6.5.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.5.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.5.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2023-05-23T21:41:01Z</updated>
<entry>
<title>libbpf: Add opts-based bpf_obj_pin() API and add support for path_fd</title>
<updated>2023-05-23T21:41:01Z</updated>
<author>
<name>Andrii Nakryiko</name>
</author>
<published>2023-05-16T00:01:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f1674dc79fd276aeef6cad738a5f25ed2ba6d329'/>
<id>urn:sha1:f1674dc79fd276aeef6cad738a5f25ed2ba6d329</id>
<content type='text'>
Add path_fd support for bpf_obj_pin() and bpf_obj_get() operations
(through their opts-based variants). This allows to take advantage of
new kernel-side support for O_PATH-based pin/get location specification.

Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
Link: https://lore.kernel.org/bpf/20230523170013.728457-4-andrii@kernel.org
</content>
</entry>
<entry>
<title>libbpf: Start v1.3 development cycle</title>
<updated>2023-05-23T19:39:12Z</updated>
<author>
<name>Andrii Nakryiko</name>
</author>
<published>2023-05-23T17:00:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2b001b94073be6097b1a4a21defc5cfbb7aa2f9f'/>
<id>urn:sha1:2b001b94073be6097b1a4a21defc5cfbb7aa2f9f</id>
<content type='text'>
Bump libbpf.map to v1.3.0 to start a new libbpf version cycle.

Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
Link: https://lore.kernel.org/bpf/20230523170013.728457-3-andrii@kernel.org
</content>
</entry>
<entry>
<title>libbpf: Update a bpf_link with another struct_ops.</title>
<updated>2023-03-23T05:53:02Z</updated>
<author>
<name>Kui-Feng Lee</name>
</author>
<published>2023-03-23T03:24:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=912dd4b0c2a50a839301520badb241f36664ae07'/>
<id>urn:sha1:912dd4b0c2a50a839301520badb241f36664ae07</id>
<content type='text'>
Introduce bpf_link__update_map(), which allows to atomically update
underlying struct_ops implementation for given struct_ops BPF link.

Also add old_map_fd to struct bpf_link_update_opts to handle
BPF_F_REPLACE feature.

Signed-off-by: Kui-Feng Lee &lt;kuifeng@meta.com&gt;
Link: https://lore.kernel.org/r/20230323032405.3735486-7-kuifeng@meta.com
Signed-off-by: Martin KaFai Lau &lt;martin.lau@kernel.org&gt;
</content>
</entry>
<entry>
<title>libbpf: Introduce bpf_{btf,link,map,prog}_get_info_by_fd()</title>
<updated>2023-02-16T23:32:36Z</updated>
<author>
<name>Ilya Leoshkevich</name>
</author>
<published>2023-02-14T23:12:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=55a9ed0e16baf4d025c160d46bc1e3fac0d4cdc4'/>
<id>urn:sha1:55a9ed0e16baf4d025c160d46bc1e3fac0d4cdc4</id>
<content type='text'>
These are type-safe wrappers around bpf_obj_get_info_by_fd(). They
found one problem in selftests, and are also useful for adding
Memory Sanitizer annotations.

Signed-off-by: Ilya Leoshkevich &lt;iii@linux.ibm.com&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20230214231221.249277-2-iii@linux.ibm.com
</content>
</entry>
<entry>
<title>libbpf: start v1.2 development cycle</title>
<updated>2022-12-21T19:18:50Z</updated>
<author>
<name>Andrii Nakryiko</name>
</author>
<published>2022-12-21T18:00:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4ec38eda85b9d07942a1cc7a29bba8aa7c810780'/>
<id>urn:sha1:4ec38eda85b9d07942a1cc7a29bba8aa7c810780</id>
<content type='text'>
Bump current version for new development cycle to v1.2.

Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Acked-by: Stanislav Fomichev &lt;sdf@google.com&gt;
Link: https://lore.kernel.org/r/20221221180049.853365-1-andrii@kernel.org
Signed-off-by: Martin KaFai Lau &lt;martin.lau@kernel.org&gt;
</content>
</entry>
<entry>
<title>libbpf: Introduce bpf_link_get_fd_by_id_opts()</title>
<updated>2022-10-10T23:49:20Z</updated>
<author>
<name>Roberto Sassu</name>
</author>
<published>2022-10-06T11:07:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=97c8f9dd5db839f2387785ee936d0a5b257b31d3'/>
<id>urn:sha1:97c8f9dd5db839f2387785ee936d0a5b257b31d3</id>
<content type='text'>
Introduce bpf_link_get_fd_by_id_opts(), for symmetry with
bpf_map_get_fd_by_id_opts(), to let the caller pass the newly introduced
data structure bpf_get_fd_by_id_opts. Keep the existing
bpf_link_get_fd_by_id(), and call bpf_link_get_fd_by_id_opts() with NULL as
opts argument, to prevent setting open_flags.

Currently, the kernel does not support non-zero open_flags for
bpf_link_get_fd_by_id_opts(), and a call with them will result in an error
returned by the bpf() system call. The caller should always pass zero
open_flags.

Signed-off-by: Roberto Sassu &lt;roberto.sassu@huawei.com&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20221006110736.84253-6-roberto.sassu@huaweicloud.com
</content>
</entry>
<entry>
<title>libbpf: Introduce bpf_btf_get_fd_by_id_opts()</title>
<updated>2022-10-10T23:49:20Z</updated>
<author>
<name>Roberto Sassu</name>
</author>
<published>2022-10-06T11:07:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2ce7cbf2ba71bb03542af739af80e86b6855ae48'/>
<id>urn:sha1:2ce7cbf2ba71bb03542af739af80e86b6855ae48</id>
<content type='text'>
Introduce bpf_btf_get_fd_by_id_opts(), for symmetry with
bpf_map_get_fd_by_id_opts(), to let the caller pass the newly introduced
data structure bpf_get_fd_by_id_opts. Keep the existing
bpf_btf_get_fd_by_id(), and call bpf_btf_get_fd_by_id_opts() with NULL as
opts argument, to prevent setting open_flags.

Currently, the kernel does not support non-zero open_flags for
bpf_btf_get_fd_by_id_opts(), and a call with them will result in an error
returned by the bpf() system call. The caller should always pass zero
open_flags.

Signed-off-by: Roberto Sassu &lt;roberto.sassu@huawei.com&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20221006110736.84253-5-roberto.sassu@huaweicloud.com
</content>
</entry>
<entry>
<title>libbpf: Introduce bpf_prog_get_fd_by_id_opts()</title>
<updated>2022-10-10T23:49:20Z</updated>
<author>
<name>Roberto Sassu</name>
</author>
<published>2022-10-06T11:07:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8f13f168ea14333ac971e5404800b7fb3658e782'/>
<id>urn:sha1:8f13f168ea14333ac971e5404800b7fb3658e782</id>
<content type='text'>
Introduce bpf_prog_get_fd_by_id_opts(), for symmetry with
bpf_map_get_fd_by_id_opts(), to let the caller pass the newly introduced
data structure bpf_get_fd_by_id_opts. Keep the existing
bpf_prog_get_fd_by_id(), and call bpf_prog_get_fd_by_id_opts() with NULL as
opts argument, to prevent setting open_flags.

Currently, the kernel does not support non-zero open_flags for
bpf_prog_get_fd_by_id_opts(), and a call with them will result in an error
returned by the bpf() system call. The caller should always pass zero
open_flags.

Signed-off-by: Roberto Sassu &lt;roberto.sassu@huawei.com&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20221006110736.84253-4-roberto.sassu@huaweicloud.com
</content>
</entry>
<entry>
<title>libbpf: Introduce bpf_get_fd_by_id_opts and bpf_map_get_fd_by_id_opts()</title>
<updated>2022-10-10T23:49:20Z</updated>
<author>
<name>Roberto Sassu</name>
</author>
<published>2022-10-06T11:07:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=243e300563b1b39ac669c7698742931427699184'/>
<id>urn:sha1:243e300563b1b39ac669c7698742931427699184</id>
<content type='text'>
Define a new data structure called bpf_get_fd_by_id_opts, with the member
open_flags, to be used by callers of the _opts variants of
bpf_*_get_fd_by_id() to specify the permissions needed for the file
descriptor to be obtained.

Also, introduce bpf_map_get_fd_by_id_opts(), to let the caller pass a
bpf_get_fd_by_id_opts structure.

Finally, keep the existing bpf_map_get_fd_by_id(), and call
bpf_map_get_fd_by_id_opts() with NULL as opts argument, to request
read-write permissions (current behavior).

Signed-off-by: Roberto Sassu &lt;roberto.sassu@huawei.com&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20221006110736.84253-3-roberto.sassu@huaweicloud.com
</content>
</entry>
<entry>
<title>libbpf: Fix LIBBPF_1.0.0 declaration in libbpf.map</title>
<updated>2022-10-10T23:49:20Z</updated>
<author>
<name>Roberto Sassu</name>
</author>
<published>2022-10-06T11:07:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7a366da2d2ba86316d3ec408f70d19b63916f9ce'/>
<id>urn:sha1:7a366da2d2ba86316d3ec408f70d19b63916f9ce</id>
<content type='text'>
Add the missing LIBBPF_0.8.0 at the end of the LIBBPF_1.0.0 declaration,
similarly to other version declarations.

Signed-off-by: Roberto Sassu &lt;roberto.sassu@huawei.com&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20221006110736.84253-2-roberto.sassu@huaweicloud.com
</content>
</entry>
</feed>
