-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel-test: denylist and adjustments for GCC BPF
- Loading branch information
Showing
6 changed files
with
1,166 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
From 1cbbffc89dc42c353031067a49cdc3b912b07321 Mon Sep 17 00:00:00 2001 | ||
From: Ihor Solodrai <[email protected]> | ||
Date: Tue, 31 Dec 2024 16:24:43 -0800 | ||
Subject: [PATCH] selftests/bpf: GCC BPF build | ||
|
||
--- | ||
tools/testing/selftests/bpf/Makefile | 10 +++++++++- | ||
1 file changed, 9 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile | ||
index 75016962f795..c4f4003a8c2e 100644 | ||
--- a/tools/testing/selftests/bpf/Makefile | ||
+++ b/tools/testing/selftests/bpf/Makefile | ||
@@ -102,6 +102,14 @@ progs/btf_dump_test_case_packing.c-bpf_gcc-CFLAGS := -Wno-error | ||
progs/btf_dump_test_case_padding.c-bpf_gcc-CFLAGS := -Wno-error | ||
progs/btf_dump_test_case_syntax.c-bpf_gcc-CFLAGS := -Wno-error | ||
|
||
+ | ||
+progs/test_cls_redirect.c-CFLAGS := -nostdinc | ||
+progs/test_cls_redirect_dynptr.c-CFLAGS := -nostdinc | ||
+progs/test_cls_redirect_subprogs.c-CFLAGS := -nostdinc | ||
+ | ||
+progs/verifier_bpf_fastcall.c-CFLAGS := -Wno-error | ||
+progs/verifier_search_pruning.c-CFLAGS := -Wno-error | ||
+ | ||
# The following tests do type-punning, via the __imm_insn macro, from | ||
# `struct bpf_insn' to long and then uses the value. This triggers an | ||
# "is used uninitialized" warning in GCC due to strict-aliasing | ||
@@ -502,7 +510,7 @@ endef | ||
# Build BPF object using GCC | ||
define GCC_BPF_BUILD_RULE | ||
$(call msg,GCC-BPF,$4,$2) | ||
- $(Q)$(BPF_GCC) $3 -DBPF_NO_PRESERVE_ACCESS_INDEX -Wno-attributes -O2 -c $1 -o $2 | ||
+ $(Q)$(BPF_GCC) $3 -DBPF_NO_PRESERVE_ACCESS_INDEX -Wno-attributes -O2 -std=gnu17 -c $1 -o $2 | ||
endef | ||
|
||
SKEL_BLACKLIST := btf__% test_pinning_invalid.c test_sk_assign.c | ||
-- | ||
2.47.1 | ||
|
Oops, something went wrong.