Lines Matching refs:watchpoint

119 	atomic_long_t *watchpoint;  in find_watchpoint()  local
128 watchpoint = &watchpoints[SLOT_IDX_FAST(slot, i)]; in find_watchpoint()
129 *encoded_watchpoint = atomic_long_read(watchpoint); in find_watchpoint()
139 return watchpoint; in find_watchpoint()
150 atomic_long_t *watchpoint; in insert_watchpoint() local
163 watchpoint = &watchpoints[SLOT_IDX(slot, i)]; in insert_watchpoint()
164 if (atomic_long_try_cmpxchg_relaxed(watchpoint, &expect_val, encoded_watchpoint)) in insert_watchpoint()
165 return watchpoint; in insert_watchpoint()
181 try_consume_watchpoint(atomic_long_t *watchpoint, long encoded_watchpoint) in try_consume_watchpoint() argument
183 return atomic_long_try_cmpxchg_relaxed(watchpoint, &encoded_watchpoint, CONSUMED_WATCHPOINT); in try_consume_watchpoint()
187 static inline bool consume_watchpoint(atomic_long_t *watchpoint) in consume_watchpoint() argument
189 return atomic_long_xchg_relaxed(watchpoint, CONSUMED_WATCHPOINT) != CONSUMED_WATCHPOINT; in consume_watchpoint()
193 static inline void remove_watchpoint(atomic_long_t *watchpoint) in remove_watchpoint() argument
195 atomic_long_set(watchpoint, INVALID_WATCHPOINT); in remove_watchpoint()
448 atomic_long_t *watchpoint, in kcsan_found_watchpoint() argument
489 consumed = try_consume_watchpoint(watchpoint, encoded_watchpoint); in kcsan_found_watchpoint()
496 kcsan_report_set_info(ptr, size, type, ip, watchpoint - watchpoints); in kcsan_found_watchpoint()
520 atomic_long_t *watchpoint; in kcsan_setup_watchpoint() local
580 watchpoint = insert_watchpoint((unsigned long)ptr, size, is_write); in kcsan_setup_watchpoint()
581 if (watchpoint == NULL) { in kcsan_setup_watchpoint()
637 if (!consume_watchpoint(watchpoint)) { in kcsan_setup_watchpoint()
668 value_change, watchpoint - watchpoints, in kcsan_setup_watchpoint()
687 remove_watchpoint(watchpoint); in kcsan_setup_watchpoint()
710 atomic_long_t *watchpoint; in check_access() local
726 watchpoint = find_watchpoint((unsigned long)ptr, size, in check_access()
736 if (unlikely(watchpoint != NULL)) in check_access()
737 kcsan_found_watchpoint(ptr, size, type, ip, watchpoint, encoded_watchpoint); in check_access()