Export the head structure for the device statistics STAILQ in
sys/devicestat.h, so that the queue can be walked in crashdumps using libkvm.
This commit is contained in:
parent
e43cc4ae36
commit
938a4e5c0c
@ -41,7 +41,7 @@ static long devstat_generation;
|
|||||||
static int devstat_version = DEVSTAT_VERSION;
|
static int devstat_version = DEVSTAT_VERSION;
|
||||||
static int devstat_current_devnumber;
|
static int devstat_current_devnumber;
|
||||||
|
|
||||||
static STAILQ_HEAD(devstatlist, devstat) device_statq;
|
static struct devstatlist device_statq;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Take a malloced and zeroed devstat structure given to us, fill it in
|
* Take a malloced and zeroed devstat structure given to us, fill it in
|
||||||
|
@ -205,6 +205,8 @@ struct devstat {
|
|||||||
devstat_priority priority; /* Controls list pos. */
|
devstat_priority priority; /* Controls list pos. */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
STAILQ_HEAD(devstatlist, devstat);
|
||||||
|
|
||||||
#ifdef _KERNEL
|
#ifdef _KERNEL
|
||||||
struct bio;
|
struct bio;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user