Searched refs:insns (Results 1 – 3 of 3) sorted by relevance
/kernel/ |
D | kprobes.c | 86 kprobe_opcode_t *insns; /* Page of instruction slots */ member 149 slot = kip->insns + (i * c->insn_size); in __get_insn_slot() 175 kip->insns = c->alloc(); in __get_insn_slot() 176 if (!kip->insns) { in __get_insn_slot() 187 slot = kip->insns; in __get_insn_slot() 190 perf_event_ksymbol(PERF_RECORD_KSYMBOL_TYPE_OOL, (unsigned long)kip->insns, in __get_insn_slot() 215 (unsigned long)kip->insns, PAGE_SIZE, true, in collect_one_slot() 219 kip->cache->free(kip->insns); in collect_one_slot() 257 idx = ((long)slot - (long)kip->insns) / in __free_insn_slot() 295 if (addr >= (unsigned long)kip->insns && in __is_insn_slot_addr() [all …]
|
/kernel/bpf/ |
D | syscall.c | 2304 if (copy_from_bpfptr(prog->insns, in bpf_prog_load() 2305 make_bpfptr(attr->insns, uattr.is_kernel), in bpf_prog_load() 3532 struct bpf_insn *insns; in bpf_insn_prepare_dump() local 3538 insns = kmemdup(prog->insnsi, bpf_prog_insn_size(prog), in bpf_insn_prepare_dump() 3540 if (!insns) in bpf_insn_prepare_dump() 3541 return insns; in bpf_insn_prepare_dump() 3544 code = insns[i].code; in bpf_insn_prepare_dump() 3547 insns[i].code = BPF_JMP | BPF_CALL; in bpf_insn_prepare_dump() 3548 insns[i].imm = BPF_FUNC_tail_call; in bpf_insn_prepare_dump() 3554 insns[i].code = BPF_JMP | BPF_CALL; in bpf_insn_prepare_dump() [all …]
|
D | verifier.c | 9810 struct bpf_insn *insns, in visit_func_call_insn() argument 9824 ret = push_insn(t, t + insns[t].imm + 1, BRANCH, env, in visit_func_call_insn() 9829 bpf_pseudo_func(insns + t)); in visit_func_call_insn() 9841 struct bpf_insn *insns = env->prog->insnsi; in visit_insn() local 9844 if (bpf_pseudo_func(insns + t)) in visit_insn() 9845 return visit_func_call_insn(t, insn_cnt, insns, env, true); in visit_insn() 9848 if (BPF_CLASS(insns[t].code) != BPF_JMP && in visit_insn() 9849 BPF_CLASS(insns[t].code) != BPF_JMP32) in visit_insn() 9852 switch (BPF_OP(insns[t].code)) { in visit_insn() 9857 if (insns[t].imm == BPF_FUNC_timer_set_callback) in visit_insn() [all …]
|