diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-05-13 13:09:00 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-19 22:51:42 +0200 |
commit | 277f333b2bbf2ca24d0d4c7695edbaed21dc0ba3 (patch) | |
tree | 8b66ccf59698ae554250ccf9163f9d42ec0e4ae4 /Userland/Libraries/LibC | |
parent | 572bbf28ccd1cd5f8e4f17a38d0fbd989b1d56bf (diff) | |
download | serenity-277f333b2bbf2ca24d0d4c7695edbaed21dc0ba3.zip |
Kernel: Add support for profiling kmalloc()/kfree()
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r-- | Userland/Libraries/LibC/serenity.h | 2 |
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) |