mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Kernel+Userland: Unify declarations for KCOV in Kernel/API/kcov.h
This commit is contained in:
parent
e7142c482a
commit
8f3c343b88
Notes:
sideshowbarker
2024-07-17 05:02:42 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/8f3c343b88 Pull-request: https://github.com/SerenityOS/serenity/pull/17599
3 changed files with 2 additions and 5 deletions
|
@ -8,6 +8,5 @@
|
|||
|
||||
#include <AK/Types.h>
|
||||
|
||||
// Note: These need to be kept in sync with Kernel/Devices/KCOVInstance.h
|
||||
typedef volatile u64 kcov_pc_t;
|
||||
#define KCOV_ENTRY_SIZE sizeof(kcov_pc_t)
|
|
@ -6,14 +6,12 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <Kernel/API/kcov.h>
|
||||
#include <Kernel/Locking/Spinlock.h>
|
||||
#include <Kernel/Memory/AnonymousVMObject.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
// Note: These need to be kept in sync with Userland/Libraries/LibC/sys/kcov.h
|
||||
typedef volatile u64 kcov_pc_t;
|
||||
#define KCOV_ENTRY_SIZE sizeof(kcov_pc_t)
|
||||
#define KCOV_MAX_ENTRIES (10 * 1024 * 1024)
|
||||
|
||||
/*
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <Kernel/API/kcov.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibMain/Main.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/kcov.h>
|
||||
#include <sys/mman.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue