tprof_stat
memcpy(data, &tprof_stat, sizeof(tprof_stat));
static struct tprof_stat tprof_stat; /* L: */
tprof_stat.ts_emptybuf++;
tprof_stat.ts_sample += buf->b_used;
tprof_stat.ts_overflow += buf->b_overflow;
tprof_stat.ts_buf++;
tprof_stat.ts_dropbuf_sample += buf->b_used;
tprof_stat.ts_dropbuf++;
memset(&tprof_stat, 0, sizeof(tprof_stat));
#define TPROF_IOC_GETSTAT _IOR('T', 4, struct tprof_stat)
struct tprof_stat ts;
static struct tprof_stat tsbuf[2], *ts0, *ts;