projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
737e0f9
)
selftests/bpf: Use the 25th bit in the "invalid BTF_INFO" test
author
Ilya Leoshkevich
<iii@linux.ibm.com>
Fri, 26 Feb 2021 20:22:51 +0000
(21:22 +0100)
committer
Alexei Starovoitov
<ast@kernel.org>
Fri, 5 Mar 2021 01:58:15 +0000
(17:58 -0800)
The bit being checked by this test is no longer reserved after
introducing BTF_KIND_FLOAT, so use the next one instead.
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link:
https://lore.kernel.org/bpf/20210226202256.116518-6-iii@linux.ibm.com
tools/testing/selftests/bpf/prog_tests/btf.c
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/bpf/prog_tests/btf.c
b/tools/testing/selftests/bpf/prog_tests/btf.c
index 6a7ee7420701d7554984fce67a5ce485532af9f7..c294067361386a883a93cc2eacf0b49be8ce999e 100644
(file)
--- a/
tools/testing/selftests/bpf/prog_tests/btf.c
+++ b/
tools/testing/selftests/bpf/prog_tests/btf.c
@@
-1903,7
+1903,7
@@
static struct btf_raw_test raw_tests[] = {
.raw_types = {
/* int */ /* [1] */
BTF_TYPE_INT_ENC(0, BTF_INT_SIGNED, 0, 32, 4),
- BTF_TYPE_ENC(0, 0x
1
0000000, 4),
+ BTF_TYPE_ENC(0, 0x
2
0000000, 4),
BTF_END_RAW,
},
.str_sec = "",