- If we ever do the per-cpu KTR stuff, the index won't be volatile as it

will be private to each CPU.
- Re-style(9) the globaldata structures.  There really needs to be a MI
  struct pcpu that has a MD struct mdpcpu member at some point.
This commit is contained in:
John Baldwin 2001-09-18 21:46:26 +00:00
parent 63077d1623
commit fd54558a83
11 changed files with 84 additions and 84 deletions

View File

@ -61,7 +61,7 @@ struct globaldata {
SLIST_ENTRY(globaldata) gd_allcpu; SLIST_ENTRY(globaldata) gd_allcpu;
struct lock_list_entry *gd_spinlocks; struct lock_list_entry *gd_spinlocks;
#ifdef KTR_PERCPU #ifdef KTR_PERCPU
volatile int gd_ktr_idx; /* Index into trace table */ int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf; char *gd_ktr_buf;
char gd_ktr_buf_data[0]; char gd_ktr_buf_data[0];
#endif #endif

View File

@ -61,7 +61,7 @@ struct globaldata {
SLIST_ENTRY(globaldata) gd_allcpu; SLIST_ENTRY(globaldata) gd_allcpu;
struct lock_list_entry *gd_spinlocks; struct lock_list_entry *gd_spinlocks;
#ifdef KTR_PERCPU #ifdef KTR_PERCPU
volatile int gd_ktr_idx; /* Index into trace table */ int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf; char *gd_ktr_buf;
char gd_ktr_buf_data[0]; char gd_ktr_buf_data[0];
#endif #endif

View File

@ -52,7 +52,7 @@
* other processors" * other processors"
*/ */
struct globaldata { struct globaldata {
struct globaldata *gd_prvspace; /* self-reference */ struct globaldata *gd_prvspace; /* Self-reference */
struct thread *gd_curthread; struct thread *gd_curthread;
struct thread *gd_npxthread; struct thread *gd_npxthread;
struct pcb *gd_curpcb; struct pcb *gd_curpcb;
@ -68,7 +68,7 @@ struct globaldata {
SLIST_ENTRY(globaldata) gd_allcpu; SLIST_ENTRY(globaldata) gd_allcpu;
struct lock_list_entry *gd_spinlocks; struct lock_list_entry *gd_spinlocks;
#ifdef KTR_PERCPU #ifdef KTR_PERCPU
volatile int gd_ktr_idx; /* Index into trace table */ int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf; char *gd_ktr_buf;
char gd_ktr_buf_data[KTR_SIZE]; char gd_ktr_buf_data[KTR_SIZE];
#endif #endif

View File

@ -52,7 +52,7 @@
* other processors" * other processors"
*/ */
struct globaldata { struct globaldata {
struct globaldata *gd_prvspace; /* self-reference */ struct globaldata *gd_prvspace; /* Self-reference */
struct thread *gd_curthread; struct thread *gd_curthread;
struct thread *gd_npxthread; struct thread *gd_npxthread;
struct pcb *gd_curpcb; struct pcb *gd_curpcb;
@ -68,7 +68,7 @@ struct globaldata {
SLIST_ENTRY(globaldata) gd_allcpu; SLIST_ENTRY(globaldata) gd_allcpu;
struct lock_list_entry *gd_spinlocks; struct lock_list_entry *gd_spinlocks;
#ifdef KTR_PERCPU #ifdef KTR_PERCPU
volatile int gd_ktr_idx; /* Index into trace table */ int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf; char *gd_ktr_buf;
char gd_ktr_buf_data[KTR_SIZE]; char gd_ktr_buf_data[KTR_SIZE];
#endif #endif

View File

@ -52,7 +52,7 @@
* other processors" * other processors"
*/ */
struct globaldata { struct globaldata {
struct globaldata *gd_prvspace; /* self-reference */ struct globaldata *gd_prvspace; /* Self-reference */
struct thread *gd_curthread; struct thread *gd_curthread;
struct thread *gd_npxthread; struct thread *gd_npxthread;
struct pcb *gd_curpcb; struct pcb *gd_curpcb;
@ -68,7 +68,7 @@ struct globaldata {
SLIST_ENTRY(globaldata) gd_allcpu; SLIST_ENTRY(globaldata) gd_allcpu;
struct lock_list_entry *gd_spinlocks; struct lock_list_entry *gd_spinlocks;
#ifdef KTR_PERCPU #ifdef KTR_PERCPU
volatile int gd_ktr_idx; /* Index into trace table */ int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf; char *gd_ktr_buf;
char gd_ktr_buf_data[KTR_SIZE]; char gd_ktr_buf_data[KTR_SIZE];
#endif #endif

View File

@ -60,7 +60,7 @@ struct globaldata {
SLIST_ENTRY(globaldata) gd_allcpu; SLIST_ENTRY(globaldata) gd_allcpu;
struct lock_list_entry *gd_spinlocks; struct lock_list_entry *gd_spinlocks;
#ifdef KTR_PERCPU #ifdef KTR_PERCPU
volatile int gd_ktr_idx; /* Index into trace table */ int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf; char *gd_ktr_buf;
char gd_ktr_buf_data[0]; char gd_ktr_buf_data[0];
#endif #endif

View File

@ -60,7 +60,7 @@ struct globaldata {
SLIST_ENTRY(globaldata) gd_allcpu; SLIST_ENTRY(globaldata) gd_allcpu;
struct lock_list_entry *gd_spinlocks; struct lock_list_entry *gd_spinlocks;
#ifdef KTR_PERCPU #ifdef KTR_PERCPU
volatile int gd_ktr_idx; /* Index into trace table */ int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf; char *gd_ktr_buf;
char gd_ktr_buf_data[0]; char gd_ktr_buf_data[0];
#endif #endif

View File

@ -60,7 +60,7 @@ struct globaldata {
SLIST_ENTRY(globaldata) gd_allcpu; SLIST_ENTRY(globaldata) gd_allcpu;
struct lock_list_entry *gd_spinlocks; struct lock_list_entry *gd_spinlocks;
#ifdef KTR_PERCPU #ifdef KTR_PERCPU
volatile int gd_ktr_idx; /* Index into trace table */ int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf; char *gd_ktr_buf;
char gd_ktr_buf_data[KTR_SIZE]; char gd_ktr_buf_data[KTR_SIZE];
#endif #endif

View File

@ -60,7 +60,7 @@ struct globaldata {
SLIST_ENTRY(globaldata) gd_allcpu; SLIST_ENTRY(globaldata) gd_allcpu;
struct lock_list_entry *gd_spinlocks; struct lock_list_entry *gd_spinlocks;
#ifdef KTR_PERCPU #ifdef KTR_PERCPU
volatile int gd_ktr_idx; /* Index into trace table */ int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf; char *gd_ktr_buf;
char gd_ktr_buf_data[KTR_SIZE]; char gd_ktr_buf_data[KTR_SIZE];
#endif #endif

View File

@ -56,7 +56,7 @@ struct globaldata {
SLIST_ENTRY(globaldata) gd_allcpu; SLIST_ENTRY(globaldata) gd_allcpu;
struct lock_list_entry *gd_spinlocks; struct lock_list_entry *gd_spinlocks;
#ifdef KTR_PERCPU #ifdef KTR_PERCPU
volatile int gd_ktr_idx; /* Index into trace table */ int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf; char *gd_ktr_buf;
char gd_ktr_buf_data[0]; char gd_ktr_buf_data[0];
#endif #endif

View File

@ -56,7 +56,7 @@ struct globaldata {
SLIST_ENTRY(globaldata) gd_allcpu; SLIST_ENTRY(globaldata) gd_allcpu;
struct lock_list_entry *gd_spinlocks; struct lock_list_entry *gd_spinlocks;
#ifdef KTR_PERCPU #ifdef KTR_PERCPU
volatile int gd_ktr_idx; /* Index into trace table */ int gd_ktr_idx; /* Index into trace table */
char *gd_ktr_buf; char *gd_ktr_buf;
char gd_ktr_buf_data[0]; char gd_ktr_buf_data[0];
#endif #endif