Kernel+Userland: Unify declarations for KCOV in Kernel/API/kcov.h

This commit is contained in:
Liav A 2023-02-24 17:14:24 +02:00 committed by Linus Groh
parent e7142c482a
commit 8f3c343b88
Notes: sideshowbarker 2024-07-17 05:02:42 +09:00
3 changed files with 2 additions and 5 deletions

View file

@ -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)

View file

@ -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)
/*

View file

@ -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>