Lines Matching defs:cpc_buf_t
51 typedef struct __cpc_buf cpc_buf_t;
93 extern cpc_buf_t *cpc_buf_create(cpc_t *cpc, cpc_set_t *set);
94 extern int cpc_buf_destroy(cpc_t *cpc, cpc_buf_t *buf);
124 * Unbinds the set and frees up associated resources. cpc_buf_t's must be
130 * Samples a set into a cpc_buf_t. The provided set must be bound, and the
133 extern int cpc_set_sample(cpc_t *cpc, cpc_set_t *set, cpc_buf_t *buf);
135 extern void cpc_buf_sub(cpc_t *cpc, cpc_buf_t *ds, cpc_buf_t *a, cpc_buf_t *b);
136 extern void cpc_buf_add(cpc_t *cpc, cpc_buf_t *ds, cpc_buf_t *a, cpc_buf_t *b);
137 extern void cpc_buf_copy(cpc_t *cpc, cpc_buf_t *ds, cpc_buf_t *src);
138 extern void cpc_buf_zero(cpc_t *cpc, cpc_buf_t *buf);
143 extern int cpc_buf_get(cpc_t *cpc, cpc_buf_t *buf, int index, uint64_t *val);
144 extern int cpc_buf_set(cpc_t *cpc, cpc_buf_t *buf, int index, uint64_t val);
145 extern hrtime_t cpc_buf_hrtime(cpc_t *cpc, cpc_buf_t *buf);
146 extern uint64_t cpc_buf_tick(cpc_t *cpc, cpc_buf_t *buf);