<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/bpf/prog_tests/struct_ops_autocreate.c, branch master</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=master</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2024-03-06T23:18:16Z</updated>
<entry>
<title>selftests/bpf: Test case for SEC("?.struct_ops")</title>
<updated>2024-03-06T23:18:16Z</updated>
<author>
<name>Eduard Zingerman</name>
</author>
<published>2024-03-06T10:45:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=733e5e875444fc5afc9b72714f0ecaca629ccf8a'/>
<id>urn:sha1:733e5e875444fc5afc9b72714f0ecaca629ccf8a</id>
<content type='text'>
Check that "?.struct_ops" and "?.struct_ops.link" section names define
struct_ops maps with autocreate == false after open.

Signed-off-by: Eduard Zingerman &lt;eddyz87@gmail.com&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20240306104529.6453-14-eddyz87@gmail.com
</content>
</entry>
<entry>
<title>selftests/bpf: Verify struct_ops autoload/autocreate sync</title>
<updated>2024-03-06T23:18:15Z</updated>
<author>
<name>Eduard Zingerman</name>
</author>
<published>2024-03-06T10:45:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=651d49f15b2a84b3bcfe950fa99c3672b9619dbd'/>
<id>urn:sha1:651d49f15b2a84b3bcfe950fa99c3672b9619dbd</id>
<content type='text'>
Check that autocreate flags of struct_ops map cause autoload of
struct_ops corresponding programs:
- when struct_ops program is referenced only from a map for which
  autocreate is set to false, that program should not be loaded;
- when struct_ops program with autoload == false is set to be used
  from a map with autocreate == true using shadow var,
  that program should be loaded;
- when struct_ops program is not referenced from any map object load
  should fail.

Signed-off-by: Eduard Zingerman &lt;eddyz87@gmail.com&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20240306104529.6453-10-eddyz87@gmail.com
</content>
</entry>
<entry>
<title>selftests/bpf: Test autocreate behavior for struct_ops maps</title>
<updated>2024-03-06T23:18:15Z</updated>
<author>
<name>Eduard Zingerman</name>
</author>
<published>2024-03-06T10:45:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1863acccdf936c6917398165ca97e252d02fa6dd'/>
<id>urn:sha1:1863acccdf936c6917398165ca97e252d02fa6dd</id>
<content type='text'>
Check that bpf_map__set_autocreate() can be used to disable automatic
creation for struct_ops maps.

Signed-off-by: Eduard Zingerman &lt;eddyz87@gmail.com&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20240306104529.6453-8-eddyz87@gmail.com
</content>
</entry>
</feed>
