Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/subr_stats.c
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | struct statsblobv1 { | ||||
uint32_t tplhash; /* Base template hash ID. */ | uint32_t tplhash; /* Base template hash ID. */ | ||||
uint16_t stats_off; /* voistat array blob offset. */ | uint16_t stats_off; /* voistat array blob offset. */ | ||||
uint16_t statsdata_off; /* voistatdata array blob offset. */ | uint16_t statsdata_off; /* voistatdata array blob offset. */ | ||||
sbintime_t created; /* Blob creation time. */ | sbintime_t created; /* Blob creation time. */ | ||||
sbintime_t lastrst; /* Time of last reset. */ | sbintime_t lastrst; /* Time of last reset. */ | ||||
struct voi vois[]; /* Array indexed by [voi_id]. */ | struct voi vois[]; /* Array indexed by [voi_id]. */ | ||||
} __aligned(sizeof(void *)); | } __aligned(sizeof(void *)); | ||||
_Static_assert(offsetof(struct statsblobv1, cursz) + | _Static_assert(offsetof(struct statsblobv1, cursz) + | ||||
SIZEOF_MEMBER(struct statsblobv1, cursz) == sizeof(struct statsblob), | SIZEOF_MEMBER(struct statsblobv1, cursz) == | ||||
offsetof(struct statsblob, opaque), | |||||
"statsblobv1 ABI mismatch"); | "statsblobv1 ABI mismatch"); | ||||
struct statsblobv1_tpl { | struct statsblobv1_tpl { | ||||
struct metablob *mb; | struct metablob *mb; | ||||
struct statsblobv1 *sb; | struct statsblobv1 *sb; | ||||
}; | }; | ||||
/* Context passed to iterator callbacks. */ | /* Context passed to iterator callbacks. */ | ||||
▲ Show 20 Lines • Show All 3,777 Lines • Show Last 20 Lines |