<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in testing_helpers.h</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>4192bb29 - selftests/bpf: Provide a generic [un]load_module helper</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/bpf/testing_helpers.h#4192bb29</link>
        <description>selftests/bpf: Provide a generic [un]load_module helperGeneralize the previous [un]load_bpf_testmod() helpers (intesting_helpers.c) to the more generic [un]load_module(), which canload an arbitrary kernel module by name. This allows future selfteststo more easily load custom kernel modules other than bpf_testmod.ko.Refactor [un]load_bpf_testmod() to wrap this new helper.Signed-off-by: Simon Sundberg &lt;simon.sundberg@kau.se&gt;Acked-by: Jiri Olsa &lt;jolsa@kernel.org&gt;Acked-by: Kumar Kartikeya Dwivedi &lt;memxor@gmail.com&gt;Signed-off-by: Toke H&#248;iland-J&#248;rgensen &lt;toke@redhat.com&gt;Link: https://lore.kernel.org/r/20241010-fix-kfunc-btf-caching-for-modules-v2-2-745af6c1af98@redhat.comSigned-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;

            List of files:
            /linux-6.15/tools/testing/selftests/bpf/testing_helpers.h</description>
        <pubDate>Thu, 10 Oct 2024 13:27:08 +0000</pubDate>
        <dc:creator>Simon Sundberg &lt;simon.sundberg@kau.se&gt;</dc:creator>
    </item>
<item>
        <title>e9bbda13 - selftests/bpf: Test case for lacking CFI stub functions.</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/bpf/testing_helpers.h#e9bbda13</link>
        <description>selftests/bpf: Test case for lacking CFI stub functions.Ensure struct_ops rejects the registration of struct_ops types withoutproper CFI stub functions.bpf_test_no_cfi.ko is a module that attempts to register a struct_ops typecalled &quot;bpf_test_no_cfi_ops&quot; with cfi_stubs of NULL and non-NULL value.The NULL one should fail, and the non-NULL one should succeed. The modulecan only be loaded successfully if these registrations yield the expectedresults.Signed-off-by: Kui-Feng Lee &lt;thinker.li@gmail.com&gt;Link: https://lore.kernel.org/r/20240222021105.1180475-3-thinker.li@gmail.comSigned-off-by: Martin KaFai Lau &lt;martin.lau@kernel.org&gt;

            List of files:
            /linux-6.15/tools/testing/selftests/bpf/testing_helpers.h</description>
        <pubDate>Thu, 22 Feb 2024 02:11:05 +0000</pubDate>
        <dc:creator>Kui-Feng Lee &lt;thinker.li@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>15b4f88d - selftests/bpf: Move is_jit_enabled() into testing_helpers</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/bpf/testing_helpers.h#15b4f88d</link>
        <description>selftests/bpf: Move is_jit_enabled() into testing_helpersCurrently, is_jit_enabled() is only used in test_progs, move it intotesting_helpers so that it can be used in test_verifier. While at it,remove the second argument &quot;0&quot; of open() as Hou Tao suggested.Signed-off-by: Tiezhu Yang &lt;yangtiezhu@loongson.cn&gt;Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;Acked-by: Hou Tao &lt;houtao1@huawei.com&gt;Acked-by: Song Liu &lt;song@kernel.org&gt;Link: https://lore.kernel.org/bpf/20240123090351.2207-2-yangtiezhu@loongson.cn

            List of files:
            /linux-6.15/tools/testing/selftests/bpf/testing_helpers.h</description>
        <pubDate>Tue, 23 Jan 2024 09:03:50 +0000</pubDate>
        <dc:creator>Tiezhu Yang &lt;yangtiezhu@loongson.cn&gt;</dc:creator>
    </item>
<item>
        <title>56d3e44a - selftests/bpf: detect testing prog flags support</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/bpf/testing_helpers.h#56d3e44a</link>
        <description>selftests/bpf: detect testing prog flags supportVarious tests specify extra testing prog_flags when loading BPFprograms, like BPF_F_TEST_RND_HI32, and more recently alsoBPF_F_TEST_REG_INVARIANTS. While BPF_F_TEST_RND_HI32 is old enough tonot cause much problem on older kernels, BPF_F_TEST_REG_INVARIANTS isvery fresh and unconditionally specifying it causes selftests to fail oneven slightly outdated kernels.This breaks libbpf CI test against 4.9 and 5.15 kernels, it can breaksome local development (done outside of VM), etc.To prevent this, and guard against similar problems in the future, doruntime detection of supported &quot;testing flags&quot;, and only provide thosethat host kernel recognizes.Acked-by: Song Liu &lt;song@kernel.org&gt;Acked-by: Jiri Olsa &lt;jolsa@kernel.org&gt;Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;Link: https://lore.kernel.org/r/20240109231738.575844-1-andrii@kernel.orgSigned-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;

            List of files:
            /linux-6.15/tools/testing/selftests/bpf/testing_helpers.h</description>
        <pubDate>Tue, 09 Jan 2024 23:17:38 +0000</pubDate>
        <dc:creator>Andrii Nakryiko &lt;andrii@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>b4b7a409 - selftests/bpf: Factor out get_xlated_program() helper</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/bpf/testing_helpers.h#b4b7a409</link>
        <description>selftests/bpf: Factor out get_xlated_program() helperBoth test_verifier and test_progs use get_xlated_program(), so movingthe helper into testing_helpers.h to reuse it.Acked-by: Eduard Zingerman &lt;eddyz87@gmail.com&gt;Signed-off-by: Hou Tao &lt;houtao1@huawei.com&gt;Link: https://lore.kernel.org/r/20240105104819.3916743-3-houtao@huaweicloud.comSigned-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;

            List of files:
            /linux-6.15/tools/testing/selftests/bpf/testing_helpers.h</description>
        <pubDate>Fri, 05 Jan 2024 10:48:18 +0000</pubDate>
        <dc:creator>Hou Tao &lt;houtao1@huawei.com&gt;</dc:creator>
    </item>
<item>
        <title>4c6612f6 - selftests/bpf: Check VLAN tag and proto in xdp_metadata</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/bpf/testing_helpers.h#4c6612f6</link>
        <description>selftests/bpf: Check VLAN tag and proto in xdp_metadataVerify, whether VLAN tag and proto are set correctly.To simulate &quot;stripped&quot; VLAN tag on veth, send test packet from VLANinterface.Also, add TO_STR() macro for convenience.Acked-by: Stanislav Fomichev &lt;sdf@google.com&gt;Signed-off-by: Larysa Zaremba &lt;larysa.zaremba@intel.com&gt;Link: https://lore.kernel.org/r/20231205210847.28460-19-larysa.zaremba@intel.comSigned-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;

            List of files:
            /linux-6.15/tools/testing/selftests/bpf/testing_helpers.h</description>
        <pubDate>Tue, 05 Dec 2023 21:08:47 +0000</pubDate>
        <dc:creator>Larysa Zaremba &lt;larysa.zaremba@intel.com&gt;</dc:creator>
    </item>
<item>
        <title>3830d04a - selftests/bpf: Move get_time_ns to testing_helpers.h</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/bpf/testing_helpers.h#3830d04a</link>
        <description>selftests/bpf: Move get_time_ns to testing_helpers.hWe&apos;d like to have single copy of get_time_ns used b bench and test_progs,but we can&apos;t just include bench.h, because of conflicting &apos;struct env&apos;objects.Moving get_time_ns to testing_helpers.h which is being included by bothbench and test_progs objects.Signed-off-by: Jiri Olsa &lt;jolsa@kernel.org&gt;Link: https://lore.kernel.org/r/20230809083440.3209381-19-jolsa@kernel.orgSigned-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;

            List of files:
            /linux-6.15/tools/testing/selftests/bpf/testing_helpers.h</description>
        <pubDate>Wed, 09 Aug 2023 08:34:30 +0000</pubDate>
        <dc:creator>Jiri Olsa &lt;jolsa@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>11642eb9 - selftests/bpf: Use un/load_bpf_testmod functions in tests</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/bpf/testing_helpers.h#11642eb9</link>
        <description>selftests/bpf: Use un/load_bpf_testmod functions in testsNow that we have un/load_bpf_testmod helpers in testing_helpers.h,we can use it in other tests and save some lines.Acked-by: David Vernet &lt;void@manifault.com&gt;Signed-off-by: Jiri Olsa &lt;jolsa@kernel.org&gt;Link: https://lore.kernel.org/r/20230515133756.1658301-7-jolsa@kernel.orgSigned-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;

            List of files:
            /linux-6.15/tools/testing/selftests/bpf/testing_helpers.h</description>
        <pubDate>Mon, 15 May 2023 13:37:52 +0000</pubDate>
        <dc:creator>Jiri Olsa &lt;jolsa@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>45db3109 - selftests/bpf: Move test_progs helpers to testing_helpers object</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/bpf/testing_helpers.h#45db3109</link>
        <description>selftests/bpf: Move test_progs helpers to testing_helpers objectMoving test_progs helpers to testing_helpers object so they can beused from test_verifier in following changes.Also adding missing ifndef header guard to testing_helpers.h header.Using stderr instead of env.stderr because un/load_bpf_testmod helperswill be used outside test_progs. Also at the point of calling themin test_progs the std files are not hijacked yet and stderr is thesame as env.stderr.Acked-by: David Vernet &lt;void@manifault.com&gt;Signed-off-by: Jiri Olsa &lt;jolsa@kernel.org&gt;Link: https://lore.kernel.org/r/20230515133756.1658301-4-jolsa@kernel.orgSigned-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;

            List of files:
            /linux-6.15/tools/testing/selftests/bpf/testing_helpers.h</description>
        <pubDate>Mon, 15 May 2023 13:37:49 +0000</pubDate>
        <dc:creator>Jiri Olsa &lt;jolsa@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>64276f01 - selftests/bpf: Test_progs can read test lists from file</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/bpf/testing_helpers.h#64276f01</link>
        <description>selftests/bpf: Test_progs can read test lists from fileImprove test selection logic when using -a/-b/-d/-t options.The list of tests to include or exclude can now be read from a file,specified as @&lt;filename&gt;.The file contains one name (or wildcard pattern) per line, andcomments beginning with # are ignored.These options can be passed multiple times to read more than one file.Signed-off-by: Stephen Veiss &lt;sveiss@meta.com&gt;Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;Acked-by: Yonghong Song &lt;yhs@fb.com&gt;Link: https://lore.kernel.org/bpf/20230427225333.3506052-3-sveiss@meta.com

            List of files:
            /linux-6.15/tools/testing/selftests/bpf/testing_helpers.h</description>
        <pubDate>Thu, 27 Apr 2023 22:53:33 +0000</pubDate>
        <dc:creator>Stephen Veiss &lt;sveiss@meta.com&gt;</dc:creator>
    </item>
<item>
        <title>de6d014a - selftests/bpf: Use read_perf_max_sample_freq() in perf_event_stackmap</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/bpf/testing_helpers.h#de6d014a</link>
        <description>selftests/bpf: Use read_perf_max_sample_freq() in perf_event_stackmapCurrently, perf_event sample period in perf_event_stackmap is set too lowthat the test fails randomly. Fix this by using the max sample frequency,from read_perf_max_sample_freq().Move read_perf_max_sample_freq() to testing_helpers.c. Replace the CHECK()with if-printf, as CHECK is not available in testing_helpers.c.Fixes: 1da4864c2b20 (&quot;selftests/bpf: Add callchain_stackid&quot;)Signed-off-by: Song Liu &lt;song@kernel.org&gt;Signed-off-by: Daniel Borkmann &lt;daniel@iogearbox.net&gt;Link: https://lore.kernel.org/bpf/20230412210423.900851-2-song@kernel.org

            List of files:
            /linux-6.15/tools/testing/selftests/bpf/testing_helpers.h</description>
        <pubDate>Wed, 12 Apr 2023 21:04:21 +0000</pubDate>
        <dc:creator>Song Liu &lt;song@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>61ddff37 - selftests/bpf: Improve by-name subtest selection logic in prog_tests</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/bpf/testing_helpers.h#61ddff37</link>
        <description>selftests/bpf: Improve by-name subtest selection logic in prog_testsImprove subtest selection logic when using -t/-a/-d parameters.In particular, more than one subtest can be specified or acombination of tests / subtests.-a send_signal -d send_signal/send_signal_nmi* - runs send_signaltest without nmi tests-a send_signal/send_signal_nmi*,find_vma - runs two send_signalsubtests and find_vma test-a &apos;send_signal*&apos; -a find_vma -d send_signal/send_signal_nmi* -runs 2 send_signal test and find_vma test. Disables two send_signalnmi subtests-t send_signal -t find_vma - runs two *send_signal* tests and one*find_vma* testThis will allow us to have granular control over which subteststo disable in the CI system instead of disabling whole tests.Also, add new selftest to avoid possible regression whenchanging prog_test test name selection logic.Signed-off-by: Mykola Lysenko &lt;mykolal@fb.com&gt;Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;Link: https://lore.kernel.org/bpf/20220409001750.529930-1-mykolal@fb.com

            List of files:
            /linux-6.15/tools/testing/selftests/bpf/testing_helpers.h</description>
        <pubDate>Sat, 09 Apr 2022 00:17:49 +0000</pubDate>
        <dc:creator>Mykola Lysenko &lt;mykolal@fb.com&gt;</dc:creator>
    </item>
<item>
        <title>f87c1930 - selftests/bpf: Merge test_stub.c into testing_helpers.c</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/bpf/testing_helpers.h#f87c1930</link>
        <description>selftests/bpf: Merge test_stub.c into testing_helpers.cMove testing prog and object load wrappers (bpf_prog_test_load andbpf_test_load_program) into testing_helpers.{c,h} and get rid ofotherwise useless test_stub.c. Make testing_helpers.c available tonon-test_progs binaries as well.Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;Acked-by: Dave Marchevsky &lt;davemarchevsky@fb.com&gt;Link: https://lore.kernel.org/bpf/20211103220845.2676888-11-andrii@kernel.org

            List of files:
            /linux-6.15/tools/testing/selftests/bpf/testing_helpers.h</description>
        <pubDate>Wed, 03 Nov 2021 22:08:43 +0000</pubDate>
        <dc:creator>Andrii Nakryiko &lt;andrii@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>90806ccc - selftests/bpf: Add link detach tests for cgroup, netns, and xdp bpf_links</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/bpf/testing_helpers.h#90806ccc</link>
        <description>selftests/bpf: Add link detach tests for cgroup, netns, and xdp bpf_linksAdd bpf_link__detach() testing to selftests for cgroup, netns, and xdpbpf_links.Signed-off-by: Andrii Nakryiko &lt;andriin@fb.com&gt;Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;Acked-by: Song Liu &lt;songliubraving@fb.com&gt;Acked-by: John Fastabend &lt;john.fastabend@gmail.com&gt;Link: https://lore.kernel.org/bpf/20200731182830.286260-4-andriin@fb.com

            List of files:
            /linux-6.15/tools/testing/selftests/bpf/testing_helpers.h</description>
        <pubDate>Fri, 31 Jul 2020 18:28:28 +0000</pubDate>
        <dc:creator>Andrii Nakryiko &lt;andriin@fb.com&gt;</dc:creator>
    </item>
<item>
        <title>cd49291c - selftests/bpf: Extract parse_num_list into generic testing_helpers.c</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/testing/selftests/bpf/testing_helpers.h#cd49291c</link>
        <description>selftests/bpf: Extract parse_num_list into generic testing_helpers.cAdd testing_helpers.c, which will contain generic helpers for test runners andtests needing some common generic functionality, like parsing a set ofnumbers.Signed-off-by: Andrii Nakryiko &lt;andriin@fb.com&gt;Signed-off-by: Alexei Starovoitov &lt;ast@kernel.org&gt;Acked-by: Yonghong Song &lt;yhs@fb.com&gt;Link: https://lore.kernel.org/bpf/20200512192445.2351848-2-andriin@fb.com

            List of files:
            /linux-6.15/tools/testing/selftests/bpf/testing_helpers.h</description>
        <pubDate>Tue, 12 May 2020 19:24:42 +0000</pubDate>
        <dc:creator>Andrii Nakryiko &lt;andriin@fb.com&gt;</dc:creator>
    </item>
</channel>
</rss>
