Lines Matching refs:events_used
580 Int events_used; member
706 while (i < cgs->events_used) { in flushEvents()
715 tl_assert(i >= 0 && i < cgs->events_used); in flushEvents()
718 ev2 = ( i < cgs->events_used-1 ? &cgs->events[i+1] : NULL ); in flushEvents()
719 ev3 = ( i < cgs->events_used-2 ? &cgs->events[i+2] : NULL ); in flushEvents()
872 cgs->events_used = 0; in flushEvents()
878 if (cgs->events_used == N_EVENTS) in addEvent_Ir()
880 tl_assert(cgs->events_used >= 0 && cgs->events_used < N_EVENTS); in addEvent_Ir()
881 evt = &cgs->events[cgs->events_used]; in addEvent_Ir()
891 cgs->events_used++; in addEvent_Ir()
902 if (cgs->events_used == N_EVENTS) in addEvent_Dr()
904 tl_assert(cgs->events_used >= 0 && cgs->events_used < N_EVENTS); in addEvent_Dr()
905 evt = &cgs->events[cgs->events_used]; in addEvent_Dr()
911 cgs->events_used++; in addEvent_Dr()
926 if (cgs->events_used > 0) { in addEvent_Dw()
927 Event* lastEvt = &cgs->events[cgs->events_used-1]; in addEvent_Dw()
939 if (cgs->events_used == N_EVENTS) in addEvent_Dw()
941 tl_assert(cgs->events_used >= 0 && cgs->events_used < N_EVENTS); in addEvent_Dw()
942 evt = &cgs->events[cgs->events_used]; in addEvent_Dw()
948 cgs->events_used++; in addEvent_Dw()
970 tl_assert(cgs->events_used >= 0); in addEvent_D_guarded()
972 tl_assert(cgs->events_used == 0); in addEvent_D_guarded()
1006 if (cgs->events_used == N_EVENTS) in addEvent_Bc()
1008 tl_assert(cgs->events_used >= 0 && cgs->events_used < N_EVENTS); in addEvent_Bc()
1009 evt = &cgs->events[cgs->events_used]; in addEvent_Bc()
1014 cgs->events_used++; in addEvent_Bc()
1026 if (cgs->events_used == N_EVENTS) in addEvent_Bi()
1028 tl_assert(cgs->events_used >= 0 && cgs->events_used < N_EVENTS); in addEvent_Bi()
1029 evt = &cgs->events[cgs->events_used]; in addEvent_Bi()
1034 cgs->events_used++; in addEvent_Bi()
1085 cgs.events_used = 0; in cg_instrument()