Searched defs:cpc (Results 1 - 13 of 13) sorted by relevance

/illumos-gate/usr/src/cmd/cpc/common/
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 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 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 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/cmd/mdb/common/modules/cpc/
H A Dcpc.c51 cpc(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) function
67 * We weren't given the address of any specific cpc ctx, so
70 mdb_walk_dcmd("cpc_ctx", "cpc", argc, argv);
152 * cpc module.
210 { "cpc_ctx", "walk global list of cpc contexts",
216 { "cpc", "?[-v]", "Display contents of CPC context", cpc, cpc_help },
/illumos-gate/usr/src/lib/libcpc/sparc/
H A Devent_ultra.c451 __cpc_eventtoset(cpc_t *cpc, cpc_event_t *event, int iflags) argument
487 if ((set = cpc_set_create(cpc)) == NULL)
490 if (cpc_set_add_request(cpc, set, pic[0], event->ce_pic[0], flag,
495 if (cpc_set_add_request(cpc, set, pic[1], event->ce_pic[1], flag,
506 (void) cpc_set_destroy(cpc, set);
/illumos-gate/usr/src/lib/libpctx/common/
H A Dlibpctx.c69 cpc_t *cpc; member in struct:__pctx
72 static void (*pctx_cpc_callback)(cpc_t *cpc, struct __pctx *pctx);
463 if (pctx->cpc != NULL && pctx_cpc_callback != NULL)
464 (*pctx_cpc_callback)(pctx->cpc, pctx);
866 * Execute the private 'cpc' system call in the context of the
870 __pctx_cpc(pctx_t *pctx, cpc_t *cpc, argument
884 if (pctx->cpc != NULL && pctx->cpc != cpc && pctx_cpc_callback != NULL)
885 (*pctx_cpc_callback)(pctx->cpc, pct
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dcpc.c88 cpc(int cmd, id_t lwpid, void *udata1, void *udata2, void *udata3) function
912 "cpc sampling driver",
919 cpc
924 "cpc sampling system call",
931 "32-bit cpc sampling system call",
/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...]
/illumos-gate/usr/src/lib/libcpc/i386/
H A Devent_pentium.c691 __cpc_eventtoset(cpc_t *cpc, cpc_event_t *event, int iflags) argument
703 if ((set = cpc_set_create(cpc)) == NULL) {
722 (void) cpc_set_destroy(cpc, set);
747 (void) cpc_set_destroy(cpc, set);
790 if (cpc_set_add_request(cpc, set, pic[i],
792 (void) cpc_set_destroy(cpc, set);
813 (void) cpc_set_destroy(cpc, set);
828 (void) cpc_set_destroy(cpc, set);
852 if (cpc_set_add_request(cpc, set, pic[i],
854 (void) cpc_set_destroy(cpc, se
[all...]
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Ddlfcns.c63 _caller(caddr_t cpc, int flags) argument
78 if (find_segment(cpc, lmp))
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_case.c196 uint_t cpc, i; local
201 cpc = chp->ch_count;
208 ASSERT(cpp == cps + cpc);
211 for (i = 0; i < cpc; i++) {
218 fmd_free(cps, cpc * sizeof (fmd_case_t *));
921 uint_t cpc; local
945 cpc = chp->ch_count;
949 ASSERT(cpp == cps + cpc);
955 for (i = 0; i < cpc; i++) {
963 fmd_free(cps, cpc * sizeo
[all...]

Completed in 185 milliseconds