/titanic_50/usr/src/man/man3cpc/ |
H A D | Makefile | 19 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 \ 29 cpc_event_diff.3cpc \ [all …]
|
/titanic_50/usr/src/lib/libcpc/common/ |
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; in cpc_open() local 99 if ((cpc = malloc(sizeof (cpc_t))) == NULL) { in cpc_open() 104 cpc->cpc_npic = syscall(SYS_cpc, CPC_NPIC, -1, 0, 0, 0); in cpc_open() [all …]
|
H A D | libcpc.h | 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_t *set, const char *event, 93 extern cpc_buf_t *cpc_buf_create(cpc_t *cpc, cpc_set_t *set); [all …]
|
H A D | libcpc_impl.h | 145 extern int __pctx_cpc(pctx_t *pctx, struct __cpc *cpc, int cmd, id_t lwpid, 156 extern cpc_set_t *__cpc_eventtoset(cpc_t *cpc, cpc_event_t *event, int flags);
|
/titanic_50/usr/src/pkg/manifests/ |
H A D | diagnostic-cpu-counters.mf | 74 $(i386_ONLY)file path=usr/share/man/man3cpc/amd_f17h_events.3cpc 75 $(i386_ONLY)file path=usr/share/man/man3cpc/bdw_de_events.3cpc 76 $(i386_ONLY)file path=usr/share/man/man3cpc/bdw_events.3cpc 77 $(i386_ONLY)file path=usr/share/man/man3cpc/bdx_events.3cpc 78 $(i386_ONLY)file path=usr/share/man/man3cpc/bnl_events.3cpc 79 $(i386_ONLY)file path=usr/share/man/man3cpc/clx_events.3cpc 80 file path=usr/share/man/man3cpc/cpc.3cpc 81 file path=usr/share/man/man3cpc/cpc_access.3cpc 82 file path=usr/share/man/man3cpc/cpc_bind_curlwp.3cpc 83 file path=usr/share/man/man3cpc/cpc_bind_event.3cpc [all …]
|
H A D | system-kernel-cpu-counters.mf | 56 driver name=cpc perms="shared 0666 root sys" 57 $(i386_ONLY)file path=platform/i86pc/kernel/drv/$(ARCH64)/cpc group=sys 58 $(i386_ONLY)file path=platform/i86pc/kernel/drv/cpc.conf group=sys 59 $(sparc_ONLY)file path=platform/sun4u/kernel/drv/$(ARCH64)/cpc group=sys 60 $(sparc_ONLY)file path=platform/sun4u/kernel/drv/cpc.conf group=sys 61 $(sparc_ONLY)file path=platform/sun4v/kernel/drv/$(ARCH64)/cpc group=sys 62 $(sparc_ONLY)file path=platform/sun4v/kernel/drv/cpc.conf group=sys 63 $(i386_ONLY)hardlink path=platform/i86pc/kernel/sys/$(ARCH64)/cpc \ 64 target=../../drv/$(ARCH64)/cpc 65 $(sparc_ONLY)hardlink path=platform/sun4u/kernel/sys/$(ARCH64)/cpc \ [all …]
|
/titanic_50/usr/src/cmd/dtrace/test/tst/common/cpc/ |
H A D | err.toomanyenablings.d | 44 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:::PAPI_tot_ins-all-10009
|
H A D | err.D_PDESC_ZERO.nonexistentevent.d | 37 cpc:::PAPI_cpc_bad-all-10000
|
H A D | err.D_PDESC_ZERO.lowfrequency.d | 43 cpc:::PAPI_tot_ins-all-100
|
H A D | err.D_PDESC_ZERO.malformedoverflow.d | 37 cpc:::PAPI_tot_ins-all-10000bonehead
|
H A D | tst.genericevent.d | 39 cpc:::PAPI_tot_ins-all-10000
|
H A D | err.cpcvscpustatpart2.ksh | 47 cpc:::PAPI_tot_ins-all-10000
|
H A D | err.cputrackterminates.ksh | 40 cpc:::PAPI_tot_ins-all-10000
|
/titanic_50/usr/src/cmd/cpc/common/ |
H A D | setgrp.c | 62 cpc_t *cpc; /* library handle */ member 68 cpc_setgrp_new(cpc_t *cpc, int smt) in cpc_setgrp_new() argument 74 sgrp->cpc = cpc; in cpc_setgrp_new() 125 if ((set = cpc_strtoset(sgrp->cpc, spec, sgrp->smt)) == NULL) { in cpc_setgrp_newset() 146 cpc_walk_requests(sgrp->cpc, set, &(sgrp->sets[sgrp->nelem]), in cpc_setgrp_newset() 161 cpc_walk_requests(sgrp->cpc, set, sgrp->sets[sgrp->nelem].picnums, in cpc_setgrp_newset() 182 if ((sgrp->sets[sgrp->nelem].data1 = cpc_buf_create(sgrp->cpc, set)) in cpc_setgrp_newset() 184 (sgrp->sets[sgrp->nelem].data2 = cpc_buf_create(sgrp->cpc, set)) in cpc_setgrp_newset() 186 (sgrp->sets[sgrp->nelem].scratch = cpc_buf_create(sgrp->cpc, set)) in cpc_setgrp_newset() 225 new->cpc = old->cpc; in cpc_setgrp_clone() [all …]
|
H A D | caps.c | 119 allpics_equal(cpc_t *cpc) in allpics_equal() argument 121 int npics = cpc_npic(cpc); in allpics_equal() 133 cpc_walk_events_pic(cpc, i, lists[i], cap_walker); in allpics_equal() 154 capabilities(cpc_t *cpc, FILE *fp) in capabilities() argument 159 int npic = cpc_npic(cpc); in capabilities() 160 int i, pics_equal = allpics_equal(cpc); in capabilities() 164 if ((ccp = cpc_cciname(cpc)) == NULL) in capabilities() 179 cpc_walk_generic_events_pic(cpc, 0, args, list_cap); in capabilities() 187 cpc_walk_generic_events_pic(cpc, i, args, list_cap); in capabilities() 200 cpc_walk_events_pic(cpc, 0, args, list_cap); in capabilities() [all …]
|
H A D | cputrack.c | 63 static cpc_t *cpc; variable 116 if ((cpc = cpc_open(CPC_VER_CURRENT)) == NULL) { in main() 123 (void) cpc_seterrhndlr(cpc, cputrack_errfn); in main() 132 if ((opts->master = cpc_setgrp_new(cpc, 0)) == NULL) { in main() 225 (void) capabilities(cpc, stdout); in main() 247 (void) cpc_close(cpc); in main() 301 mstimestamp(cpc_buf_hrtime(cpc, buf))); in print_sample() 307 cpc_buf_tick(cpc, buf)); in print_sample() 309 (void) cpc_buf_get(cpc, buf, i, &val); in print_sample() 366 if (cpc_bind_pctx(cpc, pctx, lwpid, set, 0) != 0 || in pinit_lwp() [all …]
|
H A D | cpustat.c | 86 static cpc_t *cpc; variable 144 if ((cpc = cpc_open(CPC_VER_CURRENT)) == NULL) { in main() 151 (void) cpc_seterrhndlr(cpc, cpustat_errfn); in main() 157 smt = smt_limited_cpc_hw(cpc); in main() 165 if ((opts->master = cpc_setgrp_new(cpc, smt)) == NULL) { in main() 269 (void) capabilities(cpc, stdout); in main() 300 (void) cpc_close(cpc); in main() 325 hrtime = cpc_buf_hrtime(cpc, buf); in print_sample() 326 tick = cpc_buf_tick(cpc, buf); in print_sample() 334 (void) cpc_buf_get(cpc, buf, i, &val); in print_sample() [all …]
|
H A D | cpucmds.h | 42 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 D | strtoset.c | 89 static cpc_t *cpc; variable 121 cpc_walk_events_pic(cpc, picnum, event, event_walker); in event_valid() 126 cpc_walk_generic_events_pic(cpc, picnum, event, event_walker); in event_valid() 315 cpc_count_attrs(cpc_t *cpc) in cpc_count_attrs() argument 319 cpc_walk_attrs(cpc, &nattrs, attr_count_walker); in cpc_count_attrs() 351 cpc = cpcin; in cpc_strtoset() 354 ncounters = cpc_npic(cpc); in cpc_strtoset() 410 nattrs = cpc_count_attrs(cpc); in cpc_strtoset() 414 cpc_walk_attrs(cpc, &i, attr_walker); in cpc_strtoset() 514 if ((set = cpc_set_create(cpc)) == NULL) { in cpc_strtoset() [all …]
|
/titanic_50/usr/src/cmd/mdb/intel/amd64/cpc/ |
H A D | Makefile | 28 MODULE = cpc.so 31 MODSRCS = cpc.c
|
/titanic_50/usr/src/cmd/mdb/sparc/v9/cpc/ |
H A D | Makefile | 28 MODULE = cpc.so 31 MODSRCS = cpc.c
|
/titanic_50/usr/src/lib/libcpc/i386/ |
H A D | event_pentium.c | 691 __cpc_eventtoset(cpc_t *cpc, cpc_event_t *event, int iflags) in __cpc_eventtoset() argument 703 if ((set = cpc_set_create(cpc)) == NULL) { in __cpc_eventtoset() 722 (void) cpc_set_destroy(cpc, set); in __cpc_eventtoset() 747 (void) cpc_set_destroy(cpc, set); in __cpc_eventtoset() 790 if (cpc_set_add_request(cpc, set, pic[i], in __cpc_eventtoset() 792 (void) cpc_set_destroy(cpc, set); in __cpc_eventtoset() 813 (void) cpc_set_destroy(cpc, set); in __cpc_eventtoset() 828 (void) cpc_set_destroy(cpc, set); in __cpc_eventtoset() 852 if (cpc_set_add_request(cpc, set, pic[i], in __cpc_eventtoset() 854 (void) cpc_set_destroy(cpc, set); in __cpc_eventtoset() [all …]
|
/titanic_50/usr/src/lib/libpctx/common/ |
H A D | libpctx.c | 69 cpc_t *cpc; member 72 static void (*pctx_cpc_callback)(cpc_t *cpc, struct __pctx *pctx); 463 if (pctx->cpc != NULL && pctx_cpc_callback != NULL) in pctx_free() 464 (*pctx_cpc_callback)(pctx->cpc, pctx); in pctx_free() 870 __pctx_cpc(pctx_t *pctx, cpc_t *cpc, in __pctx_cpc() argument 884 if (pctx->cpc != NULL && pctx->cpc != cpc && pctx_cpc_callback != NULL) in __pctx_cpc() 885 (*pctx_cpc_callback)(pctx->cpc, pctx); in __pctx_cpc() 886 pctx->cpc = cpc; in __pctx_cpc()
|
/titanic_50/usr/src/lib/libcpc/sparc/ |
H A D | event_ultra.c | 451 __cpc_eventtoset(cpc_t *cpc, cpc_event_t *event, int iflags) in __cpc_eventtoset() argument 487 if ((set = cpc_set_create(cpc)) == NULL) in __cpc_eventtoset() 490 if (cpc_set_add_request(cpc, set, pic[0], event->ce_pic[0], flag, in __cpc_eventtoset() 495 if (cpc_set_add_request(cpc, set, pic[1], event->ce_pic[1], flag, in __cpc_eventtoset() 506 (void) cpc_set_destroy(cpc, set); in __cpc_eventtoset()
|
/titanic_50/usr/src/cmd/mdb/common/modules/cpc/ |
H A D | cpc.c | 51 cpc(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) in cpc() function 216 { "cpc", "?[-v]", "Display contents of CPC context", cpc, cpc_help },
|