H A D | libcpc.c | 55 static void cpc_err(cpc_t *cpc, const char *fn, int subcode, ...); 56 static int cpc_set_valid(cpc_t *cpc, cpc_set_t *set); 57 static int cpc_lock(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 = malloc(sizeof (cpc_t))) == NULL) { 104 cpc 156 cpc_close(cpc_t *cpc) argument 175 cpc_terminate(cpc_t *cpc) argument 189 cpc_set_create(cpc_t *cpc) argument 216 cpc_set_destroy(cpc_t *cpc, cpc_set_t *set) argument 269 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 359 cpc_buf_create(cpc_t *cpc, cpc_set_t *set) argument 392 cpc_buf_destroy(cpc_t *cpc, cpc_buf_t *buf) argument 424 cpc_bind_curlwp(cpc_t *cpc, cpc_set_t *set, uint_t flags) argument 462 cpc_bind_pctx(cpc_t *cpc, pctx_t *pctx, id_t id, cpc_set_t *set, uint_t flags) argument 499 cpc_bind_cpu(cpc_t *cpc, processorid_t id, cpc_set_t *set, uint_t flags) argument 570 cpc_request_preset(cpc_t *cpc, int index, uint64_t preset) argument 578 cpc_set_restart(cpc_t *cpc, cpc_set_t *set) argument 585 cpc_unbind(cpc_t *cpc, cpc_set_t *set) argument 629 cpc_set_sample(cpc_t *cpc, cpc_set_t *set, cpc_buf_t *buf) argument 665 cpc_buf_sub(cpc_t *cpc, cpc_buf_t *ds, cpc_buf_t *a, cpc_buf_t *b) argument 682 cpc_buf_add(cpc_t *cpc, cpc_buf_t *ds, cpc_buf_t *a, cpc_buf_t *b) argument 699 cpc_buf_copy(cpc_t *cpc, cpc_buf_t *ds, cpc_buf_t *src) argument 711 cpc_buf_zero(cpc_t *cpc, cpc_buf_t *buf) argument 723 cpc_buf_get(cpc_t *cpc, cpc_buf_t *buf, int index, uint64_t *val) argument 732 cpc_buf_set(cpc_t *cpc, cpc_buf_t *buf, int index, uint64_t val) argument 741 cpc_buf_hrtime(cpc_t *cpc, cpc_buf_t *buf) argument 748 cpc_buf_tick(cpc_t *cpc, cpc_buf_t *buf) argument 781 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 812 cpc_walk_events_impl(cpc_t *cpc, void *arg, void (*action)(void *arg, const char *event), int is_generic) argument 872 cpc_walk_events_all(cpc_t *cpc, void *arg, void (*action)(void *arg, const char *event)) argument 881 cpc_walk_generic_events_all(cpc_t *cpc, void *arg, void (*action)(void *arg, const char *event)) argument 889 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 936 cpc_walk_events_pic(cpc_t *cpc, uint_t picno, void *arg, void (*action)(void *arg, uint_t picno, const char *event)) argument 944 cpc_walk_generic_events_pic(cpc_t *cpc, uint_t picno, void *arg, void (*action)(void *arg, uint_t picno, const char *event)) argument 952 cpc_walk_attrs(cpc_t *cpc, void *arg, void (*action)(void *arg, const char *attr)) argument 985 cpc_enable(cpc_t *cpc) argument 992 cpc_disable(cpc_t *cpc) argument 999 cpc_npic(cpc_t *cpc) argument 1006 cpc_caps(cpc_t *cpc) argument 1012 cpc_cciname(cpc_t *cpc) argument 1018 cpc_cpuref(cpc_t *cpc) argument 1024 cpc_seterrhndlr(cpc_t *cpc, cpc_errhndlr_t *fn) argument 1050 cpc_err(cpc_t *cpc, const char *fn, int subcode, ...) argument 1092 cpc_invalidate_pctx(cpc_t *cpc, pctx_t *pctx) argument 1110 cpc_set_valid(cpc_t *cpc, cpc_set_t *set) argument 1126 cpc_lock(cpc_t *cpc) argument 1134 cpc_unlock(cpc_t *cpc, int sigblocked) argument 1162 cpc_valid_event(cpc_t *cpc, uint_t pic, const char *ev) argument 1199 cpc_valid_attr(cpc_t *cpc, char *attr) argument [all...] |