[PATCH bpf-next v2] selftests/bpf: Drop return in bpf_testmod_exit

2024-01-28 Thread Geliang Tang
From: Geliang Tang bpf_testmod_exit() should not have a return value, so this patch drops this useless 'return' in it. Acked-by: Jiri Olsa Signed-off-by: Geliang Tang --- v2: - rebase on top of latest bpf-next/master. --- tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c | 2 +- 1 file c

Re: [PATCH bpf-next v3 2/2] selftests/bpf: Make install target copy test_progs extra files

2024-01-28 Thread Björn Töpel
Björn Töpel writes: > Björn Töpel writes: > >> From: Björn Töpel >> >> Currently, "make install" does not install the required test_progs >> "extra files" (e.g. kernel modules, helper shell scripts, etc.) for >> the BPF machine flavors (e.g. cpuv4). >> >> Add the missing "extra files" dependenc

[PATCH AUTOSEL 6.7 08/39] selftests/sgx: Fix linker script asserts

2024-01-28 Thread Sasha Levin
From: Jo Van Bulck [ Upstream commit 9fd552ee32c6c1e27c125016b87d295bea6faea7 ] DEFINED only considers symbols, not section names. Hence, replace the check for .got.plt with the _GLOBAL_OFFSET_TABLE_ symbol and remove other (non-essential) asserts. Signed-off-by: Jo Van Bulck Signed-off-by: Da

[PATCH AUTOSEL 6.6 08/31] selftests/sgx: Fix linker script asserts

2024-01-28 Thread Sasha Levin
From: Jo Van Bulck [ Upstream commit 9fd552ee32c6c1e27c125016b87d295bea6faea7 ] DEFINED only considers symbols, not section names. Hence, replace the check for .got.plt with the _GLOBAL_OFFSET_TABLE_ symbol and remove other (non-essential) asserts. Signed-off-by: Jo Van Bulck Signed-off-by: Da

[PATCH AUTOSEL 6.1 07/27] selftests/sgx: Fix linker script asserts

2024-01-28 Thread Sasha Levin
From: Jo Van Bulck [ Upstream commit 9fd552ee32c6c1e27c125016b87d295bea6faea7 ] DEFINED only considers symbols, not section names. Hence, replace the check for .got.plt with the _GLOBAL_OFFSET_TABLE_ symbol and remove other (non-essential) asserts. Signed-off-by: Jo Van Bulck Signed-off-by: Da

[PATCH AUTOSEL 5.15 06/19] selftests/sgx: Fix linker script asserts

2024-01-28 Thread Sasha Levin
From: Jo Van Bulck [ Upstream commit 9fd552ee32c6c1e27c125016b87d295bea6faea7 ] DEFINED only considers symbols, not section names. Hence, replace the check for .got.plt with the _GLOBAL_OFFSET_TABLE_ symbol and remove other (non-essential) asserts. Signed-off-by: Jo Van Bulck Signed-off-by: Da

[PATCH bpf-next v4 0/3] Annotate kfuncs in .BTF_ids section

2024-01-28 Thread Daniel Xu
=== Description === This is a bpf-treewide change that annotates all kfuncs as such inside .BTF_ids. This annotation eventually allows us to automatically generate kfunc prototypes from bpftool. We store this metadata inside a yet-unused flags field inside struct btf_id_set8 (thanks Kumar!). paho

[PATCH bpf-next v4 3/3] bpf: treewide: Annotate BPF kfuncs in BTF

2024-01-28 Thread Daniel Xu
This commit marks kfuncs as such inside the .BTF_ids section. The upshot of these annotations is that we'll be able to automatically generate kfunc prototypes for downstream users. The process is as follows: 1. In source, use BTF_KFUNCS_START/END macro pair to mark kfuncs 2. During build, pahole i

Re: [PATCH v6 4/4] KVM: selftests: Add test cases for LoongArch

2024-01-28 Thread maobibo
On 2024/1/27 上午4:28, Sean Christopherson wrote: On Thu, Jan 25, 2024, Bibo Mao wrote: diff --git a/tools/testing/selftests/kvm/set_memory_region_test.c b/tools/testing/selftests/kvm/set_memory_region_test.c index 075b80dbe237..7b09e59296be 100644 --- a/tools/testing/selftests/kvm/set_memory_

Re: [PATCH v6 0/4] VM: selftests: Add LoongArch support

2024-01-28 Thread maobibo
On 2024/1/27 上午4:32, Sean Christopherson wrote: On Thu, Jan 25, 2024, Bibo Mao wrote: --- Tianrui Zhao (4): KVM: selftests: Add KVM selftests header files for LoongArch KVM: selftests: Add core KVM selftests support for LoongArch KVM: selftests: Add ucall test support for LoongArch

[PATCH bpf-next v4 0/3] Fix make install target for BPF selftests

2024-01-28 Thread Björn Töpel
From: Björn Töpel Here's the fourth try. The "make install" target for the BPF selftests are missing a bunch of files, which makes the BPF machine flavor fail (e.g. cpuv4). This series aims to fix that, but explicitly installing bpftool, all the BPF programs, and the utilities defined by the TRU

[PATCH bpf-next v4 1/3] selftests/bpf: Remove incorrect object path

2024-01-28 Thread Björn Töpel
From: Björn Töpel The glob path, progs/*.bpf.o, is no longer a correct path. The BPF object files reside in the top directory, or in the per-flavor directory (e.g. cpuv4). Remove the incorrect object path. Signed-off-by: Björn Töpel --- tools/testing/selftests/bpf/Makefile | 3 +-- 1 file cha

[PATCH bpf-next v4 2/3] selftests/bpf: Make install target copy test_progs extra files

2024-01-28 Thread Björn Töpel
From: Björn Töpel Currently, "make install" does not install the required test_progs "extra files" (e.g. kernel modules, helper shell scripts, etc.) for the BPF machine flavors (e.g. cpuv4). Add the missing "extra files" dependencies to rsync, called from the install target. Unfortunately, ksel

[PATCH bpf-next v4 3/3] selftests/bpf: Make install target copy bpftool

2024-01-28 Thread Björn Töpel
From: Björn Töpel bpftool is required for some test_progs tests. Make sure it is installed as part of the install target. Signed-off-by: Björn Töpel --- tools/testing/selftests/bpf/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/Makefi