Lines Matching defs:cpc
63 static cpc_t *cpc;
116 if ((cpc = cpc_open(CPC_VER_CURRENT)) == NULL) {
123 (void) cpc_seterrhndlr(cpc, cputrack_errfn);
132 if ((opts->master = cpc_setgrp_new(cpc, 0)) == NULL) {
225 (void) capabilities(cpc, stdout);
247 (void) cpc_close(cpc);
301 mstimestamp(cpc_buf_hrtime(cpc, buf)));
307 cpc_buf_tick(cpc, buf));
309 (void) cpc_buf_get(cpc, buf, i, &val);
366 if (cpc_bind_pctx(cpc, pctx, lwpid, set, 0) != 0 ||
367 cpc_set_sample(cpc, set, *data2) != 0) {
370 (void) cpc_unbind(cpc, set);
405 if (cpc_set_sample(cpc, set, *scratch) == 0) {
420 cpc_buf_add(cpc, *data1, *data1, *scratch);
426 if (cpc_unbind(cpc, set) == 0)
481 if (cpc_buf_hrtime(cpc, *data1) == 0)
512 hrt = cpc_buf_hrtime(cpc, *data1);
552 if (cpc_buf_hrtime(cpc, *data1) == 0)
600 if (cpc_set_sample(cpc, this, *data1) != 0)
602 cpc_buf_sub(cpc, *scratch, *data1, *data2);
618 if (cpc_set_sample(cpc, this, *scratch) != 0)
620 cpc_buf_add(cpc, *data1, *data1, *scratch);
626 if (cpc_bind_pctx(cpc, pctx, lwpid, next, 0) != 0)
647 (void) cpc_unbind(cpc, this);
884 if (cpc != NULL)
885 cpc_terminate(cpc);