-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add hacky test "fixing" cpuv4 flavor
By removing offending BPF program, sigh... Signed-off-by: Andrii Nakryiko <[email protected]>
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
ci/diffs/0001-ci-temporarily-remove-iter_arr_with_actual_elem_coun.patch
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,43 @@ | ||
From 174bc14e6f9877ebfc7ffe8ef5e1b24c62670b33 Mon Sep 17 00:00:00 2001 | ||
From: Andrii Nakryiko <[email protected]> | ||
Date: Mon, 11 Dec 2023 16:50:51 -0800 | ||
Subject: [PATCH 1/1] ci: temporarily remove iter_arr_with_actual_elem_count | ||
prog | ||
|
||
Remove iter_arr_with_actual_elem_count subtest which has problems in | ||
cpuv4 flavor on latest Clang due to recent Clang changes. | ||
|
||
Signed-off-by: Andrii Nakryiko <[email protected]> | ||
--- | ||
tools/testing/selftests/bpf/progs/iters.c | 17 ----------------- | ||
1 file changed, 17 deletions(-) | ||
|
||
diff --git a/tools/testing/selftests/bpf/progs/iters.c b/tools/testing/selftests/bpf/progs/iters.c | ||
index 3aca3dc145b5..34c0c65bacd9 100644 | ||
--- a/tools/testing/selftests/bpf/progs/iters.c | ||
+++ b/tools/testing/selftests/bpf/progs/iters.c | ||
@@ -1416,21 +1416,4 @@ struct { | ||
int n; | ||
} loop_data; | ||
|
||
-SEC("raw_tp") | ||
-__success | ||
-int iter_arr_with_actual_elem_count(const void *ctx) | ||
-{ | ||
- int i, n = loop_data.n, sum = 0; | ||
- | ||
- if (n > ARRAY_SIZE(loop_data.data)) | ||
- return 0; | ||
- | ||
- bpf_for(i, 0, n) { | ||
- /* no rechecking of i against ARRAY_SIZE(loop_data.n) */ | ||
- sum += loop_data.data[i]; | ||
- } | ||
- | ||
- return sum; | ||
-} | ||
- | ||
char _license[] SEC("license") = "GPL"; | ||
-- | ||
2.34.1 | ||
|