mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
ktrace: Fix the build when options KTRACE is not configured
MFC after: 1 week Reported by: John Nielsen <lists@jnielsen.net> (cherry picked from commit a58813fd701ea4b248cca0dfab9971d863fbcf6a)
This commit is contained in:
parent
ad9aa06859
commit
3ba61343f7
2 changed files with 9 additions and 9 deletions
|
|
@ -37,13 +37,13 @@
|
|||
#include <sys/proc.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/ktr.h>
|
||||
#include <sys/ktrace.h>
|
||||
#include <sys/condvar.h>
|
||||
#include <sys/sched.h>
|
||||
#include <sys/signalvar.h>
|
||||
#include <sys/sleepqueue.h>
|
||||
#include <sys/resourcevar.h>
|
||||
#ifdef KTRACE
|
||||
#include <sys/ktrace.h>
|
||||
#include <sys/uio.h>
|
||||
#include <sys/user.h>
|
||||
#endif
|
||||
|
|
@ -112,7 +112,7 @@ _cv_wait(struct cv *cvp, struct lock_object *lock)
|
|||
char wmesg[WMESGLEN + 1];
|
||||
#endif
|
||||
struct lock_class *class;
|
||||
struct thread *td;
|
||||
struct thread *td __ktrace_used;
|
||||
uintptr_t lock_state;
|
||||
|
||||
td = curthread;
|
||||
|
|
@ -174,7 +174,7 @@ _cv_wait_unlock(struct cv *cvp, struct lock_object *lock)
|
|||
char wmesg[WMESGLEN + 1];
|
||||
#endif
|
||||
struct lock_class *class;
|
||||
struct thread *td;
|
||||
struct thread *td __ktrace_used;
|
||||
|
||||
td = curthread;
|
||||
CV_ASSERT(cvp, lock, td);
|
||||
|
|
@ -232,7 +232,7 @@ _cv_wait_sig(struct cv *cvp, struct lock_object *lock)
|
|||
char wmesg[WMESGLEN + 1];
|
||||
#endif
|
||||
struct lock_class *class;
|
||||
struct thread *td;
|
||||
struct thread *td __ktrace_used;
|
||||
uintptr_t lock_state;
|
||||
int rval;
|
||||
|
||||
|
|
@ -301,7 +301,7 @@ _cv_timedwait_sbt(struct cv *cvp, struct lock_object *lock, sbintime_t sbt,
|
|||
char wmesg[WMESGLEN + 1];
|
||||
#endif
|
||||
struct lock_class *class;
|
||||
struct thread *td;
|
||||
struct thread *td __ktrace_used;
|
||||
int lock_state, rval;
|
||||
|
||||
td = curthread;
|
||||
|
|
@ -371,7 +371,7 @@ _cv_timedwait_sig_sbt(struct cv *cvp, struct lock_object *lock,
|
|||
char wmesg[WMESGLEN + 1];
|
||||
#endif
|
||||
struct lock_class *class;
|
||||
struct thread *td;
|
||||
struct thread *td __ktrace_used;
|
||||
int lock_state, rval;
|
||||
|
||||
td = curthread;
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@
|
|||
#include <sys/kdb.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/ktr.h>
|
||||
#include <sys/ktrace.h>
|
||||
#include <sys/lock.h>
|
||||
#include <sys/mutex.h>
|
||||
#include <sys/proc.h>
|
||||
|
|
@ -62,7 +63,6 @@
|
|||
#include <sys/vmmeter.h>
|
||||
#ifdef KTRACE
|
||||
#include <sys/uio.h>
|
||||
#include <sys/ktrace.h>
|
||||
#endif
|
||||
#ifdef EPOCH_TRACE
|
||||
#include <sys/epoch.h>
|
||||
|
|
@ -133,7 +133,7 @@ int
|
|||
_sleep(const void *ident, struct lock_object *lock, int priority,
|
||||
const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags)
|
||||
{
|
||||
struct thread *td;
|
||||
struct thread *td __ktrace_used;
|
||||
struct lock_class *class;
|
||||
uintptr_t lock_state;
|
||||
int catch, pri, rval, sleepq_flags;
|
||||
|
|
@ -240,7 +240,7 @@ int
|
|||
msleep_spin_sbt(const void *ident, struct mtx *mtx, const char *wmesg,
|
||||
sbintime_t sbt, sbintime_t pr, int flags)
|
||||
{
|
||||
struct thread *td;
|
||||
struct thread *td __ktrace_used;
|
||||
int rval;
|
||||
WITNESS_SAVE_DECL(mtx);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue