- 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:
parent
63077d1623
commit
fd54558a83
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user