summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-13 13:09:00 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-19 22:51:42 +0200
commit277f333b2bbf2ca24d0d4c7695edbaed21dc0ba3 (patch)
tree8b66ccf59698ae554250ccf9163f9d42ec0e4ae4 /Userland/Libraries/LibC
parent572bbf28ccd1cd5f8e4f17a38d0fbd989b1d56bf (diff)
downloadserenity-277f333b2bbf2ca24d0d4c7695edbaed21dc0ba3.zip
Kernel: Add support for profiling kmalloc()/kfree()
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r--Userland/Libraries/LibC/serenity.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/serenity.h b/Userland/Libraries/LibC/serenity.h
index acc94f6b40..02fe85e2e4 100644
--- a/Userland/Libraries/LibC/serenity.h
+++ b/Userland/Libraries/LibC/serenity.h
@@ -87,6 +87,8 @@ enum {
PERF_EVENT_THREAD_CREATE = 256,
PERF_EVENT_THREAD_EXIT = 512,
PERF_EVENT_CONTEXT_SWITCH = 1024,
+ PERF_EVENT_KMALLOC = 2048,
+ PERF_EVENT_KFREE = 4096,
};
#define PERF_EVENT_MASK_ALL (~0ull)