Lines Matching refs:count
44 atomic_t count[hw_breakpoint_slots(0)]; member
46 atomic_t *count;
188 hist->count = kcalloc(hw_breakpoint_slots_cached(type), sizeof(*hist->count), GFP_KERNEL); in bp_slots_histogram_alloc()
189 return hist->count; in bp_slots_histogram_alloc()
194 kfree(hist->count); in bp_slots_histogram_free()
243 WARN_ON(atomic_dec_return_relaxed(&hist->count[old_idx]) < 0); in bp_slots_histogram_add()
245 WARN_ON(atomic_inc_return_relaxed(&hist->count[new_idx]) < 0); in bp_slots_histogram_add()
252 const int count = atomic_read(&hist->count[i]); in bp_slots_histogram_max() local
255 ASSERT_EXCLUSIVE_WRITER(hist->count[i]); in bp_slots_histogram_max()
256 if (count > 0) in bp_slots_histogram_max()
258 WARN(count < 0, "inconsistent breakpoint slots histogram"); in bp_slots_histogram_max()
269 const int count1 = atomic_read(&hist1->count[i]); in bp_slots_histogram_max_merge()
270 const int count2 = atomic_read(&hist2->count[i]); in bp_slots_histogram_max_merge()
273 ASSERT_EXCLUSIVE_WRITER(hist1->count[i]); in bp_slots_histogram_max_merge()
274 ASSERT_EXCLUSIVE_WRITER(hist2->count[i]); in bp_slots_histogram_max_merge()
326 int count = 0; in task_bp_pinned() local
344 count = -1; in task_bp_pinned()
350 count += hw_breakpoint_weight(iter); in task_bp_pinned()
355 return count; in task_bp_pinned()
938 if (atomic_read(&info->tsk_pinned.count[slot])) in hw_breakpoint_is_used()
951 if (WARN_ON(atomic_read(&cpu_pinned[type].count[slot]))) in hw_breakpoint_is_used()
954 if (atomic_read(&tsk_pinned_all[type].count[slot])) in hw_breakpoint_is_used()