/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pci_counters.c | 99 pci_create_picN_kstat(char *mod_name, int pic, int pic_shift, argument 108 (void) sprintf(pic_name, "pic%d", pic); 128 * below as the pic value must be inverted. 191 (void) sprintf(pic_str, "pic%d", i); 219 uint64_t pic; local 227 pic = *cntr_addr_p->pic_addr; 231 data_p[1].value.ui64 = (pic <<32) >> 32; 233 data_p[2].value.ui64 = pic >> 32; 246 uint64_t pic; local [all...] |
/illumos-gate/usr/src/uts/sun4u/opl/io/pcicmu/ |
H A D | pcmu_counters.c | 87 pcmu_create_picN_kstat(char *mod_name, int pic, int pic_shift, argument 96 (void) sprintf(pic_name, "pic%d", pic); 115 * below as the pic value must be inverted. 171 (void) sprintf(pic_str, "pic%d", i); 196 uint64_t pic; local 203 pic = *cntr_addr_p->pic_addr; 207 data_p[1].value.ui64 = (pic <<32) >> 32; 209 data_p[2].value.ui64 = pic >> 32; 222 uint64_t pic; local [all...] |
/illumos-gate/usr/src/lib/libcpc/sparc/ |
H A D | event_ultra.c | 110 __cpc_error(fn, gettext("%%pic%d cannot measure " 208 char *pic[2]; local 240 pic[0] = pic[1] = NULL; 255 if (pic[0] != NULL) { 262 pic[0] = value; 264 if (pic[1] != NULL) { 271 pic[1] = value; 276 * See if it was an implicit pic specification.. 278 if (pic[ 349 uint8_t pic[2]; member in struct:xpcr 385 char *pic[2]; local 455 char *pic[2]; local [all...] |
/illumos-gate/usr/src/uts/sun4v/io/iospc/ |
H A D | iospc.c | 52 static kstat_t *iospc_create_picN_kstat(char *mod_name, int pic, 270 /* Create basic pic event-type pair. */ 369 iospc_create_picN_kstat(char *mod_name, int pic, uint64_t ev_offset, argument 377 (void) snprintf(pic_name, PIC_STR_LEN, "pic%1d", pic); 443 (void) snprintf(pic_str, PIC_STR_LEN, "pic%1d", i);
|
/illumos-gate/usr/src/uts/sun4v/io/n2piupc/ |
H A D | n2piupc_kstats.c | 44 static kstat_t *n2piupc_create_picN_kstat(char *mod_name, int pic, 69 /* Create basic pic event-type pair. */ 174 n2piupc_create_picN_kstat(char *mod_name, int pic, uint64_t ev_offset, argument 183 (void) snprintf(pic_name, PIC_STR_LEN, "pic%1d", pic); 253 (void) snprintf(pic_str, PIC_STR_LEN, "pic%1d", i);
|
/illumos-gate/usr/src/cmd/cpc/common/ |
H A D | strtoset.c | 156 * getsubopt(3C). We start our search for an available pic _after_ the highest 174 * Find the first unavailable pic, after which we must start our search. 206 pic(int tok, char *val) function 210 * Make sure the each pic only appears in the spec once. 213 strtoset_err(gettext("repeated 'pic%d' token\n"), picnum); 218 strtoset_err(gettext("missing 'pic%d' value\n"), picnum); 223 strtoset_err(gettext("pic%d cannot measure event '%s' on this " 364 * Each pic will have at least one attribute: the physical pic 431 (void) snprintf(toks[x], TOK_SIZE, "pic [all...] |
/illumos-gate/usr/src/uts/sun4v/cpu/ |
H A D | niagara_perfctr.c | 345 /* create basic pic event/mask pair (only once) */ 385 /* create basic pic event/mask pair (only once) */ 421 /* create basic pic event/mask pair (only once) */ 457 /* create basic pic event/mask pair (only once) */ 600 ni_create_picN_kstat(char *mod_name, int pic, int pic_sel_shift, argument 609 (void) sprintf(pic_name, "pic%d", pic); 629 * below as the pic value must be inverted. 693 (void) sprintf(pic_str, "pic%d", i); 778 uint64_t pic, pc local [all...] |
/illumos-gate/usr/src/uts/sun4/io/fpc/ |
H A D | fpc-kstats.c | 74 static kstat_t *fpc_create_picN_kstat(char *mod_name, int pic, 330 /* Create basic pic event-type pair (only once) */ 401 fpc_create_picN_kstat(char *mod_name, int pic, int pic_sel_shift, int num_ev, argument 409 (void) snprintf(pic_name, sizeof (pic_name), "pic%d", pic); 444 FPC_DBG2("fpc_create_picN_kstat: name %s, pic %d, num_ev %d, " 445 "pic_sel_shift %d\n", mod_name, pic, num_ev, pic_sel_shift); 482 (void) snprintf(pic_str, sizeof (pic_str), "pic%d", i);
|
/illumos-gate/usr/src/lib/libcpc/common/ |
H A D | libcpc.c | 59 static int cpc_valid_event(cpc_t *cpc, uint_t pic, const char *ev); 316 * the pic can count the requested event. 907 * the designated pic. 1162 cpc_valid_event(cpc_t *cpc, uint_t pic, const char *ev) argument 1169 cpc_walk_events_pic(cpc, pic, &pr, ev_walker); 1173 cpc_walk_generic_events_pic(cpc, pic, &pr, ev_walker);
|
/illumos-gate/usr/src/lib/libcpc/i386/ |
H A D | event_pentium.c | 372 char *pic[2]; local 404 pic[0] = pic[1] = NULL; 419 if (pic[0] != NULL) { 426 pic[0] = value; 428 if (pic[1] != NULL) { 435 pic[1] = value; 440 * See if it was an implicit pic specification.. 442 if (pic[0] == NULL) { 449 pic[ 589 char *pic[2]; local 695 char *pic[2]; local [all...] |
/illumos-gate/usr/src/cmd/busstat/ |
H A D | busstat.c | 307 "pic kstat data structure for %s\n"), 315 "pic kstat.\n"), pgmname); 322 (void) printf(gettext("pic%-8d\n"), i-1); 398 "event names or pic values not " 405 * Now dealing with pic values. 520 (void) fprintf(stderr, gettext("%s: no pic number " 525 if (strncmp(value, "pic", PIC_STR_LEN) != 0) { 526 (void) fprintf(stderr, gettext("%s: missing pic " 532 * Step over the 'pic' part of the string to 533 * get the pic numbe 1437 find_pic_kstat(char *dev_name, int inst_num, char *pic) argument [all...] |
/illumos-gate/usr/src/uts/sun4v/pcbe/ |
H A D | niagara2_pcbe.c | 131 uint32_t pcbe_pic; /* unshifted raw %pic value */ 419 uint64_t pic; local 432 pic = ultra_getpic(); 433 pic0 = (uint32_t)(pic & PIC0_MASK); 434 pic1 = (uint32_t)((pic >> PIC1_SHIFT) & PIC0_MASK);
|
/illumos-gate/usr/src/tools/cw/ |
H A D | cw.c | 94 * -pic Alias for -Kpic or -xcode=pic13 221 * -pic -fpic (C++ only) 438 "abs32", "-fno-pic", "-mcmodel=medlow", NULL, 439 "abs44", "-fno-pic", "-mcmodel=medmid", NULL, 440 "abs64", "-fno-pic", "-mcmodel=medany", NULL, 642 int pic = 0, nolibc = 0; local 745 if (strcmp(arg, "-pic") == 0) { 747 pic = 1; 752 pic = 1; 932 if (strcmp(arg, "pic") [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | kcpc.c | 759 kcpc_pic_t *pic; local 781 pic = &ctx->kc_pics[i]; 783 if (pic->kp_req != NULL && 784 current == pic->kp_req->kr_config) 793 pic = &ctx->kc_pics[i]; 794 if (pic->kp_req != NULL) 1187 * if that pic generated an overflow and if the request it was counting 1409 * set to UINT64_MAX, and their pic's overflow flag turned on 2494 kcpc_list_events(uint_t pic) argument 2498 return (pcbe_ops->pcbe_list_events(pic)); [all...] |
/illumos-gate/usr/src/uts/sun4u/starcat/io/ |
H A D | axq.c | 1347 * Routine to create a kstat for each %pic that 1349 * kstats export event names that the respective %pic 1360 int event, pic; local 1369 for (pic = 0; pic < AXQ_NUM_PICS; pic++) { 1373 (void) sprintf(pic_name, "pic%d", pic); 1375 num_events = (pic <= 1) ? AXQ_PIC0_1_NUM_EVENTS : 1378 if ((axq_picN_ksp[pic] [all...] |
/illumos-gate/usr/src/uts/sun4u/sunfire/io/ |
H A D | ac.c | 792 * This provides access to the %pcr and %pic 828 * called from ac_add_kstats() to create a kstat for each %pic 830 * event names and %pcr masks that each %pic supports. 896 * array of clear masks for each pic. 898 * each pic. 908 int event, pic; local 913 for (pic = 0; pic < AC_NUM_PICS; pic++) { 918 (void) sprintf(pic_name, "pic 981 int pic; local [all...] |
/illumos-gate/usr/src/uts/sun4u/pcbe/ |
H A D | opl_pcbe.c | 123 uint32_t opl_pic; /* unshifted raw %pic value */ 714 opl_pcbe_config_t *pic[CPC_SPARC64_VI_NPIC]; local 719 uint8_t bitmap = 0; /* for used pic config */ 723 /* Get next pic config */ 729 pic[tmp->opl_picno] = tmp; 736 /* Fill in unused pic config */ 743 pic[i] = &dummypic[i]; 755 SPARC64_VI_PCR_SEL_EVENT(pcr, pic[i*2]->opl_bits, 756 pic[i*2 + 1]->opl_bits); 759 curpic = (uint64_t)(pic[ 815 opl_pcbe_config_t *pic[CPC_SPARC64_VI_NPIC]; local [all...] |
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | sysiosbus.c | 640 int instance, pic; local 687 for (pic = 0; pic < SBUS_NUM_PICS; pic++) { 688 if (sbus_picN_ksp[pic] != (kstat_t *)NULL) { 689 kstat_delete(sbus_picN_ksp[pic]); 690 sbus_picN_ksp[pic] = NULL; 2373 * called from sbus_add_kstats() to create a kstat for each %pic 2375 * event names that each %pic supports. 2413 * We declare an array of clear masks for each pic 2425 int event, pic; local [all...] |