Add the 'witness_spin_check' per-CPU variable.

This commit is contained in:
John Baldwin 2000-11-15 21:58:02 +00:00
parent 651c378316
commit 4b2c46fab1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68784
6 changed files with 6 additions and 0 deletions

View File

@ -61,6 +61,7 @@ struct globaldata {
u_int gd_astpending;
SLIST_ENTRY(globaldata) gd_allcpu;
int gd_witness_spin_check;
#ifdef KTR_PERCPU
volatile int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf;

View File

@ -58,6 +58,7 @@ register struct globaldata *globalp __asm__("$8");
#define switchtime PCPU_GET(switchtime)
#define switchticks PCPU_GET(switchticks)
#define cpuid PCPU_GET(cpuno)
#define witness_spin_check PCPU_GET(witness_spin_check)
#endif /* _KERNEL */

View File

@ -61,6 +61,7 @@ struct globaldata {
u_int gd_astpending;
SLIST_ENTRY(globaldata) gd_allcpu;
int gd_witness_spin_check;
#ifdef KTR_PERCPU
volatile int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf;

View File

@ -61,6 +61,7 @@ struct globaldata {
u_int gd_astpending;
SLIST_ENTRY(globaldata) gd_allcpu;
int gd_witness_spin_check;
#ifdef KTR_PERCPU
volatile int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf;

View File

@ -58,6 +58,7 @@ register struct globaldata *globalp __asm__("$8");
#define switchtime PCPU_GET(switchtime)
#define switchticks PCPU_GET(switchticks)
#define cpuid PCPU_GET(cpuno)
#define witness_spin_check PCPU_GET(witness_spin_check)
#endif /* _KERNEL */

View File

@ -61,6 +61,7 @@ struct globaldata {
u_int gd_astpending;
SLIST_ENTRY(globaldata) gd_allcpu;
int gd_witness_spin_check;
#ifdef KTR_PERCPU
volatile int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf;