Home
last modified time | relevance | path

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

/kernel/bpf/
Dlpm_trie.c311 struct lpm_trie_node __rcu **slot; in trie_update_elem() local
351 slot = &trie->root; in trie_update_elem()
353 while ((node = rcu_dereference_protected(*slot, in trie_update_elem()
363 slot = &node->child[next_bit]; in trie_update_elem()
370 rcu_assign_pointer(*slot, new_node); in trie_update_elem()
384 rcu_assign_pointer(*slot, new_node); in trie_update_elem()
396 rcu_assign_pointer(*slot, new_node); in trie_update_elem()
420 rcu_assign_pointer(*slot, im_node); in trie_update_elem()
582 struct lpm_trie_node __rcu **slot; in trie_free() local
591 slot = &trie->root; in trie_free()
[all …]
Dverifier.c3258 int i, slot = -off - 1, spi = slot / BPF_REG_SIZE, err; in check_stack_write_fixed_off() local
3263 err = grow_stack_state(state, round_up(slot + 1, BPF_REG_SIZE)); in check_stack_write_fixed_off()
3365 state->stack[spi].slot_type[(slot - i) % BPF_REG_SIZE] = in check_stack_write_fixed_off()
3423 int slot, spi; in check_stack_write_var_off() local
3425 slot = -i - 1; in check_stack_write_var_off()
3426 spi = slot / BPF_REG_SIZE; in check_stack_write_var_off()
3427 stype = &state->stack[spi].slot_type[slot % BPF_REG_SIZE]; in check_stack_write_var_off()
3495 int i, slot, spi; in mark_reg_stack_read() local
3500 slot = -i - 1; in mark_reg_stack_read()
3501 spi = slot / BPF_REG_SIZE; in mark_reg_stack_read()
[all …]
Dcore.c785 u32 slot = prog->aux->size_poke_tab; in bpf_jit_add_poke_descriptor() local
786 u32 size = slot + 1; in bpf_jit_add_poke_descriptor()
807 memcpy(&tab[slot], poke, sizeof(*poke)); in bpf_jit_add_poke_descriptor()
811 return slot; in bpf_jit_add_poke_descriptor()
/kernel/
Dkcmp.c104 struct kcmp_epoll_slot slot; in kcmp_epoll_target() local
106 if (copy_from_user(&slot, uslot, sizeof(slot))) in kcmp_epoll_target()
113 filp_epoll = fget_task(task2, slot.efd); in kcmp_epoll_target()
117 filp_tgt = get_epoll_tfile_raw_ptr(filp_epoll, slot.tfd, slot.toff); in kcmp_epoll_target()
Dkprobes.c147 kprobe_opcode_t *slot = NULL; in __get_insn_slot() local
161 slot = kip->insns + (i * c->insn_size); in __get_insn_slot()
194 slot = kip->insns; in __get_insn_slot()
201 return slot; in __get_insn_slot()
257 kprobe_opcode_t *slot, int dirty) in __free_insn_slot() argument
265 idx = ((long)slot - (long)kip->insns) / in __free_insn_slot()
/kernel/trace/rv/
Drv.c193 void rv_put_task_monitor_slot(int slot) in rv_put_task_monitor_slot() argument
197 if (slot < 0 || slot >= RV_PER_TASK_MONITORS) { in rv_put_task_monitor_slot()
198 WARN_ONCE(1, "RV releasing an invalid slot!: %d\n", slot); in rv_put_task_monitor_slot()
202 WARN_ONCE(!task_monitor_slots[slot], "RV releasing unused task_monitor_slots: %d\n", in rv_put_task_monitor_slot()
203 slot); in rv_put_task_monitor_slot()
206 task_monitor_slots[slot] = false; in rv_put_task_monitor_slot()
/kernel/events/
Dhw_breakpoint.c937 for (int slot = 0; slot < hw_breakpoint_slots_cached(type); ++slot) { in hw_breakpoint_is_used() local
938 if (atomic_read(&info->tsk_pinned.count[slot])) in hw_breakpoint_is_used()
945 for (int slot = 0; slot < hw_breakpoint_slots_cached(type); ++slot) { in hw_breakpoint_is_used() local
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()
/kernel/kcsan/
Dcore.c84 #define SLOT_IDX(slot, i) (slot + ((i + KCSAN_CHECK_ADJACENT) % NUM_SLOTS)) argument
92 #define SLOT_IDX_FAST(slot, i) (slot + i) argument
119 const int slot = watchpoint_slot(addr); in find_watchpoint() local
130 watchpoint = &watchpoints[SLOT_IDX_FAST(slot, i)]; in find_watchpoint()
150 const int slot = watchpoint_slot(addr); in insert_watchpoint() local
165 watchpoint = &watchpoints[SLOT_IDX(slot, i)]; in insert_watchpoint()
/kernel/irq/
Dirqdomain.c1581 void __rcu **slot; in irq_domain_fix_revmap() local
1592 slot = radix_tree_lookup_slot(&d->domain->revmap_tree, d->hwirq); in irq_domain_fix_revmap()
1593 if (slot) in irq_domain_fix_revmap()
1594 radix_tree_replace_slot(&d->domain->revmap_tree, slot, d); in irq_domain_fix_revmap()
/kernel/sched/
Dfair.c2403 int slot = ps_ratio - NUMA_PERIOD_THRESHOLD; in update_task_scan_period() local
2404 if (!slot) in update_task_scan_period()
2405 slot = 1; in update_task_scan_period()
2406 diff = slot * period_slot; in update_task_scan_period()
2413 int slot = lr_ratio - NUMA_PERIOD_THRESHOLD; in update_task_scan_period() local
2414 if (!slot) in update_task_scan_period()
2415 slot = 1; in update_task_scan_period()
2416 diff = slot * period_slot; in update_task_scan_period()