Lines Matching refs:ai
119 AddrInfo ai; member
124 AddrInfo ai; member
137 AddrInfo ai; member
146 AddrInfo ai; member
155 AddrInfo ai; member
161 AddrInfo ai; member
180 AddrInfo ai; member
514 &extra->Err.MemParam.ai, False); in MC_()
526 &extra->Err.MemParam.ai, False); in MC_()
544 VG_(pp_addrinfo_mc)(VG_(get_error_address)(err), &extra->Err.User.ai, in MC_()
554 VG_(pp_addrinfo_mc)(VG_(get_error_address)(err), &extra->Err.User.ai, in MC_()
569 &extra->Err.Free.ai, False ); in MC_()
574 &extra->Err.Free.ai, False ); in MC_()
584 &extra->Err.FreeMismatch.ai, False); in MC_()
589 &extra->Err.FreeMismatch.ai, False); in MC_()
602 &extra->Err.Addr.ai, in MC_()
611 &extra->Err.Addr.ai, in MC_()
622 VG_(pp_addrinfo_mc)( VG_(get_error_address)(err), &extra->Err.Jump.ai, in MC_()
627 VG_(pp_addrinfo_mc)( VG_(get_error_address)(err), &extra->Err.Jump.ai, in MC_()
671 &extra->Err.IllegalMempool.ai, False ); in MC_()
676 &extra->Err.IllegalMempool.ai, False ); in MC_()
759 extra.Err.Addr.ai.tag = Addr_Undescribed; in MC_()
817 extra.Err.MemParam.ai.tag = Addr_Undescribed; in MC_()
827 extra.Err.Jump.ai.tag = Addr_Undescribed; in MC_()
835 extra.Err.Free.ai.tag = Addr_Undescribed; in MC_()
842 AddrInfo* ai = &extra.Err.FreeMismatch.ai; in MC_() local
844 ai->tag = Addr_Block; in MC_()
845 ai->Addr.Block.block_kind = Block_Mallocd; // Nb: Not 'Block_Freed' in MC_()
846 ai->Addr.Block.block_desc = "block"; in MC_()
847 ai->Addr.Block.block_szB = mc->szB; in MC_()
848 ai->Addr.Block.rwoffset = 0; in MC_()
849 ai->Addr.Block.allocated_at = MC_(allocated_at) (mc); in MC_()
850 VG_(initThreadInfo) (&ai->Addr.Block.alloc_tinfo); in MC_()
851 ai->Addr.Block.freed_at = MC_(freed_at) (mc); in MC_()
860 extra.Err.IllegalMempool.ai.tag = Addr_Undescribed; in MC_()
922 extra.Err.User.ai.tag = Addr_Undescribed; in MC_()
1018 static Bool client_block_maybe_describe( Addr a, AddrInfo* ai );
1019 static Bool mempool_block_maybe_describe( Addr a, AddrInfo* ai );
1024 static void describe_addr ( Addr a, /*OUT*/AddrInfo* ai ) in describe_addr() argument
1028 tl_assert(Addr_Undescribed == ai->tag); in describe_addr()
1031 if (client_block_maybe_describe( a, ai )) { in describe_addr()
1035 if (mempool_block_maybe_describe( a, ai )) { in describe_addr()
1050 ai->tag = Addr_Block; in describe_addr()
1051 ai->Addr.Block.block_kind = Block_Mallocd; in describe_addr()
1053 ai->Addr.Block.block_desc = "recently re-allocated block"; in describe_addr()
1055 ai->Addr.Block.block_desc = "block"; in describe_addr()
1056 ai->Addr.Block.block_szB = mc->szB; in describe_addr()
1057 ai->Addr.Block.rwoffset = (Word)a - (Word)mc->data; in describe_addr()
1058 ai->Addr.Block.allocated_at = MC_(allocated_at)(mc); in describe_addr()
1059 VG_(initThreadInfo) (&ai->Addr.Block.alloc_tinfo); in describe_addr()
1060 ai->Addr.Block.freed_at = MC_(freed_at)(mc); in describe_addr()
1067 ai->tag = Addr_Block; in describe_addr()
1068 ai->Addr.Block.block_kind = Block_Freed; in describe_addr()
1069 ai->Addr.Block.block_desc = "block"; in describe_addr()
1070 ai->Addr.Block.block_szB = mc->szB; in describe_addr()
1071 ai->Addr.Block.rwoffset = (Word)a - (Word)mc->data; in describe_addr()
1072 ai->Addr.Block.allocated_at = MC_(allocated_at)(mc); in describe_addr()
1073 VG_(initThreadInfo) (&ai->Addr.Block.alloc_tinfo); in describe_addr()
1074 ai->Addr.Block.freed_at = MC_(freed_at)(mc); in describe_addr()
1079 VG_(describe_addr) (a, ai); in describe_addr()
1084 AddrInfo ai; in MC_() local
1086 ai.tag = Addr_Undescribed; in MC_()
1087 describe_addr (a, &ai); in MC_()
1088 VG_(pp_addrinfo_mc) (a, &ai, /* maybe_gcc */ False); in MC_()
1089 VG_(clear_addrinfo) (&ai); in MC_()
1142 &extra->Err.Addr.ai ); in MC_()
1146 &extra->Err.MemParam.ai ); in MC_()
1152 &extra->Err.Jump.ai ); in MC_()
1156 &extra->Err.User.ai ); in MC_()
1162 &extra->Err.Free.ai ); in MC_()
1166 &extra->Err.IllegalMempool.ai ); in MC_()
1175 extra->Err.FreeMismatch.ai.Addr.Block.block_kind); in MC_()
1177 &extra->Err.FreeMismatch.ai ); in MC_()
1187 /*OUT*/AddrInfo* ai ) in client_block_maybe_describe() argument
1203 ai->tag = Addr_Block; in client_block_maybe_describe()
1204 ai->Addr.Block.block_kind = Block_UserG; in client_block_maybe_describe()
1205 ai->Addr.Block.block_desc = cgbs[i].desc; in client_block_maybe_describe()
1206 ai->Addr.Block.block_szB = cgbs[i].size; in client_block_maybe_describe()
1207 ai->Addr.Block.rwoffset = (Word)(a) - (Word)(cgbs[i].start); in client_block_maybe_describe()
1208 ai->Addr.Block.allocated_at = cgbs[i].where; in client_block_maybe_describe()
1209 VG_(initThreadInfo) (&ai->Addr.Block.alloc_tinfo); in client_block_maybe_describe()
1210 ai->Addr.Block.freed_at = VG_(null_ExeContext)();; in client_block_maybe_describe()
1219 /*OUT*/AddrInfo* ai ) in mempool_block_maybe_describe() argument
1231 ai->tag = Addr_Block; in mempool_block_maybe_describe()
1232 ai->Addr.Block.block_kind = Block_MempoolChunk; in mempool_block_maybe_describe()
1233 ai->Addr.Block.block_desc = "block"; in mempool_block_maybe_describe()
1234 ai->Addr.Block.block_szB = mc->szB; in mempool_block_maybe_describe()
1235 ai->Addr.Block.rwoffset = (Word)a - (Word)mc->data; in mempool_block_maybe_describe()
1236 ai->Addr.Block.allocated_at = MC_(allocated_at)(mc); in mempool_block_maybe_describe()
1237 VG_(initThreadInfo) (&ai->Addr.Block.alloc_tinfo); in mempool_block_maybe_describe()
1238 ai->Addr.Block.freed_at = MC_(freed_at)(mc); in mempool_block_maybe_describe()