H A D | libcpc.c | 54 static void cpc_err(cpc_t *cpc, const char *fn, int subcode, ...); 55 static int cpc_set_valid(cpc_t *cpc, cpc_set_t *set); 56 static int cpc_rdlock(cpc_t *cpc); 57 static int cpc_wrlock(cpc_t *cpc); 58 static void cpc_unlock(cpc_t *cpc, int blocked); 59 static int cpc_valid_event(cpc_t *cpc, uint_t pic, const char *ev); 60 static int cpc_valid_attr(cpc_t *cpc, char *attr); 61 static void cpc_invalidate_pctx(cpc_t *cpc, pctx_t *pctx); 66 cpc_t *cpc; local 99 if ((cpc 156 cpc_close(cpc_t *cpc) argument 175 cpc_terminate(cpc_t *cpc) argument 189 cpc_set_create(cpc_t *cpc) argument 219 cpc_set_destroy(cpc_t *cpc, cpc_set_t *set) argument 274 cpc_set_add_request(cpc_t *cpc, cpc_set_t *set, const char *event, uint64_t preset, uint_t flags, uint_t nattrs, const cpc_attr_t *attrs) argument 383 cpc_buf_create(cpc_t *cpc, cpc_set_t *set) argument 416 cpc_buf_destroy(cpc_t *cpc, cpc_buf_t *buf) argument 448 cpc_bind_curlwp(cpc_t *cpc, cpc_set_t *set, uint_t flags) argument 501 cpc_bind_pctx(cpc_t *cpc, pctx_t *pctx, id_t id, cpc_set_t *set, uint_t flags) argument 537 cpc_bind_cpu(cpc_t *cpc, processorid_t id, cpc_set_t *set, uint_t flags) argument 614 cpc_request_preset(cpc_t *cpc, int index, uint64_t preset) argument 622 cpc_set_restart(cpc_t *cpc, cpc_set_t *set) argument 629 cpc_unbind(cpc_t *cpc, cpc_set_t *set) argument 675 cpc_set_sample(cpc_t *cpc, cpc_set_t *set, cpc_buf_t *buf) argument 711 cpc_buf_sub(cpc_t *cpc, cpc_buf_t *ds, cpc_buf_t *a, cpc_buf_t *b) argument 728 cpc_buf_add(cpc_t *cpc, cpc_buf_t *ds, cpc_buf_t *a, cpc_buf_t *b) argument 745 cpc_buf_copy(cpc_t *cpc, cpc_buf_t *ds, cpc_buf_t *src) argument 757 cpc_buf_zero(cpc_t *cpc, cpc_buf_t *buf) argument 769 cpc_buf_get(cpc_t *cpc, cpc_buf_t *buf, int index, uint64_t *val) argument 778 cpc_buf_set(cpc_t *cpc, cpc_buf_t *buf, int index, uint64_t val) argument 787 cpc_buf_hrtime(cpc_t *cpc, cpc_buf_t *buf) argument 794 cpc_set_hrtime(cpc_t *cpc, cpc_buf_t *buf, uint64_t hrtime) argument 801 cpc_buf_tick(cpc_t *cpc, cpc_buf_t *buf) argument 808 cpc_set_tick(cpc_t *cpc, cpc_buf_t *buf, uint64_t ticks) argument 841 cpc_walk_requests(cpc_t *cpc, cpc_set_t *set, void *arg, void (*action)(void *arg, int index, const char *event, uint64_t preset, uint_t flags, int nattrs, const cpc_attr_t *attrs)) argument 872 cpc_walk_events_impl(cpc_t *cpc, void *arg, void (*action)(void *arg, const char *event), int is_generic) argument 932 cpc_walk_events_all(cpc_t *cpc, void *arg, void (*action)(void *arg, const char *event)) argument 941 cpc_walk_generic_events_all(cpc_t *cpc, void *arg, void (*action)(void *arg, const char *event)) argument 949 cpc_walk_events_pic_impl(cpc_t *cpc, uint_t picno, void *arg, void (*action)(void *arg, uint_t picno, const char *event), int is_generic) argument 996 cpc_walk_events_pic(cpc_t *cpc, uint_t picno, void *arg, void (*action)(void *arg, uint_t picno, const char *event)) argument 1004 cpc_walk_generic_events_pic(cpc_t *cpc, uint_t picno, void *arg, void (*action)(void *arg, uint_t picno, const char *event)) argument 1012 cpc_walk_attrs(cpc_t *cpc, void *arg, void (*action)(void *arg, const char *attr)) argument 1045 cpc_enable(cpc_t *cpc) argument 1052 cpc_disable(cpc_t *cpc) argument 1059 cpc_npic(cpc_t *cpc) argument 1066 cpc_caps(cpc_t *cpc) argument 1072 cpc_cciname(cpc_t *cpc) argument 1078 cpc_cpuref(cpc_t *cpc) argument 1084 cpc_seterrhndlr(cpc_t *cpc, cpc_errhndlr_t *fn) argument 1110 cpc_err(cpc_t *cpc, const char *fn, int subcode, ...) argument 1152 cpc_invalidate_pctx(cpc_t *cpc, pctx_t *pctx) argument 1170 cpc_set_valid(cpc_t *cpc, cpc_set_t *set) argument 1186 cpc_rdlock(cpc_t *cpc) argument 1194 cpc_wrlock(cpc_t *cpc) argument 1202 cpc_unlock(cpc_t *cpc, int sigblocked) argument 1230 cpc_valid_event(cpc_t *cpc, uint_t pic, const char *ev) argument 1267 cpc_valid_attr(cpc_t *cpc, char *attr) argument [all...] |