Home
last modified time | relevance | path

Searched refs:slots_per_page (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/kernel/
Dkprobes.c109 static int slots_per_page(struct kprobe_insn_cache *c) in slots_per_page() function
154 if (kip->nused < slots_per_page(c)) { in __get_insn_slot()
156 for (i = 0; i < slots_per_page(c); i++) { in __get_insn_slot()
166 kip->nused = slots_per_page(c); in __get_insn_slot()
177 kip = kmalloc(KPROBE_INSN_PAGE_SIZE(slots_per_page(c)), GFP_KERNEL); in __get_insn_slot()
192 memset(kip->slot_used, SLOT_CLEAN, slots_per_page(c)); in __get_insn_slot()
239 for (i = 0; i < slots_per_page(c); i++) { in collect_garbage_slots()
259 if (idx >= 0 && idx < slots_per_page(c)) in __free_insn_slot()
274 if (++c->nr_garbage > slots_per_page(c)) in __free_insn_slot()