Lines Matching refs:Ev
271 } Ev;
275 static void init_Event ( Event* ev ) {
276 VG_(memset)(ev, 0, sizeof(Event));
279 static IRAtom* get_Event_dea ( Event* ev ) {
280 switch (ev->tag) {
281 case Ev_Dr: return ev->Ev.Dr.ea;
282 case Ev_Dw: return ev->Ev.Dw.ea;
283 case Ev_Dm: return ev->Ev.Dm.ea;
288 static Int get_Event_dszB ( Event* ev ) {
289 switch (ev->tag) {
290 case Ev_Dr: return ev->Ev.Dr.szB;
291 case Ev_Dw: return ev->Ev.Dw.szB;
292 case Ev_Dm: return ev->Ev.Dm.szB;
329 static void showEvent ( Event* ev )
331 switch (ev->tag) {
334 ev->inode, ev->inode->instr_offset);
338 ev->inode, ev->inode->instr_offset, ev->Ev.Dr.szB);
339 ppIRExpr(ev->Ev.Dr.ea);
344 ev->inode, ev->inode->instr_offset, ev->Ev.Dw.szB);
345 ppIRExpr(ev->Ev.Dw.ea);
350 ev->inode, ev->inode->instr_offset, ev->Ev.Dm.szB);
351 ppIRExpr(ev->Ev.Dm.ea);
355 VG_(printf)("Bc %p GA=", ev->inode);
356 ppIRExpr(ev->Ev.Bc.taken);
360 VG_(printf)("Bi %p DST=", ev->inode);
361 ppIRExpr(ev->Ev.Bi.dst);
365 VG_(printf)("G %p\n", ev->inode);
385 Event* ev;
393 ev = &clgs->events[i];
394 switch(ev->tag) {
397 CLG_ASSERT(ev->inode->eventset == 0);
398 ev->inode->eventset = CLG_(sets).base;
402 ev->inode->eventset = CLG_(add_event_group)(ev->inode->eventset,
408 ev->inode->eventset = CLG_(add_event_group)(ev->inode->eventset,
413 ev->inode->eventset = CLG_(add_event_group)(ev->inode->eventset,
418 ev->inode->eventset = CLG_(add_event_group)(ev->inode->eventset,
423 ev->inode->eventset = CLG_(add_event_group)(ev->inode->eventset,
443 ev = &clgs->events[i];
449 showEvent( ev );
452 i_node_expr = mkIRExpr_HWord( (HWord)ev->inode );
457 switch (ev->tag) {
469 tl_assert(ev2->inode == ev->inode);
481 tl_assert(ev2->inode == ev->inode);
525 get_Event_dea(ev),
526 mkIRExpr_HWord( get_Event_dszB(ev) ) );
536 get_Event_dea(ev),
537 mkIRExpr_HWord( get_Event_dszB(ev) ) );
545 argv = mkIRExprVec_2( i_node_expr, ev->Ev.Bc.taken );
553 argv = mkIRExprVec_2( i_node_expr, ev->Ev.Bi.dst );
631 evt->Ev.Dr.szB = datasize;
632 evt->Ev.Dr.ea = ea;
650 && lastEvt->Ev.Dr.szB == datasize
652 && eqIRAtom(lastEvt->Ev.Dr.ea, ea))
666 evt->Ev.Dw.szB = datasize;
667 evt->Ev.Dw.ea = ea;
731 evt->Ev.Bc.taken = guard;
751 evt->Ev.Bi.dst = whereTo;