Lines Matching refs:szB

427 static inline Bool address_in_range (Addr a, Addr start,  SizeT szB)  in address_in_range()  argument
433 tl_assert ((a - start < szB) in address_in_range()
435 && a < start + szB)); in address_in_range()
436 return a - start < szB; in address_in_range()
1648 static void shmem__invalidate_scache_range (Addr ga, SizeT szB) in shmem__invalidate_scache_range() argument
1655 tl_assert (0 == (szB & (N_LINE_ARANGE - 1))); in shmem__invalidate_scache_range()
1659 Word nwix = szB / N_LINE_ARANGE; in shmem__invalidate_scache_range()
1665 if (address_in_range(cache_shmem.tags0[ga_ix], ga, szB)) in shmem__invalidate_scache_range()
4445 UInt szB : 32 - SCALARTS_N_THRBITS - 1; member
4582 static void event_map_bind ( Addr a, SizeT szB, Bool isW, Thr* thr ) in event_map_bind() argument
4596 tl_assert (szB == 4 || szB == 8 ||szB == 1 || szB == 2); in event_map_bind()
4604 .szB = szB, in event_map_bind()
4636 .szB = szB, in event_map_bind()
4657 Thr* thr, Addr a, SizeT szB, Bool isW ) in libhb_event_map_lookup() argument
4671 tl_assert(szB == 8 || szB == 4 || szB == 2 || szB == 1); in libhb_event_map_lookup()
4676 for (i = -7; i < (Word)szB; i++) { in libhb_event_map_lookup()
4709 cand_ref_szB = cand_ref->acc.tsw.szB; in libhb_event_map_lookup()
4710 if (cmp_nonempty_intervals(a, szB, cand_a, cand_ref_szB) != 0) in libhb_event_map_lookup()
4759 void libhb_event_map_access_history ( Addr a, SizeT szB, Access_t fn ) in libhb_event_map_access_history() argument
4766 ref_szB = ref->acc.tsw.szB; in libhb_event_map_access_history()
4767 if (cmp_nonempty_intervals(a, szB, ref->ga, ref_szB) == 0) { in libhb_event_map_access_history()
4827 .szB = 0, in event_map_init()
4979 Addr acc_addr, SizeT szB, Bool isWrite, in record_race_info() argument
5090 szB, isWrite, in record_race_info()
5107 Addr acc_addr, SizeT szB ) in msmcread() argument
5134 record_race_info( acc_thr, acc_addr, szB, False/*!isWrite*/, in msmcread()
5159 event_map_bind( acc_addr, szB, False/*!isWrite*/, acc_thr ); in msmcread()
5172 Addr acc_addr, SizeT szB ) in msmcwrite() argument
5207 record_race_info( acc_thr, acc_addr, szB, True/*isWrite*/, in msmcwrite()
5232 event_map_bind( acc_addr, szB, True/*isWrite*/, acc_thr ); in msmcwrite()
6732 static inline Bool TRACEME(Addr a, SizeT szB) { in TRACEME() argument
6733 if (XXX1 && a <= XXX1 && XXX1 <= a+szB) return True; in TRACEME()
6734 if (XXX2 && a <= XXX2 && XXX2 <= a+szB) return True; in TRACEME()
6737 static void trace ( Thr* thr, Addr a, SizeT szB, const HChar* s ) in trace() argument
6740 VG_(printf)("thr %p (%#lx,%lu) %s: 0x%016llx ", thr,a,szB,s,sv); in trace()
6745 void libhb_srange_new ( Thr* thr, Addr a, SizeT szB ) in libhb_srange_new() argument
6749 if (0 && TRACEME(a,szB)) trace(thr,a,szB,"nw-before"); in libhb_srange_new()
6750 zsm_sset_range( a, szB, sv ); in libhb_srange_new()
6751 Filter__clear_range( thr->filter, a, szB ); in libhb_srange_new()
6752 if (0 && TRACEME(a,szB)) trace(thr,a,szB,"nw-after "); in libhb_srange_new()
6755 void libhb_srange_noaccess_NoFX ( Thr* thr, Addr a, SizeT szB ) in libhb_srange_noaccess_NoFX() argument
6939 void libhb_srange_noaccess_AHAE ( Thr* thr, Addr a, SizeT szB ) in libhb_srange_noaccess_AHAE() argument
6945 if (LIKELY(szB < 2 * N_LINE_ARANGE)) in libhb_srange_noaccess_AHAE()
6946 zsm_sset_range_SMALL (a, szB, SVal_NOACCESS); in libhb_srange_noaccess_AHAE()
6948 zsm_sset_range_noaccess (a, szB); in libhb_srange_noaccess_AHAE()
6949 Filter__clear_range( thr->filter, a, szB ); in libhb_srange_noaccess_AHAE()
7021 void libhb_srange_untrack ( Thr* thr, Addr a, SizeT szB ) in libhb_srange_untrack() argument
7025 if (0 && TRACEME(a,szB)) trace(thr,a,szB,"untrack-before"); in libhb_srange_untrack()
7026 if (LIKELY(szB < 2 * N_LINE_ARANGE)) in libhb_srange_untrack()
7027 zsm_sset_range_SMALL (a, szB, SVal_NOACCESS); in libhb_srange_untrack()
7029 zsm_sset_range_noaccess (a, szB); in libhb_srange_untrack()
7030 Filter__clear_range( thr->filter, a, szB ); in libhb_srange_untrack()
7031 if (0 && TRACEME(a,szB)) trace(thr,a,szB,"untrack-after "); in libhb_srange_untrack()