/external/valgrind/main/memcheck/tests/ |
D | leak-segv-jmp.c | 10 typedef unsigned long UWord; typedef 15 extern UWord do_syscall_WRK (UWord syscall_no, 16 UWord a1, UWord a2, UWord a3, 17 UWord a4, UWord a5, UWord a6 43 extern UWord do_syscall_WRK ( 44 UWord syscall_no, 45 UWord a1, UWord a2, UWord a3, 46 UWord a4, UWord a5, UWord a6 66 UWord syscall_no, 67 UWord a1, UWord a2, UWord a3, [all …]
|
/external/valgrind/main/helgrind/tests/ |
D | annotate_hbefore.c | 21 typedef unsigned long int UWord; typedef 27 UWord do_acasW ( UWord* addr, UWord expected, UWord nyu ) in do_acasW() 29 UWord old, success; in do_acasW() 60 UWord do_acasW ( UWord* addr, UWord expected, UWord nyu ) in do_acasW() 62 UWord old, success; in do_acasW() 93 UWord do_acasW ( UWord* addr, UWord expected, UWord nyu ) in do_acasW() 95 UWord block[4] = { (UWord)addr, expected, nyu, 2 }; in do_acasW() 116 UWord do_acasW ( UWord* addr, UWord expected, UWord nyu ) in do_acasW() 118 UWord block[4] = { (UWord)addr, expected, nyu, 2 }; in do_acasW() 141 UWord do_acasW ( UWord* addr, UWord expected, UWord nyu ) in do_acasW() [all …]
|
/external/valgrind/main/coregrind/ |
D | m_syscall.c | 144 SysRes VG_(mk_SysRes_mips32_linux) ( UWord v0, UWord v1, UWord a3 ) { in VG_() 146 res._isError = (a3 != (UWord)0); in VG_() 162 SysRes VG_(mk_SysRes_Error) ( UWord err ) { in VG_() 170 SysRes VG_(mk_SysRes_Success) ( UWord res ) { in VG_() 190 vg_assert(sizeof(UWord) == sizeof(UInt)); in VG_() 223 vg_assert(sizeof(UWord) == sizeof(ULong)); in VG_() 251 SysRes VG_(mk_SysRes_Error) ( UWord err ) { in VG_() 259 SysRes VG_(mk_SysRes_Success) ( UWord res ) { in VG_() 289 extern UWord do_syscall_WRK ( 290 UWord syscall_no, [all …]
|
D | m_wordfm.c | 66 UWord key; 67 UWord val; 75 UWord w; 87 Word (*kCmp)(UWord,UWord); 94 static Bool avl_removeroot_wrk(AvlNode** t, Word(*kCmp)(UWord,UWord)); 139 static UWord size_avl_nonNull ( AvlNode* nd ) in size_avl_nonNull() 148 static inline Word cmp_unsigned_Words ( UWord w1, UWord w2 ) { in cmp_unsigned_Words() 164 Word (*kCmp)(UWord,UWord) ) in avl_insert_wrk() argument 181 : /*unboxed*/ cmp_unsigned_Words( (UWord)(*rootp)->key, in avl_insert_wrk() 182 (UWord)a->key ); in avl_insert_wrk() [all …]
|
D | m_libcfile.c | 93 if (0 == VG_(fcntl)(fd, VKI_F_GETPATH, (UWord)tmp)) { in VG_() 107 SysRes VG_(mknod) ( const HChar* pathname, Int mode, UWord dev ) in VG_() 112 VKI_AT_FDCWD, (UWord)pathname, mode, dev); in VG_() 115 (UWord)pathname, mode, dev); in VG_() 127 VKI_AT_FDCWD, (UWord)pathname, flags, mode); in VG_() 130 (UWord)pathname, flags, mode); in VG_() 133 (UWord)pathname, flags, mode); in VG_() 166 SysRes res = VG_(do_syscall3)(__NR_read, fd, (UWord)buf, count); in VG_() 168 SysRes res = VG_(do_syscall3)(__NR_read_nocancel, fd, (UWord)buf, count); in VG_() 186 SysRes res = VG_(do_syscall3)(__NR_write, fd, (UWord)buf, count); in VG_() [all …]
|
D | m_poolalloc.c | 36 UWord nrRef; /* nr reference to this pool allocator */ 37 UWord elemSzB; /* element size */ 38 UWord nPerPool; /* # elems per pool */ 51 PoolAlloc* VG_(newPA) ( UWord elemSzB, in VG_() 52 UWord nPerPool, in VG_() 58 vg_assert(0 == (elemSzB % sizeof(UWord))); in VG_() 59 vg_assert(elemSzB >= sizeof(UWord)); in VG_() 85 pa->free (*(UWord **)VG_(indexXA) ( pa->pools, i )); in VG_() 96 UWord* pool; in pal_add_new_pool() 106 UWord* elem = (UWord*)elemC; in pal_add_new_pool() [all …]
|
D | m_sparsewa.c | 56 UWord magic; 57 UWord words[256]; 65 UWord magic; 74 UWord partial_key; 92 static inline UWord swa_bitarray_read ( UChar* arr, UWord ix ) { in swa_bitarray_read() 93 UWord bix = ix >> 3; in swa_bitarray_read() 94 UWord off = ix & 7; in swa_bitarray_read() 98 static inline UWord swa_bitarray_read_then_set ( UChar* arr, UWord ix ) { in swa_bitarray_read_then_set() 99 UWord bix = ix >> 3; in swa_bitarray_read_then_set() 100 UWord off = ix & 7; in swa_bitarray_read_then_set() [all …]
|
D | m_rangemap.c | 42 #define UWORD_MIN ((UWord)0) 43 #define UWORD_MAX (~(UWord)0) 46 struct { UWord key_min; UWord key_max; UWord val; } 60 static Word find ( RangeMap* rm, UWord key ); 61 static void split_at ( /*MOD*/RangeMap* rm, UWord key ); 68 UWord initialVal ) in VG_() 102 UWord key_min, UWord key_max, UWord val ) in VG_() 118 void VG_(lookupRangeMap) ( /*OUT*/UWord* key_min, /*OUT*/UWord* key_max, in VG_() 119 /*OUT*/UWord* val, RangeMap* rm, UWord key ) in VG_() 134 void VG_(indexRangeMap) ( /*OUT*/UWord* key_min, /*OUT*/UWord* key_max, in VG_() [all …]
|
D | pub_core_syscall.h | 49 extern SysRes VG_(do_syscall) ( UWord sysno, 50 UWord, UWord, UWord, 51 UWord, UWord, UWord, 52 UWord, UWord ); 85 extern SysRes VG_(mk_SysRes_mips32_linux)( UWord v0, UWord v1, 86 UWord a3 ); 89 extern SysRes VG_(mk_SysRes_Error) ( UWord val ); 90 extern SysRes VG_(mk_SysRes_Success) ( UWord val ); 98 extern const HChar* VG_(strerror) ( UWord errnum );
|
D | m_libcsignal.c | 180 how, (UWord)set, (UWord)oldset, in VG_() 181 _VKI_NSIG_WORDS * sizeof(UWord)); in VG_() 184 how, (UWord)set, (UWord)oldset); in VG_() 192 how, (UWord)set, (UWord)oldset); in VG_() 203 void darwin_signal_demux(void* a1, UWord a2, UWord a3, void* a4, void* a5) { in darwin_signal_demux() 212 VG_(do_syscall2)(__NR_sigreturn, (UWord)a5, 0x1E); in darwin_signal_demux() 226 signum, (UWord)act, (UWord)oldact, in VG_() 227 _VKI_NSIG_WORDS * sizeof(UWord)); in VG_() 265 signum, (UWord)real_act, (UWord)real_oldact); in VG_() 357 SysRes res = VG_(do_syscall4)(__NR_rt_sigtimedwait, (UWord)set, (UWord)info, in VG_() [all …]
|
/external/valgrind/main/include/ |
D | pub_tool_wordfm.h | 84 Word (*kCmp)(UWord,UWord) ); 88 void VG_(deleteFM) ( WordFM*, void(*kFin)(UWord), void(*vFin)(UWord) ); 94 Bool VG_(addToFM) ( WordFM* fm, UWord k, UWord v ); 98 /*OUT*/UWord* oldK, /*OUT*/UWord* oldV, UWord key ); 102 /*OUT*/UWord* keyP, /*OUT*/UWord* valP, UWord key ); 121 /*OUT*/UWord* kMinP, /*OUT*/UWord* vMinP, 122 /*OUT*/UWord* kMaxP, /*OUT*/UWord* vMaxP, 123 UWord minKey, UWord minVal, 124 UWord maxKey, UWord maxVal, 125 UWord key ); [all …]
|
D | pub_tool_rangemap.h | 52 UWord initialVal ); 63 UWord key_min, UWord key_max, UWord val ); 69 void VG_(lookupRangeMap) ( /*OUT*/UWord* key_min, /*OUT*/UWord* key_max, 70 /*OUT*/UWord* val, RangeMap* rm, UWord key ); 76 void VG_(indexRangeMap) ( /*OUT*/UWord* key_min, /*OUT*/UWord* key_max, 77 /*OUT*/UWord* val, RangeMap* rm, Word ix );
|
D | pub_tool_sparsewa.h | 63 Bool VG_(addToSWA) ( SparseWA* swa, UWord key, UWord val ); 71 /*OUT*/UWord* oldK, /*OUT*/UWord* oldV, 72 UWord key ); 79 /*OUT*/UWord* keyP, /*OUT*/UWord* valP, 80 UWord key ); 90 /*OUT*/UWord* keyP, /*OUT*/UWord* valP ); 95 UWord VG_(sizeSWA) ( SparseWA* swa );
|
D | pub_tool_basics.h | 86 typedef unsigned long UWord; // 32 64 typedef 93 typedef UWord Addr; // 32 64 94 typedef UWord AddrH; // 32 64 99 typedef UWord SizeT; // 32 64 128 typedef struct { UWord uw1; UWord uw2; } UWordPair; 165 UWord _val; 166 UWord _valEx; // only used on mips-linux 181 UWord _wLO; 182 UWord _wHI; 198 static inline UWord sr_Res ( SysRes sr ) { in sr_Res() [all …]
|
/external/valgrind/main/coregrind/m_syswrap/ |
D | syswrap-linux-variants.c | 78 Int ML_(linux_variant_PRE_sys_bproc)( UWord arg1, UWord arg2, in ML_() 79 UWord arg3, UWord arg4, in ML_() 80 UWord arg5, UWord arg6 ) in ML_() 85 void ML_(linux_variant_POST_sys_bproc)( UWord arg1, UWord arg2, in ML_() 86 UWord arg3, UWord arg4, in ML_() 87 UWord arg5, UWord arg6 ) in ML_()
|
/external/valgrind/main/drd/ |
D | drd_bitmap.h | 80 #define ADDR_LSB_MASK (((UWord)1 << ADDR_LSB_BITS) - 1U) 84 UWord address_lsb(const Addr a) in address_lsb() 109 UWord address_msb(const Addr a) in address_msb() 125 Addr make_address(const UWord a1, const UWord a0) in make_address() 136 #define BITS_PER_UWORD (8U * sizeof(UWord)) 156 #define UWORD_LSB_MASK (((UWord)1 << BITS_PER_BITS_PER_UWORD) - 1) 164 UWord uword_msb(const UWord a) in uword_msb() 178 UWord uword_lsb(const UWord a) in uword_lsb() 226 UWord bm0_r[BITMAP1_UWORD_COUNT]; 227 UWord bm0_w[BITMAP1_UWORD_COUNT]; [all …]
|
/external/valgrind/main/coregrind/m_debuginfo/ |
D | priv_tytypes.h | 70 UWord cuOff; 76 UWord indR; 87 UWord typeR; /* should be Te_TyXXXX */ 110 UWord typeR; 114 UWord typeR; /* MAY BE D3_INVALID_CUOFF, denoting unknown */ 118 UWord szB; 119 UWord typeR; 130 UWord typeR; 137 UWord typeR; 158 UWord cuOff ); [all …]
|
/external/valgrind/main/helgrind/ |
D | hg_wordset.h | 60 UWord HG_(cardinalityWSU) ( WordSetU* ); 71 WordSet HG_(addToWS) ( WordSetU*, WordSet, UWord ); 72 WordSet HG_(delFromWS) ( WordSetU*, WordSet, UWord ); 77 Bool HG_(isSingletonWS) ( WordSetU*, WordSet, UWord ); 78 UWord HG_(anyElementOfWS) ( WordSetU*, WordSet ); 79 UWord HG_(cardinalityWS) ( WordSetU*, WordSet ); 80 Bool HG_(elemWS) ( WordSetU*, WordSet, UWord ); 81 WordSet HG_(doubletonWS) ( WordSetU*, UWord, UWord ); 82 WordSet HG_(singletonWS) ( WordSetU*, UWord ); 92 void HG_(getPayloadWS) ( /*OUT*/UWord** words, /*OUT*/UWord* nWords,
|
D | hg_wordset.c | 55 struct { UWord arg1; UWord arg2; UWord res; } 69 UWord dynMax; /* 1 .. N_WCACHE_STAT_MAX inclusive */ 70 UWord inUse; /* 0 .. dynMax inclusive */ 84 UWord _i; \ 85 UWord _arg1 = (UWord)(_zzarg1); \ 86 UWord _arg2 = (UWord)(_zzarg2); \ 111 UWord _arg1 = (UWord)(_zzarg1); \ 112 UWord _arg2 = (UWord)(_zzarg2); \ 113 UWord _res = (UWord)(_zzresult); \ 137 UWord* words; [all …]
|
D | hg_main.c | 160 static UWord stats__lockN_acquires = 0; 161 static UWord stats__lockN_releases = 0; 267 VG_(addToBag)( lk->heldBy, (UWord)thr ); in lockN_acquire_writer() 277 tl_assert(VG_(elemBag)(lk->heldBy, (UWord)thr) in lockN_acquire_writer() 279 VG_(addToBag)(lk->heldBy, (UWord)thr); in lockN_acquire_writer() 317 VG_(addToBag)(lk->heldBy, (UWord)thr); in lockN_acquire_reader() 321 VG_(addToBag)( lk->heldBy, (UWord)thr ); in lockN_acquire_reader() 340 b = VG_(delFromBag)(lk->heldBy, (UWord)thr); in lockN_release() 363 while (VG_(nextIterBag)( lk->heldBy, (UWord*)&thr, NULL )) { in remove_Lock_from_locksets_of_all_owning_Threads() 366 thr->locksetA, (UWord)lk )); in remove_Lock_from_locksets_of_all_owning_Threads() [all …]
|
D | libhb_core.c | 357 static void (*main_get_stacktrace)( Thr*, Addr*, UWord ) = NULL; 557 static UWord stats__secmaps_search = 0; // # SM finds 558 static UWord stats__secmaps_search_slow = 0; // # SM lookupFMs 559 static UWord stats__secmaps_allocd = 0; // # SecMaps issued 560 static UWord stats__secmap_ga_space_covered = 0; // # ga bytes covered 561 static UWord stats__secmap_linesZ_allocd = 0; // # LineZ's issued 562 static UWord stats__secmap_linesZ_bytes = 0; // .. using this much storage 563 static UWord stats__secmap_linesF_allocd = 0; // # LineF's issued 564 static UWord stats__secmap_linesF_bytes = 0; // .. using this much storage 565 static UWord stats__secmap_iterator_steppings = 0; // # calls to stepSMIter [all …]
|
/external/valgrind/main/memcheck/ |
D | mc_include.h | 474 /*OUT*/UWord* nBlocks ); 601 VG_REGPARM(2) void MC_(helperc_value_checkN_fail_w_o) ( HWord, UWord ); 602 VG_REGPARM(1) void MC_(helperc_value_check8_fail_w_o) ( UWord ); 603 VG_REGPARM(1) void MC_(helperc_value_check4_fail_w_o) ( UWord ); 604 VG_REGPARM(1) void MC_(helperc_value_check1_fail_w_o) ( UWord ); 605 VG_REGPARM(1) void MC_(helperc_value_check0_fail_w_o) ( UWord ); 618 VG_REGPARM(2) void MC_(helperc_STOREV32be) ( Addr, UWord ); 619 VG_REGPARM(2) void MC_(helperc_STOREV32le) ( Addr, UWord ); 620 VG_REGPARM(2) void MC_(helperc_STOREV16be) ( Addr, UWord ); 621 VG_REGPARM(2) void MC_(helperc_STOREV16le) ( Addr, UWord ); [all …]
|
D | mc_main.c | 59 static void ocache_sarp_Set_Origins ( Addr, UWord, UInt ); /* fwds */ 60 static void ocache_sarp_Clear_Origins ( Addr, UWord ); /* fwds */ 180 #define N_PRIMARY_MAP ( ((UWord)1) << N_PRIMARY_BITS) 442 UWord elems_seen = 0; in check_auxmap_L1_L2_sanity() 597 UWord pm_off = a >> 16; in get_secmap_low_ptr() 733 UWord sm_off = SM_OFF(a); in set_vabits2() 741 UWord sm_off = SM_OFF(a); in get_vabits2() 754 UWord sm_off = SM_OFF(a); in get_vabits8_for_aligned_word32() 763 UWord sm_off = SM_OFF(a); in set_vabits8_for_aligned_word32() 769 static UWord get_sec_vbits8(Addr a); [all …]
|
/external/valgrind/main/cachegrind/ |
D | cg_branchpred.c | 88 static UWord shift_register = 0; /* Contains global history */ 94 UWord indx; in do_cond_branch_predict() 97 const UWord hist_mask = (1 << N_HIST_BITS) - 1; in do_cond_branch_predict() 98 const UWord iadd_mask = (1 << N_IADD_BITS) - 1; in do_cond_branch_predict() 99 UWord hist_bits = shift_register & hist_mask; in do_cond_branch_predict() 100 UWord iadd_bits = (instr_addr >> N_IADDR_LO_ZERO_BITS) in do_cond_branch_predict() 144 const UWord mask = (1 << N_BTAC_BITS) - 1; in do_ind_branch_predict() 145 UWord indx = (instr_addr >> N_IADDR_LO_ZERO_BITS) in do_ind_branch_predict()
|
/external/valgrind/main/exp-sgcheck/ |
D | sg_main.c | 95 UWord a1w = (UWord)a1; in cmp_nonempty_intervals() 96 UWord n1w = (UWord)n1; in cmp_nonempty_intervals() 97 UWord a2w = (UWord)a2; in cmp_nonempty_intervals() 98 UWord n2w = (UWord)n2; in cmp_nonempty_intervals() 249 (Word(*)(UWord,UWord))StackBlocks__cmp ); in init_StackBlocks_set() 261 UWord key, val; in StackBlocks__find_and_dealloc__or_add() 362 if (VG_(lookupFM)( frameBlocks_set, &key, &val, (UWord)orig )) { in StackBlocks__find_and_dealloc__or_add() 366 tl_assert(key != (UWord)orig); in StackBlocks__find_and_dealloc__or_add() 372 VG_(addToFM)( frameBlocks_set, (UWord)orig, 0 ); in StackBlocks__find_and_dealloc__or_add() 425 (Word(*)(UWord,UWord))GlobalBlock__cmp ); in init_GlobalBlock_set() [all …]
|