Skip to content

Commit

Permalink
ci: add hacky test "fixing" cpuv4 flavor
Browse files Browse the repository at this point in the history
By removing offending BPF program, sigh...

Signed-off-by: Andrii Nakryiko <[email protected]>
  • Loading branch information
anakryiko committed Dec 12, 2023
1 parent 1afb31a commit d93f74a
Showing 1 changed file with 43 additions and 0 deletions.
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

0 comments on commit d93f74a

Please sign in to comment.