Home
last modified time | relevance | path

Searched refs:UWord (Results 1 – 25 of 179) sorted by relevance

12345678

/external/valgrind/memcheck/tests/
Dleak-segv-jmp.c11 typedef unsigned long UWord; typedef
17 extern UWord do_syscall_WRK (UWord syscall_no,
18 UWord a1, UWord a2, UWord a3,
19 UWord a4, UWord a5, UWord a6
46 extern UWord do_syscall_WRK (
47 UWord syscall_no,
48 UWord a1, UWord a2, UWord a3,
49 UWord a4, UWord a5, UWord a6
69 UWord syscall_no,
70 UWord a1, UWord a2, UWord a3,
[all …]
/external/valgrind/helgrind/tests/
Dannotate_hbefore.c21 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/coregrind/
Dm_syscall.c46 SysRes VG_(mk_SysRes_mips32_linux) ( UWord v0, UWord v1, UWord a3 ) { in VG_()
49 res._isError = (a3 != (UWord)0); in VG_()
65 SysRes VG_(mk_SysRes_Error) ( UWord err ) { in VG_()
73 SysRes VG_(mk_SysRes_Success) ( UWord res ) { in VG_()
81 SysRes VG_(mk_SysRes_SuccessEx) ( UWord res, UWord resEx ) { in VG_()
196 SysRes VG_(mk_SysRes_Error) ( UWord err ) { in VG_()
203 SysRes VG_(mk_SysRes_Success) ( UWord res ) { in VG_()
222 vg_assert(sizeof(UWord) == sizeof(UInt)); in VG_()
255 vg_assert(sizeof(UWord) == sizeof(ULong)); in VG_()
283 SysRes VG_(mk_SysRes_Error) ( UWord err ) { in VG_()
[all …]
Dm_wordfm.c66 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 ( const 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 …]
Dm_libcfile.c120 if (0 == VG_(fcntl)(fd, VKI_F_GETPATH, (UWord)tmp)) { in VG_()
139 SysRes VG_(mknod) ( const HChar* pathname, Int mode, UWord dev ) in VG_()
144 VKI_AT_FDCWD, (UWord)pathname, mode, dev); in VG_()
147 (UWord)pathname, mode, dev); in VG_()
150 VKI_AT_FDCWD, (UWord)pathname, mode, dev); in VG_()
162 VKI_AT_FDCWD, (UWord)pathname, flags, mode); in VG_()
165 (UWord)pathname, flags, mode); in VG_()
168 (UWord)pathname, flags, mode); in VG_()
171 VKI_AT_FDCWD, (UWord)pathname, flags, mode); in VG_()
204 SysRes res = VG_(do_syscall3)(__NR_read, fd, (UWord)buf, count); in VG_()
[all …]
Dm_poolalloc.c36 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_()
84 pa->free_fn (*(UWord **)VG_(indexXA) ( pa->pools, i )); in VG_()
95 UWord* pool; in pal_add_new_pool()
104 UWord* elem = (UWord*)elemC; in pal_add_new_pool()
[all …]
Dm_sparsewa.c56 UWord magic;
57 UWord words[256];
65 UWord magic;
74 UWord partial_key;
92 static inline UWord swa_bitarray_read ( const 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 …]
Dpub_core_syscall.h49 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 );
92 extern SysRes VG_(mk_SysRes_Error) ( UWord val );
93 extern SysRes VG_(mk_SysRes_Success) ( UWord val );
98 extern SysRes VG_(mk_SysRes_SuccessEx) ( UWord val, UWord valEx );
106 extern const HChar* VG_(strerror) ( UWord errnum );
Dm_rangemap.c42 #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 ( const RangeMap* rm, UWord key );
61 static void split_at ( /*MOD*/RangeMap* rm, UWord key );
68 UWord initialVal ) in VG_()
100 UWord key_min, UWord key_max, UWord val ) in VG_()
116 void VG_(lookupRangeMap) ( /*OUT*/UWord* key_min, /*OUT*/UWord* key_max, in VG_()
117 /*OUT*/UWord* val, const RangeMap* rm, UWord key ) in VG_()
134 void VG_(indexRangeMap) ( /*OUT*/UWord* key_min, /*OUT*/UWord* key_max, in VG_()
[all …]
Dm_libcsignal.c222 how, (UWord)set, (UWord)oldset, in VG_()
223 _VKI_NSIG_WORDS * sizeof(UWord)); in VG_()
226 how, (UWord)set, (UWord)oldset); in VG_()
234 how, (UWord)set, (UWord)oldset); in VG_()
245 void darwin_signal_demux(void* a1, UWord a2, UWord a3, void* a4, void* a5) { in darwin_signal_demux()
254 VG_(do_syscall2)(__NR_sigreturn, (UWord)a5, 0x1E); in darwin_signal_demux()
268 signum, (UWord)act, (UWord)oldact, in VG_()
269 _VKI_NSIG_WORDS * sizeof(UWord)); in VG_()
307 signum, (UWord)real_act, (UWord)real_oldact); in VG_()
320 signum, (UWord)act, (UWord)oldact); in VG_()
[all …]
/external/valgrind/include/
Dpub_tool_wordfm.h85 Word (*kCmp)(UWord,UWord) );
89 void VG_(deleteFM) ( WordFM*, void(*kFin)(UWord), void(*vFin)(UWord) );
95 Bool VG_(addToFM) ( WordFM* fm, UWord k, UWord v );
99 /*OUT*/UWord* oldK, /*OUT*/UWord* oldV, UWord key );
103 /*OUT*/UWord* keyP, /*OUT*/UWord* valP, UWord key );
122 /*OUT*/UWord* kMinP, /*OUT*/UWord* vMinP,
123 /*OUT*/UWord* kMaxP, /*OUT*/UWord* vMaxP,
124 UWord minKey, UWord minVal,
125 UWord maxKey, UWord maxVal,
126 UWord key );
[all …]
Dpub_tool_rangemap.h53 UWord initialVal );
64 UWord key_min, UWord key_max, UWord val );
70 void VG_(lookupRangeMap) ( /*OUT*/UWord* key_min, /*OUT*/UWord* key_max,
71 /*OUT*/UWord* val, const RangeMap* rm, UWord key );
77 void VG_(indexRangeMap) ( /*OUT*/UWord* key_min, /*OUT*/UWord* key_max,
78 /*OUT*/UWord* val, const RangeMap* rm, Word ix );
Dpub_tool_basics.h86 typedef unsigned long UWord; // 32 64 typedef
119 typedef struct { UWord uw1; UWord uw2; } UWordPair;
171 UWord _val;
172 UWord _valEx;
181 UWord _val;
196 UWord _wLO;
197 UWord _wHI;
205 UWord _val;
206 UWord _val2;
223 static inline UWord sr_Res ( SysRes sr ) { in sr_Res()
[all …]
Dpub_tool_sparsewa.h64 Bool VG_(addToSWA) ( SparseWA* swa, UWord key, UWord val );
69 /*OUT*/UWord* oldV,
70 UWord key );
76 /*OUT*/UWord* valP,
77 UWord key );
87 /*OUT*/UWord* keyP, /*OUT*/UWord* valP );
92 UWord VG_(sizeSWA) ( const SparseWA* swa );
Dpub_tool_seqmatch.h89 const void* patt, SizeT szbPatt, UWord nPatt, UWord ixPatt,
90 const void* input, SizeT szbInput, UWord nInput, UWord ixInput,
93 Bool (*pattEQinp)(const void*,const void*,void*,UWord),
95 Bool (*haveInputInpC)(void*,UWord)
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-linux-variants.c77 Int ML_(linux_variant_PRE_sys_bproc)( UWord arg1, UWord arg2, in ML_()
78 UWord arg3, UWord arg4, in ML_()
79 UWord arg5, UWord arg6 ) in ML_()
84 void ML_(linux_variant_POST_sys_bproc)( UWord arg1, UWord arg2, in ML_()
85 UWord arg3, UWord arg4, in ML_()
86 UWord arg5, UWord arg6 ) in ML_()
Dsyswrap-amd64-solaris.c89 UWord *stack = (UWord*)tst->os_state.valgrind_stack_init_SP; in ML_()
104 uc->uc_mcontext.gregs[VKI_REG_RDI] = (UWord)tst; /* the parameter */ in ML_()
105 uc->uc_mcontext.gregs[VKI_REG_RIP] = (UWord)ML_(start_thread_NORETURN); in ML_()
106 uc->uc_mcontext.gregs[VKI_REG_RSP] = (UWord)stack; in ML_()
122 (Addr)&uc->uc_mcontext.gregs[VKI_REG_RIP], sizeof(UWord)); in ML_()
125 (Addr)&uc->uc_mcontext.gregs[VKI_REG_RAX], sizeof(UWord)); in ML_()
128 (Addr)&uc->uc_mcontext.gregs[VKI_REG_RBX], sizeof(UWord)); in ML_()
131 (Addr)&uc->uc_mcontext.gregs[VKI_REG_RCX], sizeof(UWord)); in ML_()
134 (Addr)&uc->uc_mcontext.gregs[VKI_REG_RDX], sizeof(UWord)); in ML_()
137 (Addr)&uc->uc_mcontext.gregs[VKI_REG_RBP], sizeof(UWord)); in ML_()
[all …]
/external/valgrind/drd/
Ddrd_bitmap.h80 #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))
157 #define UWORD_LSB_MASK (((UWord)1 << BITS_PER_BITS_PER_UWORD) - 1)
165 UWord uword_msb(const UWord a) in uword_msb()
179 UWord uword_lsb(const UWord a) in uword_lsb()
227 UWord bm0_r[BITMAP1_UWORD_COUNT];
228 UWord bm0_w[BITMAP1_UWORD_COUNT];
[all …]
/external/valgrind/coregrind/m_debuginfo/
Dpriv_tytypes.h70 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/helgrind/
Dhg_wordset.h60 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,
Dhg_wordset.c55 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 …]
Dlibhb_core.c361 static void (*main_get_stacktrace)( Thr*, Addr*, UWord ) = NULL;
592 static UWord stats__secmaps_search = 0; // # SM finds
593 static UWord stats__secmaps_search_slow = 0; // # SM lookupFMs
594 static UWord stats__secmaps_allocd = 0; // # SecMaps issued
595 static UWord stats__secmaps_in_map_shmem = 0; // # SecMaps 'live'
596 static UWord stats__secmaps_scanGC = 0; // # nr of scan GC done.
597 static UWord stats__secmaps_scanGCed = 0; // # SecMaps GC-ed via scan
598 static UWord stats__secmaps_ssetGCed = 0; // # SecMaps GC-ed via setnoaccess
599 static UWord stats__secmap_ga_space_covered = 0; // # ga bytes covered
600 static UWord stats__secmap_linesZ_allocd = 0; // # LineZ's issued
[all …]
Dhg_main.c160 static UWord stats__lockN_acquires = 0;
161 static UWord stats__lockN_releases = 0;
279 VG_(addToBag)( lk->heldBy, (UWord)thr ); in lockN_acquire_writer()
289 tl_assert(VG_(elemBag)(lk->heldBy, (UWord)thr) in lockN_acquire_writer()
291 VG_(addToBag)(lk->heldBy, (UWord)thr); in lockN_acquire_writer()
329 VG_(addToBag)(lk->heldBy, (UWord)thr); in lockN_acquire_reader()
333 VG_(addToBag)( lk->heldBy, (UWord)thr ); in lockN_acquire_reader()
352 b = VG_(delFromBag)(lk->heldBy, (UWord)thr); in lockN_release()
375 while (VG_(nextIterBag)( lk->heldBy, (UWord*)&thr, NULL )) { in remove_Lock_from_locksets_of_all_owning_Threads()
378 thr->locksetA, (UWord)lk )); in remove_Lock_from_locksets_of_all_owning_Threads()
[all …]
/external/valgrind/coregrind/m_aspacemgr/
Daspacemgr-common.c150 res = VG_(do_syscall6)(__NR3264_mmap, (UWord)start, length, in VG_()
156 res = VG_(do_syscall6)(__NR_mmap2, (UWord)start, length, in VG_()
163 res = VG_(do_syscall6)(__NR_mmap, (UWord)start, length, in VG_()
169 res = VG_(do_syscall7)(__NR_mmap, (UWord)start, length, in VG_()
175 res = VG_(do_syscall6)(__NR_mmap, (UWord)start, length, in VG_()
181 res = VG_(do_syscall7)(__NR_mmap64, (UWord)start, length, prot, flags, in VG_()
187 res = VG_(do_syscall6)(__NR_mmap, (UWord)start, length, prot, flags, in VG_()
198 return VG_(do_syscall3)(__NR_mprotect, (UWord)start, length, prot ); in local_do_mprotect_NO_NOTIFY()
203 return VG_(do_syscall2)(__NR_munmap, (UWord)start, length ); in ML_()
260 VKI_AT_FDCWD, (UWord)pathname, flags, mode); in ML_()
[all …]
/external/valgrind/memcheck/
Dmc_include.h582 /*OUT*/UWord* nBlocks );
717 VG_REGPARM(2) void MC_(helperc_value_checkN_fail_w_o) ( HWord, UWord );
718 VG_REGPARM(1) void MC_(helperc_value_check8_fail_w_o) ( UWord );
719 VG_REGPARM(1) void MC_(helperc_value_check4_fail_w_o) ( UWord );
720 VG_REGPARM(1) void MC_(helperc_value_check1_fail_w_o) ( UWord );
721 VG_REGPARM(1) void MC_(helperc_value_check0_fail_w_o) ( UWord );
734 VG_REGPARM(2) void MC_(helperc_STOREV32be) ( Addr, UWord );
735 VG_REGPARM(2) void MC_(helperc_STOREV32le) ( Addr, UWord );
736 VG_REGPARM(2) void MC_(helperc_STOREV16be) ( Addr, UWord );
737 VG_REGPARM(2) void MC_(helperc_STOREV16le) ( Addr, UWord );
[all …]

12345678