diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index 8071b2922f4..f9976b09077 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -4,7 +4,7 @@ * Copyright (C) 1994, David Greenman * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. - * Copyright (c) 2007 The FreeBSD Foundation + * Copyright (c) 2007, 2022 The FreeBSD Foundation * * This code is derived from software contributed to Berkeley by * the University of Utah, and William Jolitz. @@ -47,35 +47,22 @@ __FBSDID("$FreeBSD$"); #include "opt_hwpmc_hooks.h" -#include "opt_ktrace.h" -#include "opt_sched.h" #include -#include -#include -#include #include +#include #include #include #include -#include #include #include -#include -#include #include #include -#include #include #include #include #include #include -#ifdef KTRACE -#include -#include -#endif -#include #include @@ -87,7 +74,9 @@ __FBSDID("$FreeBSD$"); #include #endif -#include +#ifdef EPOCH_TRACE +#include +#endif /* * Define the code needed before returning to user mode, for trap and