Home
last modified time | relevance | path

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

/kernel/
Dkprobes.c91 kprobe_opcode_t *insns; /* Page of instruction slots */ member
161 slot = kip->insns + (i * c->insn_size); in __get_insn_slot()
182 kip->insns = c->alloc(); in __get_insn_slot()
183 if (!kip->insns) { in __get_insn_slot()
194 slot = kip->insns; in __get_insn_slot()
197 perf_event_ksymbol(PERF_RECORD_KSYMBOL_TYPE_OOL, (unsigned long)kip->insns, in __get_insn_slot()
222 (unsigned long)kip->insns, PAGE_SIZE, true, in collect_one_slot()
226 kip->cache->free(kip->insns); in collect_one_slot()
265 idx = ((long)slot - (long)kip->insns) / in __free_insn_slot()
303 if (addr >= (unsigned long)kip->insns && in __is_insn_slot_addr()
[all …]
/kernel/bpf/
Dsyscall.c2582 if (copy_from_bpfptr(prog->insns, in bpf_prog_load()
2583 make_bpfptr(attr->insns, uattr.is_kernel), in bpf_prog_load()
3834 struct bpf_insn *insns; in bpf_insn_prepare_dump() local
3840 insns = kmemdup(prog->insnsi, bpf_prog_insn_size(prog), in bpf_insn_prepare_dump()
3842 if (!insns) in bpf_insn_prepare_dump()
3843 return insns; in bpf_insn_prepare_dump()
3846 code = insns[i].code; in bpf_insn_prepare_dump()
3849 insns[i].code = BPF_JMP | BPF_CALL; in bpf_insn_prepare_dump()
3850 insns[i].imm = BPF_FUNC_tail_call; in bpf_insn_prepare_dump()
3856 insns[i].code = BPF_JMP | BPF_CALL; in bpf_insn_prepare_dump()
[all …]
Dverifier.c11089 struct bpf_insn *insns, in visit_func_call_insn() argument
11103 ret = push_insn(t, t + insns[t].imm + 1, BRANCH, env, in visit_func_call_insn()
11108 bpf_pseudo_func(insns + t)); in visit_func_call_insn()
11120 struct bpf_insn *insns = env->prog->insnsi; in visit_insn() local
11123 if (bpf_pseudo_func(insns + t)) in visit_insn()
11124 return visit_func_call_insn(t, insn_cnt, insns, env, true); in visit_insn()
11127 if (BPF_CLASS(insns[t].code) != BPF_JMP && in visit_insn()
11128 BPF_CLASS(insns[t].code) != BPF_JMP32) in visit_insn()
11131 switch (BPF_OP(insns[t].code)) { in visit_insn()
11136 if (insns[t].imm == BPF_FUNC_timer_set_callback) in visit_insn()
[all …]
/kernel/bpf/preload/iterators/
Diterators.lskel.h325 opts.insns = (void *)"\ in iterators_bpf__load()