Lines Matching refs:watchpoint

117 	atomic_long_t *watchpoint;  in find_watchpoint()  local
126 watchpoint = &watchpoints[SLOT_IDX_FAST(slot, i)]; in find_watchpoint()
127 *encoded_watchpoint = atomic_long_read(watchpoint); in find_watchpoint()
137 return watchpoint; in find_watchpoint()
148 atomic_long_t *watchpoint; in insert_watchpoint() local
161 watchpoint = &watchpoints[SLOT_IDX(slot, i)]; in insert_watchpoint()
162 if (atomic_long_try_cmpxchg_relaxed(watchpoint, &expect_val, encoded_watchpoint)) in insert_watchpoint()
163 return watchpoint; in insert_watchpoint()
179 try_consume_watchpoint(atomic_long_t *watchpoint, long encoded_watchpoint) in try_consume_watchpoint() argument
181 return atomic_long_try_cmpxchg_relaxed(watchpoint, &encoded_watchpoint, CONSUMED_WATCHPOINT); in try_consume_watchpoint()
185 static inline bool consume_watchpoint(atomic_long_t *watchpoint) in consume_watchpoint() argument
187 return atomic_long_xchg_relaxed(watchpoint, CONSUMED_WATCHPOINT) != CONSUMED_WATCHPOINT; in consume_watchpoint()
191 static inline void remove_watchpoint(atomic_long_t *watchpoint) in remove_watchpoint() argument
193 atomic_long_set(watchpoint, INVALID_WATCHPOINT); in remove_watchpoint()
359 atomic_long_t *watchpoint, in kcsan_found_watchpoint() argument
398 consumed = try_consume_watchpoint(watchpoint, encoded_watchpoint); in kcsan_found_watchpoint()
405 kcsan_report_set_info(ptr, size, type, ip, watchpoint - watchpoints); in kcsan_found_watchpoint()
429 atomic_long_t *watchpoint; in kcsan_setup_watchpoint() local
467 watchpoint = insert_watchpoint((unsigned long)ptr, size, is_write); in kcsan_setup_watchpoint()
468 if (watchpoint == NULL) { in kcsan_setup_watchpoint()
547 if (!consume_watchpoint(watchpoint)) { in kcsan_setup_watchpoint()
578 value_change, watchpoint - watchpoints, in kcsan_setup_watchpoint()
597 remove_watchpoint(watchpoint); in kcsan_setup_watchpoint()
611 atomic_long_t *watchpoint; in check_access() local
626 watchpoint = find_watchpoint((unsigned long)ptr, size, !is_write, in check_access()
635 if (unlikely(watchpoint != NULL)) in check_access()
636 kcsan_found_watchpoint(ptr, size, type, ip, watchpoint, encoded_watchpoint); in check_access()