Hi,
a new userspace project named vock (anagram of kcov) [1] is available to
support Linux kernel coverage analysis.
vock (an anagram of kcov) provides a lightweight wrapper that can attach to
arbitrary userspace programs. By using LD_PRELOAD, it collects KCOV coverage
transparently, while KCOV REMOTE coverage is obtained through a dedicated
driver program. After the target command finishes, the collected coverage
is reported directly in the terminal.
Example usage:
$ vock mkdir mydir
$ vock smbclient //server/share -c 'put local_filename remote_filename'
Requirements:
- The kernel must be built with CONFIG_KCOV and CONFIG_DEBUG_INFO enabled.
A demonstration video is available [2]. vock repository details can be
found at github [1].
[1]
https://github.com/kzall0c/vock
[2]
https://youtu.be/QvWtFuQy2r8