Lines Matching refs:act
311 static void show_active ( const HChar* left, const Active* act );
789 Active act; in generate_and_add_actives() local
832 act.from_addr = sym_avmas.main; in generate_and_add_actives()
833 act.to_addr = sp->to_addr; in generate_and_add_actives()
834 act.parent_spec = parent_spec; in generate_and_add_actives()
835 act.parent_sym = parent_sym; in generate_and_add_actives()
836 act.becTag = sp->becTag; in generate_and_add_actives()
837 act.becPrio = sp->becPrio; in generate_and_add_actives()
838 act.isWrap = sp->isWrap; in generate_and_add_actives()
839 act.isIFunc = isIFunc; in generate_and_add_actives()
841 maybe_add_active( act ); in generate_and_add_actives()
850 act.from_addr = GET_LOCAL_EP_AVMA(sym_avmas); in generate_and_add_actives()
851 maybe_add_active( act ); in generate_and_add_actives()
915 static void maybe_add_active ( Active act ) in maybe_add_active() argument
931 if (!is_plausible_guest_addr(act.from_addr) in maybe_add_active()
933 && act.from_addr != 0xFFFFFFFFFF600000ULL in maybe_add_active()
934 && act.from_addr != 0xFFFFFFFFFF600400ULL in maybe_add_active()
935 && act.from_addr != 0xFFFFFFFFFF600800ULL in maybe_add_active()
942 old = VG_(OSetGen_Lookup)( activeSet, &act.from_addr ); in maybe_add_active()
945 vg_assert(old->from_addr == act.from_addr); in maybe_add_active()
946 if (old->to_addr != act.to_addr) { in maybe_add_active()
958 vg_assert(act.becTag >= 0 && act.becTag <= 9999); in maybe_add_active()
959 vg_assert(act.becPrio >= 0 && act.becPrio <= 9); in maybe_add_active()
962 if (act.becTag == 0) in maybe_add_active()
963 vg_assert(act.becPrio == 0); in maybe_add_active()
965 if (old->becTag == 0 || act.becTag == 0 || old->becTag != act.becTag) { in maybe_add_active()
973 if (act.becPrio <= old->becPrio) { in maybe_add_active()
978 act.becPrio < old->becPrio ? "lower priority" in maybe_add_active()
981 show_active( " new: ", &act); in maybe_add_active()
991 show_active( " new: ", &act); in maybe_add_active()
994 void* oldNd = VG_(OSetGen_Remove)( activeSet, &act.from_addr ); in maybe_add_active()
1015 *a = act; in maybe_add_active()
1022 VG_(discard_translations)( act.from_addr, 1, in maybe_add_active()
1024 VG_(discard_translations)( act.to_addr, 1, in maybe_add_active()
1028 show_active( " new: ", &act); in maybe_add_active()
1041 show_active( " new: ", &act); in maybe_add_active()
1057 Active* act; in VG_() local
1084 while ( (act = VG_(OSetGen_Next)(activeSet)) ) { in VG_()
1085 delMe = act->parent_spec != NULL in VG_()
1086 && act->parent_sym != NULL in VG_()
1087 && act->parent_spec->seginfo != NULL in VG_()
1088 && act->parent_sym->seginfo != NULL in VG_()
1089 && (act->parent_spec->mark || act->parent_sym->mark); in VG_()
1096 && act->parent_spec != NULL in VG_()
1097 && act->parent_sym != NULL ) { in VG_()
1098 if (!is_plausible_guest_addr(act->from_addr)) in VG_()
1100 if (!is_plausible_guest_addr(act->to_addr)) in VG_()
1105 VG_(OSetWord_Insert)( tmpSet, act->from_addr ); in VG_()
1108 VG_(discard_translations)( act->from_addr, 1, in VG_()
1110 VG_(discard_translations)( act->to_addr, 1, in VG_()
1118 act = VG_(OSetGen_Remove)( activeSet, &addr ); in VG_()
1119 vg_assert(act); in VG_()
1120 VG_(OSetGen_FreeNode)( activeSet, act ); in VG_()
1180 Active act; in add_hardwired_active() local
1181 act.from_addr = from; in add_hardwired_active()
1182 act.to_addr = to; in add_hardwired_active()
1183 act.parent_spec = NULL; in add_hardwired_active()
1184 act.parent_sym = NULL; in add_hardwired_active()
1185 act.becTag = 0; /* "not equivalent to any other fn" */ in add_hardwired_active()
1186 act.becPrio = 0; /* mandatory when becTag == 0 */ in add_hardwired_active()
1187 act.isWrap = False; in add_hardwired_active()
1188 act.isIFunc = False; in add_hardwired_active()
1189 maybe_add_active( act ); in add_hardwired_active()
1784 static void show_active ( const HChar* left, const Active* act ) in show_active() argument
1789 ok = VG_(get_fnname_w_offset)(act->from_addr, &buf); in show_active()
1796 ok = VG_(get_fnname_w_offset)(act->to_addr, &name2); in show_active()
1801 act->from_addr, name1, in show_active()
1802 act->isWrap ? "W" : "R", in show_active()
1803 act->becTag, act->becPrio, in show_active()
1804 act->to_addr, name2 ); in show_active()
1811 Active* act; in show_redir_state() local
1829 while ( (act = VG_(OSetGen_Next)(activeSet)) ) { in show_redir_state()
1830 show_active(" ", act); in show_redir_state()