Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6372

How to reset kcov buffer

$
0
0

In kcov, how can I safely reset the *cover buffer where is stored the coverage? I want to do something like this

while(1){ //kcov setup stuff... ioctl(fd, KCOV_ENABLE, KCOV_TRACE_PC) //syscall that triggers the coverage and fills cover[] n = __atomic_load_n(&cover[0], __ATOMIC_RELAXED); ioctl(fd, KCOV_DISABLE, 0)}

Viewing all articles
Browse latest Browse all 6372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>