<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/tools/testing/selftests/bpf/prog_tests/reference_tracking.c, branch linux-5.7.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.7.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.7.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2019-10-22T19:35:03Z</updated>
<entry>
<title>libbpf: Make DECLARE_LIBBPF_OPTS macro strictly a variable declaration</title>
<updated>2019-10-22T19:35:03Z</updated>
<author>
<name>Andrii Nakryiko</name>
</author>
<published>2019-10-22T17:21:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e00aca65e646da08f8dce31c9b89f11dab76198c'/>
<id>urn:sha1:e00aca65e646da08f8dce31c9b89f11dab76198c</id>
<content type='text'>
LIBBPF_OPTS is implemented as a mix of field declaration and memset
+ assignment. This makes it neither variable declaration nor purely
statements, which is a problem, because you can't mix it with either
other variable declarations nor other function statements, because C90
compiler mode emits warning on mixing all that together.

This patch changes LIBBPF_OPTS into a strictly declaration of variable
and solves this problem, as can be seen in case of bpftool, which
previously would emit compiler warning, if done this way (LIBBPF_OPTS as
part of function variables declaration block).

This patch also renames LIBBPF_OPTS into DECLARE_LIBBPF_OPTS to follow
kernel convention for similar macros more closely.

v1-&gt;v2:
- rename LIBBPF_OPTS into DECLARE_LIBBPF_OPTS (Jakub Sitnicki).

Signed-off-by: Andrii Nakryiko &lt;andriin@fb.com&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
Acked-by: Toke Høiland-Jørgensen &lt;toke@redhat.com&gt;
Link: https://lore.kernel.org/bpf/20191022172100.3281465-1-andriin@fb.com
</content>
</entry>
<entry>
<title>selftests/bpf: Make reference_tracking test use subtests</title>
<updated>2019-10-21T12:49:12Z</updated>
<author>
<name>Andrii Nakryiko</name>
</author>
<published>2019-10-21T03:39:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8af1c8b8d6223c31fada6148fd870257407952d1'/>
<id>urn:sha1:8af1c8b8d6223c31fada6148fd870257407952d1</id>
<content type='text'>
reference_tracking is actually a set of 9 sub-tests. Make it explicitly so.

Also, add explicit "classifier/" prefix to BPF program section names to
let libbpf correctly guess program type. Thus, also remove explicit
bpf_prog__set_type() call.

Signed-off-by: Andrii Nakryiko &lt;andriin@fb.com&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
Link: https://lore.kernel.org/bpf/20191021033902.3856966-7-andriin@fb.com
</content>
</entry>
<entry>
<title>selftests/bpf: switch tests to new bpf_object__open_{file, mem}() APIs</title>
<updated>2019-10-06T01:09:48Z</updated>
<author>
<name>Andrii Nakryiko</name>
</author>
<published>2019-10-04T22:40:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=928ca75e59d7cf10ad2c4b446c7b5d046e244027'/>
<id>urn:sha1:928ca75e59d7cf10ad2c4b446c7b5d046e244027</id>
<content type='text'>
Verify new bpf_object__open_mem() and bpf_object__open_file() APIs work
as expected by switching test_attach_probe test to use embedded BPF
object and bpf_object__open_mem() and test_reference_tracking to
bpf_object__open_file().

Signed-off-by: Andrii Nakryiko &lt;andriin@fb.com&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests/bpf: test_progs: remove global fail/success counts</title>
<updated>2019-08-27T22:35:40Z</updated>
<author>
<name>Stanislav Fomichev</name>
</author>
<published>2019-08-21T23:44:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d38835b75f67df16cef65c14aa64796a1832e6b4'/>
<id>urn:sha1:d38835b75f67df16cef65c14aa64796a1832e6b4</id>
<content type='text'>
Now that we have a global per-test/per-environment state, there
is no longer need to have global fail/success counters (and there
is no need to save/get the diff before/after the test).

Introduce CHECK_FAIL macro (suggested by Andrii) and covert existing tests
to it. CHECK_FAIL uses new test__fail() to record the failure.

Cc: Andrii Nakryiko &lt;andriin@fb.com&gt;
Signed-off-by: Stanislav Fomichev &lt;sdf@google.com&gt;
Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;
</content>
</entry>
<entry>
<title>selftest/bpf: centralize libbpf logging management for test_progs</title>
<updated>2019-07-28T05:36:19Z</updated>
<author>
<name>Andrii Nakryiko</name>
</author>
<published>2019-07-28T03:25:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=329e38f76cc2a77085264ce6e0dbe902c33fd7a3'/>
<id>urn:sha1:329e38f76cc2a77085264ce6e0dbe902c33fd7a3</id>
<content type='text'>
Make test_progs test runner own libbpf logging. Also introduce two
levels of verbosity: -v and -vv. First one will be used in subsequent
patches to enable test log output always. Second one increases verbosity
level of libbpf logging further to include debug output as well.

Signed-off-by: Andrii Nakryiko &lt;andriin@fb.com&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
</content>
</entry>
<entry>
<title>selftests: bpf: break up test_progs - misc</title>
<updated>2019-03-02T19:10:40Z</updated>
<author>
<name>Stanislav Fomichev</name>
</author>
<published>2019-03-02T03:42:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=886225bb0868fcf763bea62d18e57e4b5ef08a42'/>
<id>urn:sha1:886225bb0868fcf763bea62d18e57e4b5ef08a42</id>
<content type='text'>
Move the rest of prog tests into separate files.

Signed-off-by: Stanislav Fomichev &lt;sdf@google.com&gt;
Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;
</content>
</entry>
</feed>
