Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 734 Bytes

full-system-instrumentation.md

File metadata and controls

22 lines (16 loc) · 734 Bytes

Full system instrumentation with kcov

Using dyninst, Kcov can instrument all binaries with very low overhead for embedded systems.

Instrumenting binaries for a target system

If your binaries (with debug symbols) are in e.g., sysroot, you can instrument binaries using

kcov-system --system-record /tmp/out-sysroot sysroot

After this finishes, build your filesystem (squashfs etc) using the instrumented binaries and install and run on your target.

Creating a report from the collected data

Copy /tmp/kcov-data from your target system and run

kcov-system --system-report /tmp/kcov /tmp/kcov-data