From f38265e80eb6f554036950f8c548bfadc344e5c7 Mon Sep 17 00:00:00 2001 From: Ihor Solodrai Date: Tue, 27 Jan 2026 15:30:29 -0800 Subject: [PATCH] run-vmtest: Run veristat twice So far veristat only ran in "csv" mode, for performance stats comparison. This is not always enough, because occasionally a target object fails to load, and there are no failure logs. --- run-vmtest/run-bpf-selftests.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run-vmtest/run-bpf-selftests.sh b/run-vmtest/run-bpf-selftests.sh index e7fb2a94..766c2190 100755 --- a/run-vmtest/run-bpf-selftests.sh +++ b/run-vmtest/run-bpf-selftests.sh @@ -112,6 +112,12 @@ run_veristat() { source "${VERISTAT_CONFIGS}/run_veristat.${VERISTAT_TARGET}.cfg" pushd "${VERISTAT_OBJECTS_DIR}" + # first run veristat with --verbose to get logs, ignoring errors + args=() + args+=(-v) + args+=(${VERISTAT_CFG_FILE:+-f@$VERISTAT_CFG_FILE}) + "${SELFTESTS_BPF}/veristat" "${args[@]}" ${VERISTAT_OBJECTS_GLOB} || true + args=() args+=(-o csv) args+=(-q)