/external/valgrind/main/memcheck/tests/ |
H A D | calloc-overflow.c | 13 size_t szB = 0x1000000010000001ULL; local 15 size_t szB = 0x10000001UL; local 17 x = calloc(szB, 0x10);
|
/external/valgrind/main/tests/ |
H A D | malloc.h | 14 static void* memalign16(size_t szB) argument 19 x = malloc(szB); 21 x = memalign(16, szB);
|
/external/valgrind/main/drd/ |
H A D | drd_bitmap2_node.c | 117 void* DRD_(bm2_alloc_node)(HChar* const ec, const SizeT szB) argument 120 * If szB < sizeof(struct bitmap2) then this function has been called to 125 s_root_node_size = szB; 126 if (szB == s_root_node_size) 127 return VG_(malloc)(ec, szB); 134 s_bm2_node_size = szB; 136 tl_assert(s_bm2_node_size == szB);
|
/external/valgrind/main/memcheck/ |
H A D | mc_malloc_wrappers.c | 91 const int l = (mc->szB >= MC_(clo_freelist_big_blocks) ? 0 : 1); 102 if (mc->szB >= MC_(clo_freelist_vol)) { 111 VG_(free_queue_volume) += (Long)mc->szB; 137 VG_(free_queue_volume) -= (Long)mc1->szB; 165 if (VG_(addr_is_in_block)( a, mc->data, mc->szB, 177 MC_Chunk* create_MC_Chunk ( ExeContext* ec, Addr p, SizeT szB, argument 182 mc->szB = szB; 234 Addr p, SizeT szB, SizeT alignB, 246 p = (Addr)VG_(cli_malloc)( alignB, szB ); 233 new_block( ThreadId tid, Addr p, SizeT szB, SizeT alignB, Bool is_zeroed, MC_AllocKind kind, VgHashTable table) argument 735 mempool_alloc(ThreadId tid, Addr pool, Addr addr, SizeT szB) argument 791 mempool_trim(Addr pool, Addr addr, SizeT szB) argument 927 mempool_change(Addr pool, Addr addrA, Addr addrB, SizeT szB) argument [all...] |
H A D | mc_leakcheck.c | 269 a_hi = ((Addr)chunks[i]->data) + chunks[i]->szB; 297 a_mid_hi = chunks[mid]->data + chunks[mid]->szB; 304 if (chunks[mid]->szB == 0) 376 if (mc->szB > 1) { 377 m = find_chunk_for(mc->data + (mc->szB - 1), mallocs, n_mallocs); 506 tl_assert(ptr < ch->data + ch->szB + (ch->szB==0 ? 1 : 0)); 525 VG_(printf)("pushing %#lx-%#lx\n", ch->data, ch->data + ch->szB); 570 expected_sz = chunk->szB - sizeof(Addr); 582 if (chunk->szB [all...] |
H A D | mc_errors.c | 168 SizeT szB; // size of value in bytes member in struct:_MC_Error::__anon14062::__anon14063 190 SizeT szB; // not used for exec (jump) errors member in struct:_MC_Error::__anon14062::__anon14066 241 Int szB; // Size in bytes; 0 if unused. member in struct:_MC_Error::__anon14062::__anon14073 480 extra->Err.Value.szB ); 489 extra->Err.Value.szB ); 636 extra->Err.Addr.szB ); 644 extra->Err.Addr.szB ); 672 if (extra->Err.Overlap.szB == 0) { 682 extra->Err.Overlap.szB ); 686 if (extra->Err.Overlap.szB 854 record_address_error( ThreadId tid, Addr a, Int szB, Bool isWrite ) argument 880 record_value_error( ThreadId tid, Int szB, UInt otag ) argument [all...] |
H A D | mc_include.h | 64 SizeT szB : (sizeof(SizeT)*8)-2; // Size requested; 30 or 62 bits. member in struct:_MC_Chunk 142 Int MC_(get_otrack_shadow_offset) ( Int offset, Int szB ); 299 SizeT szB; // Sum of all MC_Chunk.szB values. member in struct:_LossRecord 367 void MC_(record_address_error) ( ThreadId tid, Addr a, Int szB, 370 void MC_(record_value_error) ( ThreadId tid, Int szB, UInt otag ); 378 Addr src, Addr dst, SizeT szB );
|
H A D | mc_machine.c | 88 /* Let (offset,szB) describe a reference to the guest state section 89 [offset, offset+szB). 120 static Int get_otrack_shadow_offset_wrk ( Int offset, Int szB ); /*fwds*/ 122 Int MC_(get_otrack_shadow_offset) ( Int offset, Int szB ) 124 Int cand = get_otrack_shadow_offset_wrk( offset, szB ); 133 static Int get_otrack_shadow_offset_wrk ( Int offset, Int szB ) 144 Int sz = szB; 338 offset,szB); 352 Int sz = szB; 538 offset,szB); [all...] |
/external/valgrind/main/include/ |
H A D | pub_tool_gdbserver.h | 111 extern Bool VG_(is_watched)(PointKind kind, Addr addr, Int szB); 168 If no size in the string, keeps the current value of szB. 169 Returns address 0 and szB 0 if there is an error. Reports to the 172 SizeT* szB,
|
H A D | pub_tool_mallocfree.h | 53 extern void VG_(out_of_memory_NORETURN) ( HChar* who, SizeT szB );
|
H A D | pub_tool_debuginfo.h | 139 SizeT szB; /* size in bytes */ member in struct:__anon13964 160 SizeT szB; member in struct:__anon13965
|
H A D | pub_tool_oset.h | 80 typedef void* (*OSetAlloc_t) ( HChar* cc, SizeT szB );
|
/external/valgrind/main/exp-sgcheck/ |
H A D | 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 1 474 SizeT szB; /* copied from .descr->szB */ member in struct:__anon13893 628 SizeT szB; /* copied from .descr->szB */ member in struct:__anon13894 824 SizeT szB; member in struct:__anon13896::__anon13897::__anon13900 903 SizeT szB = 0; local 1002 SizeT szB; member in struct:__anon13903 1508 classify_address( Invar* inv, ThreadId tid, Addr ea, Addr sp, Addr fp, UWord szB, XArray* thisInstrBlocks ) argument 1768 UWord szB; local 2117 instrument_mem_access( struct _SGEnv* sge, IRSB* bbOut, IRExpr* addr, Int szB, Bool isStore, Int hWordTy_szB, Addr curr_IP, VexGuestLayout* layout ) argument [all...] |
H A D | h_main.c | 95 SizeT szB; /* may be zero */ member in struct:_Seg 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/ |
H A D | priv_tytypes.h | 98 Int szB; member in struct:__anon13551::__anon13552::__anon13560 102 Int szB; member in struct:__anon13551::__anon13552::__anon13561 112 UWord szB; member in struct:__anon13551::__anon13552::__anon13563 119 Int szB; member in struct:__anon13551::__anon13552::__anon13564
|
H A D | misc.c | 45 void* ML_(dinfo_zalloc) ( 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);
|
H A D | priv_misc.h | 41 void* ML_(dinfo_zalloc)( HChar* cc, SizeT szB );
|
H A D | tytypes.c | 126 te->Te.TyBase.szB, te->Te.TyBase.enc, 132 te->Te.TyPorR.szB, 145 te->Te.TyStOrUn.szB, 159 te->Te.TyEnum.szB, te->Te.TyEnum.atomRs, 502 r = Int__cmp(te1->Te.TyBase.szB, te2->Te.TyBase.szB); 507 r = Int__cmp(te1->Te.TyPorR.szB, te2->Te.TyPorR.szB); 523 r = UWord__cmp(te1->Te.TyStOrUn.szB, te2->Te.TyStOrUn.szB); [all...] |
/external/valgrind/main/helgrind/ |
H A D | hg_errors.h | 52 Addr data_addr, Int szB, Bool isWrite, 86 /*OUT*/SizeT* szB,
|
/external/valgrind/main/massif/ |
H A D | ms_main.c | 547 SizeT szB; member in struct:_XPt 570 SizeT szB; // memory size for the node, be it Sig or Insig member in struct:_SXPt 623 xpt->szB = 0; 667 return ( sxpt1->szB < sxpt2->szB ? 1 668 : sxpt1->szB > sxpt2->szB ? -1 707 if (xpt->children[i]->szB >= sig_child_threshold_szB) { 718 sxpt->szB = xpt->szB; 1997 SizeT szB = argv[2]; local [all...] |
H A D | 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, [all...] |
/external/valgrind/main/coregrind/m_aspacemgr/ |
H A D | aspacemgr-common.c | 355 Int szB; local 362 szB = VG_STACK_GUARD_SZB 365 sres = VG_(am_mmap_anon_float_valgrind)( szB ); 371 aspacem_assert(VG_IS_PAGE_ALIGNED(szB)); 407 (ULong)(Addr)stack, szB); 414 (void)ML_(am_do_munmap_NO_NOTIFY)( (Addr)stack, szB );
|
/external/valgrind/main/exp-dhat/ |
H A D | 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, align 800 addMemEvent(IRSB* sbOut, Bool isWrite, Int szB, IRExpr* addr, Int goff_sp) argument [all...] |
/external/valgrind/main/coregrind/m_initimg/ |
H A D | initimg-linux.c | 907 SizeT szB = (SizeT)VG_(client_rlimit_stack).rlim_cur; local 908 if (szB < m1) szB = m1; 909 if (szB > m16) szB = m16; 910 if (VG_(clo_main_stacksize) > 0) szB = VG_(clo_main_stacksize); 911 if (szB < m1) szB = m1; 912 szB = VG_PGROUNDUP(szB); [all...] |
/external/valgrind/main/coregrind/m_gdbserver/ |
H A D | m_gdbserver.c | 343 Bool VG_(is_watched)(PointKind kind, Addr addr, Int szB) argument 352 Addr to = addr + szB; // semi-open interval [addr, to[ 357 dlog(1, "tid %d VG_(is_watched) %s addr %p szB %d\n", 358 tid, VG_(ppPointKind) (kind), C2v(addr), szB); 1271 SizeT* szB, 1284 *szB = 0; 1289 /* Do nothing, i.e. keep current value of szB. */ ; 1291 *szB = VG_(strtoull16) (ws, &endptr); 1296 *szB = 0; 1300 else if ('1' == parsews[j+2]) *szB | 1270 strtok_get_address_and_size(Addr* address, SizeT* szB, Char **ssaveptr) argument [all...] |