summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-11-20 23:50:16 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-21 13:52:25 +0100
commit253d62cb18e6afed31ddc5ff5459c6d73c124a06 (patch)
tree4df6a7dffd6a64d143871fc8ab916ed0a938e73e
parent1100dd4a7257805825fb0dede521ea73d9b55d1b (diff)
downloadserenity-253d62cb18e6afed31ddc5ff5459c6d73c124a06.zip
SystemServer+kcov-example: Make /dev/kcov0 available again
Apparently this device entry got lost while converting to DevTmpFS.
-rw-r--r--Userland/Services/SystemServer/main.cpp4
-rw-r--r--Userland/Utilities/kcov-example.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/Userland/Services/SystemServer/main.cpp b/Userland/Services/SystemServer/main.cpp
index 38feeea418..f483cf7adb 100644
--- a/Userland/Services/SystemServer/main.cpp
+++ b/Userland/Services/SystemServer/main.cpp
@@ -150,6 +150,10 @@ static void populate_devfs_block_devices()
create_devfs_block_device(String::formatted("/dev/fb{}", minor_number), 0666, 29, minor_number);
break;
}
+ case 30: {
+ create_devfs_block_device(String::formatted("/dev/kcov{}", minor_number), 0666, 30, minor_number);
+ break;
+ }
case 3: {
create_devfs_block_device(String::formatted("/dev/hd{}", offset_character_with_number('a', minor_number)), 0600, 3, minor_number);
break;
diff --git a/Userland/Utilities/kcov-example.cpp b/Userland/Utilities/kcov-example.cpp
index 3bff9728bd..577a8c4435 100644
--- a/Userland/Utilities/kcov-example.cpp
+++ b/Userland/Utilities/kcov-example.cpp
@@ -18,7 +18,7 @@ int main(void)
{
constexpr size_t num_entries = 1024 * 100;
- int fd = open("/dev/kcov", O_RDWR);
+ int fd = open("/dev/kcov0", O_RDWR);
if (fd == -1) {
perror("open");
return 1;