<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/tools/testing/selftests/bpf/vmtest.sh, branch linus/master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/tools/testing/selftests/bpf/vmtest.sh?h=linus%2Fmaster</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/tools/testing/selftests/bpf/vmtest.sh?h=linus%2Fmaster'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2022-02-17T18:56:18Z</updated>
<entry>
<title>selftests/bpf: Fix vmtest.sh to launch smp vm.</title>
<updated>2022-02-17T18:56:18Z</updated>
<author>
<name>Yucong Sun</name>
<email>fallentree@fb.com</email>
</author>
<published>2022-02-17T15:52:12Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=b38101c57acf9543ed7c4b0f43fd65ea27240772'/>
<id>urn:sha1:b38101c57acf9543ed7c4b0f43fd65ea27240772</id>
<content type='text'>
Fix typo in vmtest.sh to make sure it launch proper vm with 8 cpus.

Signed-off-by: Yucong Sun &lt;fallentree@fb.com&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20220217155212.2309672-1-fallentree@fb.com
</content>
</entry>
<entry>
<title>selftests/bpf: Correct the INDEX address in vmtest.sh</title>
<updated>2021-12-20T19:01:31Z</updated>
<author>
<name>Pu Lehui</name>
<email>pulehui@huawei.com</email>
</author>
<published>2021-12-20T05:08:03Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=426b87b111b0523f957354bc97ec7eb16e8be1e2'/>
<id>urn:sha1:426b87b111b0523f957354bc97ec7eb16e8be1e2</id>
<content type='text'>
Migration of vmtest to libbpf/ci will change the address
of INDEX in vmtest.sh, which will cause vmtest.sh to not
work due to the failure of rootfs fetching.

Signed-off-by: Pu Lehui &lt;pulehui@huawei.com&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Tested-by: Lorenzo Fontana &lt;lorenzo.fontana@elastic.co&gt;
Link: https://lore.kernel.org/bpf/20211220050803.2670677-1-pulehui@huawei.com
</content>
</entry>
<entry>
<title>selfetests/bpf: Adapt vmtest.sh to s390 libbpf CI changes</title>
<updated>2021-11-18T17:57:04Z</updated>
<author>
<name>Ilya Leoshkevich</name>
<email>iii@linux.ibm.com</email>
</author>
<published>2021-11-18T11:52:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=29ad850a5cae84757bcd4c60e0d74232ef8c5157'/>
<id>urn:sha1:29ad850a5cae84757bcd4c60e0d74232ef8c5157</id>
<content type='text'>
[1] added s390 support to libbpf CI and added an ${ARCH} prefix to a
number of paths and identifiers in libbpf GitHub repo, which vmtest.sh
relies upon. Update these and make use of the new s390 support.

[1] https://github.com/libbpf/libbpf/pull/204

Co-developed-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Signed-off-by: Ilya Leoshkevich &lt;iii@linux.ibm.com&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20211118115225.1349726-1-iii@linux.ibm.com
</content>
</entry>
<entry>
<title>selfetests/bpf: Update vmtest.sh defaults</title>
<updated>2021-10-27T18:58:44Z</updated>
<author>
<name>Yucong Sun</name>
<email>sunyucong@gmail.com</email>
</author>
<published>2021-10-25T22:33:42Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=547208a386fa2066fa2d6d48bda145f78c38604f'/>
<id>urn:sha1:547208a386fa2066fa2d6d48bda145f78c38604f</id>
<content type='text'>
Increase memory to 4G, 8 SMP core with host cpu passthrough. This
make it run faster in parallel mode and more likely to succeed.

Signed-off-by: Yucong Sun &lt;sunyucong@gmail.com&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20211025223345.2136168-2-fallentree@fb.com
</content>
</entry>
<entry>
<title>selftests/bpf: Add an option for a debug shell in vmtest.sh</title>
<updated>2021-03-31T05:05:23Z</updated>
<author>
<name>KP Singh</name>
<email>kpsingh@kernel.org</email>
</author>
<published>2021-03-23T01:47:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=63f8af0fc34197a276674fa0d4d865aeff1f0172'/>
<id>urn:sha1:63f8af0fc34197a276674fa0d4d865aeff1f0172</id>
<content type='text'>
The newly introduced -s command line option starts an interactive shell.
If a command is specified, the shell is started after the command
finishes executing. It's useful to have a shell especially when
debugging failing tests or developing new tests.

Since the user may terminate the VM forcefully, an extra "sync" is added
after the execution of the command to persist any logs from the command
into the log file.

Signed-off-by: KP Singh &lt;kpsingh@kernel.org&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20210323014752.3198283-1-kpsingh@kernel.org
</content>
</entry>
<entry>
<title>selftests/bpf: Propagate error code of the command to vmtest.sh</title>
<updated>2021-02-26T21:12:52Z</updated>
<author>
<name>KP Singh</name>
<email>kpsingh@google.com</email>
</author>
<published>2021-02-25T16:19:47Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=2854436612c4d2606c9246ce2976ab6634276337'/>
<id>urn:sha1:2854436612c4d2606c9246ce2976ab6634276337</id>
<content type='text'>
When vmtest.sh ran a command in a VM, it did not record or propagate the
error code of the command. This made the script less "script-able". The
script now saves the error code of the said command in a file in the VM,
copies the file back to the host and (when available) uses this error
code instead of its own.

Signed-off-by: KP Singh &lt;kpsingh@google.com&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Link: https://lore.kernel.org/bpf/20210225161947.1778590-1-kpsingh@kernel.org
</content>
</entry>
<entry>
<title>bpf: Helper script for running BPF presubmit tests</title>
<updated>2021-02-05T00:03:16Z</updated>
<author>
<name>KP Singh</name>
<email>kpsingh@kernel.org</email>
</author>
<published>2021-02-04T19:45:43Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=c9709f52386d9cc944417f45b979d821d1d08c46'/>
<id>urn:sha1:c9709f52386d9cc944417f45b979d821d1d08c46</id>
<content type='text'>
The script runs the BPF selftests locally on the same kernel image
as they would run post submit in the BPF continuous integration
framework.

The goal of the script is to allow contributors to run selftests locally
in the same environment to check if their changes would end up breaking
the BPF CI and reduce the back-and-forth between the maintainers and the
developers.

Signed-off-by: KP Singh &lt;kpsingh@kernel.org&gt;
Signed-off-by: Andrii Nakryiko &lt;andrii@kernel.org&gt;
Tested-by: Jiri Olsa &lt;jolsa@redhat.com&gt;
Link: https://lore.kernel.org/bpf/20210204194544.3383814-2-kpsingh@kernel.org
</content>
</entry>
</feed>
