Lines Matching defs:cpc
86 static cpc_t *cpc;
144 if ((cpc = cpc_open(CPC_VER_CURRENT)) == NULL) {
151 (void) cpc_seterrhndlr(cpc, cpustat_errfn);
157 smt = smt_limited_cpc_hw(cpc);
165 if ((opts->master = cpc_setgrp_new(cpc, smt)) == NULL) {
269 (void) capabilities(cpc, stdout);
300 (void) cpc_close(cpc);
325 hrtime = cpc_buf_hrtime(cpc, buf);
326 tick = cpc_buf_tick(cpc, buf);
334 (void) cpc_buf_get(cpc, buf, i, &val);
391 (void) printf("%7.3f %3d %5s ", mstimestamp(cpc_buf_hrtime(cpc, buf)),
394 (void) printf("%9" PRId64 " ", cpc_buf_tick(cpc, buf));
396 (void) cpc_buf_get(cpc, buf, i, &val);
464 if (cpc_bind_cpu(cpc, state->cpuid, this, 0) == -1)
496 if (cpc_set_sample(cpc, this, *data1) != 0)
498 cpc_buf_sub(cpc, *scratch, *data1, *data2);
514 if (cpc_set_sample(cpc, this, *scratch) != 0)
517 cpc_buf_add(cpc, *data1, *data1, *scratch);
519 if (cpc_unbind(cpc, this) != 0)
577 if (cpc_bind_cpu(cpc, state->cpuid, this, 0) != 0)
582 if (cpc_unbind(cpc, this) != 0)