Lines Matching refs:xpes
536 struct xpes {
543 unmake_pes(uint32_t pes, int cpuver, struct xpes *xpes)
545 xpes->cmask = (uint8_t)(pes >> CPC_P6_PES_CMASK_SHIFT);
546 xpes->pc = (pes >> CPC_P6_PES_PC) & 1u;
547 xpes->inv = (pes >> CPC_P6_PES_INV) & 1u;
548 xpes->irupt = (pes >> CPC_P6_PES_INT) & 1u;
549 xpes->edge = (pes >> CPC_P6_PES_E) & 1u;
550 xpes->sys = (pes >> CPC_P6_PES_OS) & 1u;
551 xpes->usr = (pes >> CPC_P6_PES_USR) & 1u;
552 xpes->umask = (uint8_t)(pes >> CPC_P6_PES_UMASK_SHIFT);
553 xpes->evsel = (uint8_t)pes;
597 struct xpes xpes[2];
599 unmake_pes(event->ce_pes[0], cpuver, &xpes[0]);
600 if ((pic[0] = regtostr(cpuver, 0, xpes[0].evsel)) == NULL)
603 unmake_pes(event->ce_pes[1], cpuver, &xpes[1]);
604 if ((pic[1] = regtostr(cpuver, 1, xpes[1].evsel)) == NULL) {
612 masktostr(buffer, xpes[0].cmask, tokens[D_cmask0]);
613 masktostr(buffer, xpes[1].cmask, tokens[D_cmask1]);
614 masktostr(buffer, xpes[0].umask, tokens[D_umask0]);
615 masktostr(buffer, xpes[1].umask, tokens[D_umask1]);
617 xpes[0].usr, xpes[1].usr, 1, tokens[D_nouser]);
619 xpes[0].sys, xpes[1].sys, 0, tokens[D_sys]);
621 xpes[0].edge, xpes[1].edge, 1, tokens[D_noedge]);
623 xpes[0].irupt, xpes[1].irupt, 0, tokens[D_int]);
625 xpes[0].inv, xpes[1].inv, 0, tokens[D_inv]);
627 xpes[0].pc, xpes[1].pc, 0, tokens[D_pc]);
714 struct xpes xpes[2];
719 unmake_pes(event->ce_pes[i], cpuver, &xpes[i]);
721 xpes[i].evsel)) == NULL) {
725 if (xpes[i].usr == 1)
727 if (xpes[i].sys == 1)
729 if (xpes[i].irupt == 1) {
734 if (xpes[i].cmask)
736 if (xpes[i].umask)
738 if (xpes[i].inv)
740 if (xpes[i].pc)
742 if (xpes[i].edge == 0)
764 if (xpes[i].cmask) {
766 attr[j].ca_val = xpes[i].cmask;
769 if (xpes[i].umask) {
771 attr[j].ca_val = xpes[i].umask;
774 if (xpes[i].inv) {
779 if (xpes[i].pc) {
784 if (xpes[i].edge == 0) {