/external/valgrind/main/memcheck/tests/ |
calloc-overflow.c | 13 size_t szB = 0x1000000010000001ULL; 15 size_t szB = 0x10000001UL; 17 x = calloc(szB, 0x10);
|
/external/valgrind/main/tests/ |
malloc.h | 14 static void* memalign16(size_t szB) 19 x = malloc(szB); 21 x = memalign(16, szB);
|
/external/valgrind/main/memcheck/ |
mc_malloc_wrappers.c | 78 MC_Chunk* create_MC_Chunk ( ThreadId tid, Addr p, SizeT szB, 102 const int l = (mc->szB >= MC_(clo_freelist_big_blocks) ? 0 : 1); 113 if (mc->szB >= MC_(clo_freelist_vol)) { 122 VG_(free_queue_volume) += (Long)mc->szB; 149 VG_(free_queue_volume) -= (Long)mc1->szB; 178 if (VG_(addr_is_in_block)( a, mc->data, mc->szB, 190 MC_Chunk* create_MC_Chunk ( ThreadId tid, Addr p, SizeT szB, 195 mc->szB = szB; 241 if (found_mc->szB != mc->sz [all...] |
mc_leakcheck.c | 272 a_hi = ((Addr)chunks[i]->data) + chunks[i]->szB; 300 a_mid_hi = chunks[mid]->data + chunks[mid]->szB; 307 if (chunks[mid]->szB == 0) 379 if (mc->szB > 1) { 380 m = find_chunk_for(mc->data + (mc->szB - 1), mallocs, n_mallocs); 547 tl_assert(ptr < ch->data + ch->szB + (ch->szB==0 ? 1 : 0)); 566 VG_(printf)("pushing %#lx-%#lx\n", ch->data, ch->data + ch->szB); 698 if (3 * sizeof(SizeT) + capacity + 1 == ch->szB 734 if (nr_elts > 0 && (ch->szB - sizeof(SizeT)) % nr_elts == 0) [all...] |
mc_errors.c | 93 SizeT szB; // size of value in bytes 115 SizeT szB; // not used for exec (jump) errors 166 SizeT szB; // Size in bytes; 0 if unused. 306 lr->szB + lr->indirect_szB, 310 lr->szB, 329 lr->szB + lr->indirect_szB, d_bytes, 330 lr->szB, d_direct_bytes, 337 lr->szB + lr->indirect_szB ); 344 lr->szB, d_direct_bytes, 348 emit( " <leakedbytes>%ld</leakedbytes>\n", lr->szB); [all...] |
/external/valgrind/main/include/ |
pub_tool_gdbserver.h | 112 extern Bool VG_(is_watched)(PointKind kind, Addr addr, Int szB); 182 If no size in the string, keeps the current value of szB. 186 set *address and *szB to 0, 190 SizeT* szB,
|
pub_tool_mallocfree.h | 55 extern void VG_(out_of_memory_NORETURN) ( const HChar* who, SizeT szB );
|
pub_tool_debuginfo.h | 141 SizeT szB; /* size in bytes */ 162 SizeT szB;
|
/external/valgrind/main/helgrind/ |
hg_addrdescr.h | 63 /*OUT*/SizeT* szB,
|
hg_errors.c | 295 Int szB; 419 Int acc_szB = xe->XE.Race.szB; 456 Addr data_addr, Int szB, Bool isWrite, 484 xe.XE.Race.szB = szB; 488 tl_assert(szB == 8 || szB == 4 || szB == 2 || szB == 1); 651 return xe1->XE.Race.szB == xe2->XE.Race.sz [all...] |
hg_errors.h | 55 Addr data_addr, Int szB, Bool isWrite,
|
/external/valgrind/main/exp-sgcheck/ |
sg_main.c | 175 if (fb1->szB < fb2->szB) return -1; 176 if (fb1->szB > fb2->szB) return 1; 188 /* Returns True if all fields except .szB are the same. szBs may or 230 " StackBlock{ off %ld szB %lu spRel:%c isVec:%c \"%s\" }\n", 231 sb->base, sb->szB, sb->spRel ? 'Y' : 'N', 300 /* StackBlock{ off 16 szB 66 spRel:Y isVec:Y "sz" } 301 StackBlock{ off 16 szB 130 spRel:Y isVec:Y "sz" } 302 StackBlock{ off 208 szB 16 spRel:Y isVec:Y "ar" [all...] |
h_main.c | 95 SizeT szB; /* may be zero */ 110 } else if (a < seg->addr + seg->szB && seg->szB > 0) { 115 *n = a - (seg->addr + seg->szB); 136 return seg->szB; 291 seg->szB = size; 419 if (new_size <= seg->szB) { 436 VG_(memcpy)((void*)p_new, p_old, seg->szB); 458 return ( seg ? seg->szB : 0 );
|
/external/valgrind/main/coregrind/m_debuginfo/ |
priv_tytypes.h | 105 Int szB; 109 Int szB; 118 UWord szB; 126 Int szB;
|
readdwarf3.c | 208 return c->sli_next >= c->sli.ioff + c->sli.szB; 222 return c->sli.ioff + c->sli.szB - c->sli_next; 239 if (c->sli_next + sizeof(UChar) > c->sli.ioff + c->sli.szB) { 251 if (c->sli_next + sizeof(UShort) > c->sli.ioff + c->sli.szB) { 263 if (c->sli_next + sizeof(UInt) > c->sli.ioff + c->sli.szB) { 275 if (c->sli_next + sizeof(ULong) > c->sli.ioff + c->sli.szB) { 494 /* The use of escn_debug_{info,types}.szB seems safe to me even if 496 sections were not found), because DiSlice_INVALID.szB is always 499 if (die >= cc->escn_debug_info.szB) { 500 if (die >= cc->escn_debug_info.szB + cc->escn_debug_types.szB) [all...] |
readmacho.c | 99 Bool ML_(is_macho_object_file)( const void* buf, SizeT szB ) 118 if (szB < sizeof(struct fat_header)) 123 if (szB < sizeof(struct MACH_HEADER)) 224 sli.szB = arch.size; 240 if (sli.szB < sizeof(struct MACH_HEADER)) { 245 if (sli.szB > ML_(img_size)(sli.img)) { 250 if (sli.ioff >= 0 && sli.ioff + sli.szB <= ML_(img_size)(sli.img)) { 267 if (sli.szB < sizeof(struct MACH_HEADER) + mh.sizeofcmds) { 277 vg_assert(sli.szB > 0); 278 vg_assert(sli.ioff + sli.szB <= ML_(img_size)(sli.img)) [all...] |
tytypes.c | 127 te->Te.TyBase.szB, te->Te.TyBase.enc, 132 VG_(printf)("Te_TyPtr(%d,0x%05lx)", te->Te.TyPorR.szB, 136 VG_(printf)("Te_TyRef(%d,0x%05lx)", te->Te.TyPorR.szB, 140 VG_(printf)("Te_TyMbr(%d,0x%05lx)", te->Te.TyPorR.szB, 144 VG_(printf)("Te_TyRvalRef(%d,0x%05lx)", te->Te.TyPorR.szB, 156 te->Te.TyStOrUn.szB, 170 te->Te.TyEnum.szB, te->Te.TyEnum.atomRs, 525 r = Int__cmp(te1->Te.TyBase.szB, te2->Te.TyBase.szB); 533 r = Int__cmp(te1->Te.TyPorR.szB, te2->Te.TyPorR.szB) [all...] |
misc.c | 45 void* ML_(dinfo_zalloc) ( const HChar* cc, SizeT szB ) { 47 vg_assert(szB > 0); 48 v = VG_(arena_malloc)( VG_AR_DINFO, cc, szB ); 50 VG_(memset)(v, 0, szB);
|
priv_misc.h | 42 void* ML_(dinfo_zalloc)( const HChar* cc, SizeT szB );
|
/external/valgrind/main/massif/ |
ms_main.c | 541 SizeT szB; 564 SizeT szB; // memory size for the node, be it Sig or Insig 595 xpt->szB = 0; 639 return ( sxpt1->szB < sxpt2->szB ? 1 640 : sxpt1->szB > sxpt2->szB ? -1 679 if (xpt->children[i]->szB >= sig_child_threshold_szB) { 690 sxpt->szB = xpt->szB; [all...] |
ms_print | 258 my ($szB, $szB_scaled) = @_; 260 # For the label, if $szB is 999B or below, we print it as an integer. 272 if ($szB < 1000) { return sprintf("%5d", $szB); } 302 my ($szB) = @_; 306 my $szB_scaled = $szB; 320 return (max_label_2($szB, $szB_scaled), $unit); 326 my ($szB) = @_; 331 my $szB_scaled = $szB; 336 return (max_label_2($szB, $szB_scaled), $unit) [all...] |
ms_print.in | 258 my ($szB, $szB_scaled) = @_; 260 # For the label, if $szB is 999B or below, we print it as an integer. 272 if ($szB < 1000) { return sprintf("%5d", $szB); } 302 my ($szB) = @_; 306 my $szB_scaled = $szB; 320 return (max_label_2($szB, $szB_scaled), $unit); 326 my ($szB) = @_; 331 my $szB_scaled = $szB; 336 return (max_label_2($szB, $szB_scaled), $unit) [all...] |
/external/valgrind/main/exp-dhat/ |
dh_main.c | 620 static void* dh_malloc ( ThreadId tid, SizeT szB ) 622 return new_block( tid, NULL, szB, VG_(clo_alignment), /*is_zeroed*/False ); 625 static void* dh___builtin_new ( ThreadId tid, SizeT szB ) 627 return new_block( tid, NULL, szB, VG_(clo_alignment), /*is_zeroed*/False ); 630 static void* dh___builtin_vec_new ( ThreadId tid, SizeT szB ) 632 return new_block( tid, NULL, szB, VG_(clo_alignment), /*is_zeroed*/False ); 635 static void* dh_calloc ( ThreadId tid, SizeT m, SizeT szB ) 637 return new_block( tid, NULL, m*szB, VG_(clo_alignment), /*is_zeroed*/True ); 640 static void *dh_memalign ( ThreadId tid, SizeT alignB, SizeT szB ) 642 return new_block( tid, NULL, szB, alignB, False ) [all...] |
/external/valgrind/main/coregrind/m_aspacemgr/ |
aspacemgr-common.c | 371 Int szB; 378 szB = VG_STACK_GUARD_SZB 381 sres = VG_(am_mmap_anon_float_valgrind)( szB ); 387 aspacem_assert(VG_IS_PAGE_ALIGNED(szB)); 423 (ULong)(Addr)stack, szB); 430 (void)ML_(am_do_munmap_NO_NOTIFY)( (Addr)stack, szB );
|
/external/valgrind/main/VEX/priv/ |
host_arm64_defs.h | 123 ARM64am_RI12, /* reg + uimm12 * szB (iow, scaled by access size) */ 139 UChar szB; /* 1, 2, 4, 8 (16 ?) */ 150 extern ARM64AMode* ARM64AMode_RI12 ( HReg reg, Int uimm12, UChar szB ); 764 Int szB; /* 1, 2, 4 or 8 */ 768 Int szB; /* 1, 2, 4 or 8 */ 1011 UInt szB; // 16=mov qD,qS; 8=mov dD,dS; 4=mov sD,sS 1057 extern ARM64Instr* ARM64Instr_LdrEX ( Int szB ); 1058 extern ARM64Instr* ARM64Instr_StrEX ( Int szB ); [all...] |