Skip to content

Commit edc99e7

Browse files
committed
selftest: add file location diagnostic for KCOV local-*.log
The kcov.so destructor should write local-<TID>.log files but they don't exist in the expected directory. Add: - pwd before vock run (confirm CWD) - find / -name 'local-*.log' (find where files actually are) - ls kerncov.log (check merge output) This will reveal if files are written to a different directory. Signed-off-by: Yunseong Kim <yunseong.kim@est.tech>
1 parent d2f9311 commit edc99e7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

selftest/run.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,11 @@ def test_default(vock_dir, kernel_src, arch_info, syscall_on):
273273
"bash", "-c",
274274
f"rm -f kerncov.log coverage.html trace.log trace.syz local-*.log remote-*.log && "
275275
f"{sud_pre}{crypto_prepare()} && "
276+
f"pwd && "
276277
f"{vock_dir}/vock --mode kcov --syzlang --syscall {backend} --vmlinux {vmlinux} --kernel-src {kernel_src} {CRYPTO_TARGET} 2>&1; "
277278
f"echo KCOV_PCS=$(wc -l < kerncov.log 2>/dev/null || echo 0) && "
278-
f"ls -la local-*.log remote-*.log 2>&1 && "
279+
f"echo CWD=$(pwd) && ls -la local-*.log remote-*.log kerncov.log 2>&1 && "
280+
f"find / -name 'local-*.log' 2>/dev/null | head -5 && "
279281
f"[ -s trace.log ] && echo TRACE_OK=$(wc -l < trace.log) && "
280282
f"grep -q ') = ' trace.log 2>/dev/null && echo FMT_OK && "
281283
f"[ -s trace.syz ] && echo SYZ_OK=$(wc -l < trace.syz) && "

0 commit comments

Comments
 (0)