<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/bpf/progs/test_global_func2.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>2023-03-10T16:14:08Z</updated>
<entry>
<title>selftests/bpf: fix lots of silly mistakes pointed out by compiler</title>
<updated>2023-03-10T16:14:08Z</updated>
<author>
<name>Andrii Nakryiko</name>
</author>
<published>2023-03-09T05:40:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c8ed66859397237c649998c58a68a86b8ea5f417'/>
<id>urn:sha1:c8ed66859397237c649998c58a68a86b8ea5f417</id>
<content type='text'>
Once we enable -Wall for BPF sources, compiler will complain about lots
of unused variables, variables that are set but never read, etc.

Fix all these issues first before enabling -Wall in Makefile.

Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Link: https://lore.kernel.org/r/20230309054015.4068562-4-andrii@kernel.org
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests/bpf: Convert test_global_funcs test to test_loader framework</title>
<updated>2023-02-17T20:20:44Z</updated>
<author>
<name>Andrii Nakryiko</name>
</author>
<published>2023-02-16T04:59:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=95ebb376176c52382293e05e63f142114a5e40ef'/>
<id>urn:sha1:95ebb376176c52382293e05e63f142114a5e40ef</id>
<content type='text'>
Convert 17 test_global_funcs subtests into test_loader framework for
easier maintenance and more declarative way to define expected
failures/successes.

Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
Acked-by: Stanislav Fomichev &lt;sdf@google.com&gt;
Link: https://lore.kernel.org/bpf/20230216045954.3002473-3-andrii@kernel.org
</content>
</entry>
<entry>
<title>selftests/bpf: Add unit tests for global functions</title>
<updated>2020-01-10T16:20:07Z</updated>
<author>
<name>Alexei Starovoitov</name>
</author>
<published>2020-01-10T06:41:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=360301a6c21be87fe881546bd5f22eccf7a165c5'/>
<id>urn:sha1:360301a6c21be87fe881546bd5f22eccf7a165c5</id>
<content type='text'>
test_global_func[12] - check 512 stack limit.
test_global_func[34] - check 8 frame call chain limit.
test_global_func5    - check that non-ctx pointer cannot be passed into
                       a function that expects context.
test_global_func6    - check that ctx pointer is unmodified.
test_global_func7    - check that global function returns scalar.

Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
Acked-by: Song Liu &lt;songliubraving@fb.com&gt;
Link: https://lore.kernel.org/bpf/20200110064124.1760511-7-ast@kernel.org
</content>
</entry>
</feed>
