diff options
author | Hongzhi.Song <hongzhi.song@windriver.com> | 2018-08-01 01:32:39 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-08-02 11:23:03 -0700 |
commit | 146de1dfdac3e640af1b082b3a0c8bcf4ee8dad3 (patch) | |
tree | 3a9fc67faa78357e9d1b30b1c233a3b272f19e84 /meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/0001-bpf-test_progs.c-add-support-for-musllibc.patch | |
parent | d3ae34eec2d312410da6cc1dd1c6fb85e8259261 (diff) | |
download | meta-openembedded-146de1dfdac3e640af1b082b3a0c8bcf4ee8dad3.tar.gz |
kernel-selftest: Add a recipe on kernel selftest
The recipe builds the framework for kernel-selftest. Now, it just
contains two sets of testcase, bpf and vm. We will append more to
this recipe.
The following kernel config fragments must be manually enabled,
i.e. in local.conf, to use this test suite.
KERNEL_FEATURES_append += "features/bpf/bpf.scc \
cfg/debug-kselftest.scc \
features/hugetlb/hugetlb.scc \
"
Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/0001-bpf-test_progs.c-add-support-for-musllibc.patch')
-rw-r--r-- | meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/0001-bpf-test_progs.c-add-support-for-musllibc.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/0001-bpf-test_progs.c-add-support-for-musllibc.patch b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/0001-bpf-test_progs.c-add-support-for-musllibc.patch new file mode 100644 index 000000000..5f2542681 --- /dev/null +++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest/0001-bpf-test_progs.c-add-support-for-musllibc.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From a2e6b8fde28b743b69990a4e16c296e099631ed4 Mon Sep 17 00:00:00 2001 | ||
2 | From: "Hongzhi.Song" <hongzhi.song@windriver.com> | ||
3 | Date: Mon, 23 Jul 2018 00:56:19 -0700 | ||
4 | Subject: [PATCH] bpf: test_progs.c add support for musllibc | ||
5 | |||
6 | Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com> | ||
7 | --- | ||
8 | tools/testing/selftests/bpf/test_progs.c | 1 + | ||
9 | 1 file changed, 1 insertion(+) | ||
10 | |||
11 | diff --git a/tools/testing/selftests/bpf/test_progs.c b/tools/testing/selftests/bpf/test_progs.c | ||
12 | index 11ee25c..21b27b7 100644 | ||
13 | --- a/tools/testing/selftests/bpf/test_progs.c | ||
14 | +++ b/tools/testing/selftests/bpf/test_progs.c | ||
15 | @@ -4,6 +4,7 @@ | ||
16 | * modify it under the terms of version 2 of the GNU General Public | ||
17 | * License as published by the Free Software Foundation. | ||
18 | */ | ||
19 | +#define __always_inline __inline __attribute__ ((__always_inline__)) | ||
20 | #include <stdio.h> | ||
21 | #include <unistd.h> | ||
22 | #include <errno.h> | ||
23 | -- | ||
24 | 2.11.0 | ||
25 | |||