statsblob
src->cursz < sizeof(struct statsblob) ||
} else if (*dst == NULL || dstmaxsz < sizeof(struct statsblob)) {
offsetof(struct statsblob, maxsz));
offsetof(struct statsblob, maxsz));
memcpy(*dst, src, offsetof(struct statsblob, maxsz));
offsetof(struct statsblob, cursz);
postcurszlen = sizeof(struct statsblob) -
offsetof(struct statsblob, cursz);
offsetof(struct statsblob, opaque),
tpllist[tpl_id]->sb = (struct statsblob *)tpl_sb;
struct statsblob *sbp;
struct statsblob *t = tp->t_stats;
TYPEOF_MEMBER(struct statsblob, flags) sbflags = 0;
else if (outsbsz >= sizeof(struct statsblob))
outsbsz = sizeof(struct statsblob);
SIZEOF_MEMBER(struct statsblob, flags))))
struct statsblob *t_stats; /* Per-connection stats */
stats_voi_update_rel_u32(struct statsblob *sb, int32_t voi_id, uint32_t voival)
stats_voi_update_abs_s64(struct statsblob *sb, int32_t voi_id, int64_t voival)
stats_voi_update_rel_s64(struct statsblob *sb, int32_t voi_id, int64_t voival)
stats_voi_update_abs_u64(struct statsblob *sb, int32_t voi_id, uint64_t voival)
stats_voi_update_rel_u64(struct statsblob *sb, int32_t voi_id, uint64_t voival)
stats_voi_update_abs_slong(struct statsblob *sb, int32_t voi_id, long voival)
stats_voi_update_rel_slong(struct statsblob *sb, int32_t voi_id, long voival)
stats_voi_update_abs_ulong(struct statsblob *sb, int32_t voi_id,
stats_voi_update_rel_ulong(struct statsblob *sb, int32_t voi_id,
stats_voi_update_abs_sq32(struct statsblob *sb, int32_t voi_id, s32q_t voival)
stats_voi_update_rel_sq32(struct statsblob *sb, int32_t voi_id, s32q_t voival)
stats_voi_update_abs_uq32(struct statsblob *sb, int32_t voi_id, u32q_t voival)
stats_voi_update_rel_uq32(struct statsblob *sb, int32_t voi_id, u32q_t voival)
stats_voi_update_abs_sq64(struct statsblob *sb, int32_t voi_id, s64q_t voival)
stats_voi_update_rel_sq64(struct statsblob *sb, int32_t voi_id, s64q_t voival)
stats_voi_update_abs_uq64(struct statsblob *sb, int32_t voi_id, u64q_t voival)
stats_voi_update_rel_uq64(struct statsblob *sb, int32_t voi_id, u64q_t voival)
struct statsblob *sb; /* Template schema */
stats_blob_init(struct statsblob *sb, uint32_t tpl_id, uint32_t flags)
static inline struct statsblob *
return ((struct statsblob *)stats_v1_blob_alloc(tpl_id, flags));
stats_blob_clone(struct statsblob **dst, size_t dstmaxsz, struct statsblob *src,
stats_blob_destroy(struct statsblob *sb)
stats_blob_visit(struct statsblob *sb, stats_blob_visitcb_t func, void *usrctx)
stats_blob_tostr(struct statsblob *sb, struct sbuf *buf,
stats_voistat_fetch_dptr(struct statsblob *sb, int32_t voi_id,
stats_voistat_fetch_s64(struct statsblob *sb, int32_t voi_id,
stats_voistat_fetch_u64(struct statsblob *sb, int32_t voi_id,
stats_voistat_fetch_s32(struct statsblob *sb, int32_t voi_id,
stats_voistat_fetch_u32(struct statsblob *sb, int32_t voi_id,
stats_voistat_fetch_slong(struct statsblob *sb, int32_t voi_id,
stats_voistat_fetch_ulong(struct statsblob *sb, int32_t voi_id,
stats_blob_snapshot(struct statsblob **dst, size_t dstmaxsz,
struct statsblob *src, uint32_t flags)
stats_voi_update_abs_s32(struct statsblob *sb, int32_t voi_id, int32_t voival)
stats_voi_update_rel_s32(struct statsblob *sb, int32_t voi_id, int32_t voival)
stats_voi_update_abs_u32(struct statsblob *sb, int32_t voi_id, uint32_t voival)