Searched refs:cpc (Results 1 - 25 of 40) sorted by relevance

12

/illumos-gate/usr/src/man/man3cpc/
H A DMakefile19 MANSECT= 3cpc
21 MANFILES= cpc.3cpc \
22 cpc_access.3cpc \
23 cpc_bind_curlwp.3cpc \
24 cpc_bind_event.3cpc \
25 cpc_buf_create.3cpc \
26 cpc_count_usr_events.3cpc \
27 cpc_enable.3cpc \
28 cpc_event.3cpc \
[all...]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/cpc/
H A Derr.toomanyenablings.d44 cpc:::PAPI_tot_ins-all-10000,
45 cpc:::PAPI_tot_ins-all-10001,
46 cpc:::PAPI_tot_ins-all-10002,
47 cpc:::PAPI_tot_ins-all-10003,
48 cpc:::PAPI_tot_ins-all-10004,
49 cpc:::PAPI_tot_ins-all-10005,
50 cpc:::PAPI_tot_ins-all-10006,
51 cpc:::PAPI_tot_ins-all-10007,
52 cpc:::PAPI_tot_ins-all-10008,
53 cpc
[all...]
H A Derr.D_PDESC_ZERO.nonexistentevent.d37 cpc:::PAPI_cpc_bad-all-10000
H A Derr.D_PDESC_ZERO.lowfrequency.d43 cpc:::PAPI_tot_ins-all-100
H A Derr.D_PDESC_ZERO.malformedoverflow.d37 cpc:::PAPI_tot_ins-all-10000bonehead
H A Dtst.genericevent.d39 cpc:::PAPI_tot_ins-all-10000
H A Derr.cpcvscpustatpart2.ksh30 # This tests that enablings from the cpc provider will fail if cpustat(1) is
47 cpc:::PAPI_tot_ins-all-10000
H A Derr.cputrackterminates.ksh28 # This script ensures that cputrack(1) will terminate when the cpc provider
40 cpc:::PAPI_tot_ins-all-10000
H A Derr.cpcvscpustatpart1.ksh30 # This tests that cpustat(1) should fail to start if the cpc provider
42 cpc:::PAPI_tot_ins-all-10000
H A Derr.cputrackfailtostart.ksh28 # This script ensures that cputrack(1M) will fail to start when the cpc
40 cpc:::PAPI_tot_ins-all-10000
H A Dtst.platformevent.ksh63 cpc:::$1-all-10000
/illumos-gate/usr/src/cmd/mdb/intel/amd64/cpc/
H A DMakefile28 MODULE = cpc.so
31 MODSRCS = cpc.c
/illumos-gate/usr/src/cmd/mdb/intel/ia32/cpc/
H A DMakefile28 MODULE = cpc.so
31 MODSRCS = cpc.c
/illumos-gate/usr/src/cmd/mdb/sparc/v9/cpc/
H A DMakefile28 MODULE = cpc.so
31 MODSRCS = cpc.c
/illumos-gate/usr/src/lib/libcpc/common/
H A Dlibcpc.c55 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...]
H A Dlibcpc.h60 * must be used as the cpc argument in subsequent libcpc calls.
63 extern int cpc_close(cpc_t *cpc);
68 extern uint_t cpc_npic(cpc_t *cpc);
69 extern uint_t cpc_caps(cpc_t *cpc);
70 extern const char *cpc_cciname(cpc_t *cpc);
71 extern const char *cpc_cpuref(cpc_t *cpc);
80 extern int cpc_seterrhndlr(cpc_t *cpc, cpc_errhndlr_t *fn);
82 extern cpc_set_t *cpc_set_create(cpc_t *cpc);
83 extern int cpc_set_destroy(cpc_t *cpc, cpc_set_t *set);
90 extern int cpc_set_add_request(cpc_t *cpc, cpc_set_
[all...]
/illumos-gate/usr/src/cmd/cpc/common/
H A Dcpucmds.h42 extern cpc_set_t *cpc_strtoset(cpc_t *cpc, const char *spec, int smt);
44 extern int capabilities(cpc_t *cpc, FILE *);
45 extern int smt_limited_cpc_hw(cpc_t *cpc);
54 extern cpc_setgrp_t *cpc_setgrp_new(cpc_t *cpc, int smt);
H A Dcaps.c119 allpics_equal(cpc_t *cpc) argument
121 int npics = cpc_npic(cpc);
133 cpc_walk_events_pic(cpc, i, lists[i], cap_walker);
154 capabilities(cpc_t *cpc, FILE *fp) argument
159 int npic = cpc_npic(cpc);
160 int i, pics_equal = allpics_equal(cpc);
164 if ((ccp = cpc_cciname(cpc)) == NULL)
179 cpc_walk_generic_events_pic(cpc, 0, args, list_cap);
187 cpc_walk_generic_events_pic(cpc, i, args, list_cap);
200 cpc_walk_events_pic(cpc,
251 smt_limited_cpc_hw(cpc_t *cpc) argument
[all...]
H A Dsetgrp.c62 cpc_t *cpc; /* library handle */ member in struct:__cpc_setgrp
68 cpc_setgrp_new(cpc_t *cpc, int smt) argument
74 sgrp->cpc = cpc;
125 if ((set = cpc_strtoset(sgrp->cpc, spec, sgrp->smt)) == NULL) {
146 cpc_walk_requests(sgrp->cpc, set, &(sgrp->sets[sgrp->nelem]),
161 cpc_walk_requests(sgrp->cpc, set, sgrp->sets[sgrp->nelem].picnums,
182 if ((sgrp->sets[sgrp->nelem].data1 = cpc_buf_create(sgrp->cpc, set))
184 (sgrp->sets[sgrp->nelem].data2 = cpc_buf_create(sgrp->cpc, set))
186 (sgrp->sets[sgrp->nelem].scratch = cpc_buf_create(sgrp->cpc, se
[all...]
H A Dcpustat.c86 static cpc_t *cpc; variable
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, bu
[all...]
H A Dstrtoset.c89 static cpc_t *cpc; variable
121 cpc_walk_events_pic(cpc, picnum, event, event_walker);
126 cpc_walk_generic_events_pic(cpc, picnum, event, event_walker);
315 cpc_count_attrs(cpc_t *cpc) argument
319 cpc_walk_attrs(cpc, &nattrs, attr_count_walker);
351 cpc = cpcin;
354 ncounters = cpc_npic(cpc);
410 nattrs = cpc_count_attrs(cpc);
414 cpc_walk_attrs(cpc, &i, attr_walker);
514 if ((set = cpc_set_create(cpc))
[all...]
H A Dcputrack.c63 static cpc_t *cpc; variable
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, pct
[all...]
/illumos-gate/usr/src/uts/i86pc/cpc/
H A DMakefile22 # uts/i86pc/cpc/Makefile
28 # This makefile drives the production of the cpc kernel module.
41 MODULE = cpc
/illumos-gate/usr/src/uts/sun4v/cpc/
H A DMakefile22 # uts/sun4v/cpc/Makefile
28 # This makefile drives the production of the cpc kernel module.
41 MODULE = cpc
/illumos-gate/usr/src/uts/sun4u/cpc/
H A DMakefile22 # uts/sun4u/cpc/Makefile
28 # This makefile drives the production of the cpc kernel module.
41 MODULE = cpc

Completed in 141 milliseconds

12