Skip to content

Commit 4cbc4b8

Browse files
authored
veristat-scx: update .bpf.o collection script (#411)
sched_ext recently made changes to their build process, and there is a pending update of libbpf/ci/build-scx-scheds action [1]. Update script that collects .bpf.o objects from sched_ext build output to not miss any objects. [1] libbpf/ci#202 Signed-off-by: Ihor Solodrai <[email protected]>
1 parent f0d9e40 commit 4cbc4b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/scripts/collect-scx-bpf-progs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ PROGS_DIR=$1
66

77
mkdir -p "${PROGS_DIR}"
88

9-
find "${SCX_BUILD_OUTPUT}" -type f -name "bpf.bpf.o" -print0 | \
9+
find "${SCX_BUILD_OUTPUT}" -type f -name "*.bpf.o" -printf '%P\0' | \
1010
while IFS= read -r -d '' prog; do
11-
obj_name=$(echo "$prog" | grep -o "scx.*.bpf.o" | tr / _)
12-
cp -v "$prog" "${PROGS_DIR}/${obj_name}"
11+
obj_name=$(echo "${prog}" | tr / _)
12+
cp -v "${SCX_BUILD_OUTPUT}/$prog" "${PROGS_DIR}/${obj_name}"
1313
done

0 commit comments

Comments
 (0)