<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/bpf/prog_tests/map_ptr.c, branch linux-5.17.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.17.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.17.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-12-02T19:18:36Z</updated>
<entry>
<title>selftests/bpf: Convert map_ptr_kern test to use light skeleton.</title>
<updated>2021-12-02T19:18:36Z</updated>
<author>
<name>Alexei Starovoitov</name>
</author>
<published>2021-12-01T18:10:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=650c9dbd101ba7d7180f4e77deb1c273f4ea5ca3'/>
<id>urn:sha1:650c9dbd101ba7d7180f4e77deb1c273f4ea5ca3</id>
<content type='text'>
To exercise CO-RE in the kernel further convert map_ptr_kern
test to light skeleton.

Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Acked-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20211201181040.23337-15-alexei.starovoitov@gmail.com
</content>
</entry>
<entry>
<title>selftests/bpf: Pass page size from userspace in map_ptr</title>
<updated>2021-04-09T06:54:47Z</updated>
<author>
<name>Yauheni Kaliuta</name>
</author>
<published>2021-04-08T06:13:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7a85e4dfa7f5d052ae5016e96f1ee426a8870e78'/>
<id>urn:sha1:7a85e4dfa7f5d052ae5016e96f1ee426a8870e78</id>
<content type='text'>
Use ASSERT to check result but keep CHECK where format was used to
report error.

Use bpf_map__set_max_entries() to set map size dynamically from
userspace according to page size.

Zero-initialize the variable in bpf prog, otherwise it will cause
problems on some versions of Clang.

Signed-off-by: Yauheni Kaliuta &lt;yauheni.kaliuta@redhat.com&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20210408061310.95877-4-yauheni.kaliuta@redhat.com
</content>
</entry>
<entry>
<title>selftests/bpf: Test access to bpf map pointer</title>
<updated>2020-06-22T20:22:59Z</updated>
<author>
<name>Andrey Ignatov</name>
</author>
<published>2020-06-19T21:11:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b1b53d413f16c6b5078edb127e660e67332e4d2f'/>
<id>urn:sha1:b1b53d413f16c6b5078edb127e660e67332e4d2f</id>
<content type='text'>
Add selftests to test access to map pointers from bpf program for all
map types except struct_ops (that one would need additional work).

verifier test focuses mostly on scenarios that must be rejected.

prog_tests test focuses on accessing multiple fields both scalar and a
nested struct from bpf program and verifies that those fields have
expected values.

Signed-off-by: Andrey Ignatov &lt;rdna@fb.com&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
Acked-by: John Fastabend &lt;john.fastabend@gmail.com&gt;
Acked-by: Martin KaFai Lau &lt;kafai@fb.com&gt;
Link: https://lore.kernel.org/bpf/139a6a17f8016491e39347849b951525335c6eb4.1592600985.git.rdna@fb.com
</content>
</entry>
</feed>
