• Home
  • Raw
  • Download

Lines Matching refs:area

61 	void			*area;  member
136 struct kcov_remote_area *area; in kcov_remote_area_get() local
140 area = list_entry(pos, struct kcov_remote_area, list); in kcov_remote_area_get()
141 if (area->size == size) { in kcov_remote_area_get()
142 list_del(&area->list); in kcov_remote_area_get()
143 return area; in kcov_remote_area_get()
150 static void kcov_remote_area_put(struct kcov_remote_area *area, in kcov_remote_area_put() argument
153 INIT_LIST_HEAD(&area->list); in kcov_remote_area_put()
154 area->size = size; in kcov_remote_area_put()
155 list_add(&area->list, &kcov_remote_areas); in kcov_remote_area_put()
161 kmsan_unpoison_memory(&area->list, sizeof(area->list)); in kcov_remote_area_put()
202 unsigned long *area; in __sanitizer_cov_trace_pc() local
210 area = t->kcov_area; in __sanitizer_cov_trace_pc()
212 pos = READ_ONCE(area[0]) + 1; in __sanitizer_cov_trace_pc()
221 WRITE_ONCE(area[0], pos); in __sanitizer_cov_trace_pc()
223 area[pos] = ip; in __sanitizer_cov_trace_pc()
232 u64 *area; in write_comp_data() local
245 area = (u64 *)t->kcov_area; in write_comp_data()
248 count = READ_ONCE(area[0]); in write_comp_data()
255 WRITE_ONCE(area[0], count + 1); in write_comp_data()
257 area[start_index] = type; in write_comp_data()
258 area[start_index + 1] = arg1; in write_comp_data()
259 area[start_index + 2] = arg2; in write_comp_data()
260 area[start_index + 3] = ip; in write_comp_data()
346 unsigned int size, void *area, enum kcov_mode mode, in kcov_start() argument
349 kcov_debug("t = %px, size = %u, area = %px\n", t, size, area); in kcov_start()
353 t->kcov_area = area; in kcov_start()
428 vfree(kcov->area); in kcov_put()
486 if (kcov->area == NULL || vma->vm_pgoff != 0 || in kcov_mmap()
494 page = vmalloc_to_page(kcov->area + off); in kcov_mmap()
550 unsigned long *area = kcov->area; in kcov_fault_in_area() local
554 READ_ONCE(area[offset]); in kcov_fault_in_area()
592 if (kcov->mode != KCOV_MODE_INIT || !kcov->area) in kcov_ioctl_locked()
602 kcov_start(t, kcov, kcov->size, kcov->area, kcov->mode, in kcov_ioctl_locked()
620 if (kcov->mode != KCOV_MODE_INIT || !kcov->area) in kcov_ioctl_locked()
688 void *area; in kcov_ioctl() local
703 area = vmalloc_user(size * sizeof(unsigned long)); in kcov_ioctl()
704 if (area == NULL) in kcov_ioctl()
709 vfree(area); in kcov_ioctl()
712 kcov->area = area; in kcov_ioctl()
842 void *area; in kcov_remote_start() local
893 area = kcov_remote_area_get(size); in kcov_remote_start()
896 area = this_cpu_ptr(&kcov_percpu_data)->irq_area; in kcov_remote_start()
901 if (!area) { in kcov_remote_start()
903 area = vmalloc(size * sizeof(unsigned long)); in kcov_remote_start()
904 if (!area) { in kcov_remote_start()
912 *(u64 *)area = 0; in kcov_remote_start()
918 kcov_start(t, kcov, size, area, mode, sequence); in kcov_remote_start()
986 void *area; in kcov_remote_stop() local
1017 area = t->kcov_area; in kcov_remote_stop()
1033 kcov_move_area(kcov->mode, kcov->area, kcov->size, area); in kcov_remote_stop()
1038 kcov_remote_area_put(area, size); in kcov_remote_stop()
1063 void *area = vmalloc_node(CONFIG_KCOV_IRQ_AREA_SIZE * in kcov_init() local
1065 if (!area) in kcov_init()
1067 per_cpu_ptr(&kcov_percpu_data, cpu)->irq_area = area; in kcov_init()