mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
Kernel+Userland: Unify declarations for KCOV in Kernel/API/kcov.h
This commit is contained in:
parent
e7142c482a
commit
8f3c343b88
3 changed files with 2 additions and 5 deletions
|
@ -8,6 +8,5 @@
|
||||||
|
|
||||||
#include <AK/Types.h>
|
#include <AK/Types.h>
|
||||||
|
|
||||||
// Note: These need to be kept in sync with Kernel/Devices/KCOVInstance.h
|
|
||||||
typedef volatile u64 kcov_pc_t;
|
typedef volatile u64 kcov_pc_t;
|
||||||
#define KCOV_ENTRY_SIZE sizeof(kcov_pc_t)
|
#define KCOV_ENTRY_SIZE sizeof(kcov_pc_t)
|
|
@ -6,14 +6,12 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <Kernel/API/kcov.h>
|
||||||
#include <Kernel/Locking/Spinlock.h>
|
#include <Kernel/Locking/Spinlock.h>
|
||||||
#include <Kernel/Memory/AnonymousVMObject.h>
|
#include <Kernel/Memory/AnonymousVMObject.h>
|
||||||
|
|
||||||
namespace Kernel {
|
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)
|
#define KCOV_MAX_ENTRIES (10 * 1024 * 1024)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -4,12 +4,12 @@
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <Kernel/API/kcov.h>
|
||||||
#include <LibCore/System.h>
|
#include <LibCore/System.h>
|
||||||
#include <LibMain/Main.h>
|
#include <LibMain/Main.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#include <sys/kcov.h>
|
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue