mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
kcov-example: Print helpful error if kcov feature is missing
This commit is contained in:
parent
253d62cb18
commit
d5c687b50f
Notes:
sideshowbarker
2024-07-18 00:54:35 +09:00
Author: https://github.com/BenWiederhake
Commit: d5c687b50f
Pull-request: https://github.com/SerenityOS/serenity/pull/10994
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