mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
kcov-example: Print helpful error if kcov feature is missing
This commit is contained in:
parent
253d62cb18
commit
d5c687b50f
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ int main(void)
|
|||
int fd = open("/dev/kcov0", O_RDWR);
|
||||
if (fd == -1) {
|
||||
perror("open");
|
||||
fprintf(stderr, "Could not open /dev/kcov0 - is ENABLE_KERNEL_COVERAGE_COLLECTION enabled?\n");
|
||||
return 1;
|
||||
}
|
||||
if (ioctl(fd, KCOV_SETBUFSIZE, num_entries) == -1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue