Home
last modified time | relevance | path

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

/kernel/bpf/
Ddisasm.c23 insn->imm >= 0 && insn->imm < __BPF_FUNC_MAX_ID && in __func_get_name()
24 func_id_str[insn->imm]) in __func_get_name()
25 return func_id_str[insn->imm]; in __func_get_name()
36 snprintf(buff, len, "%+d", insn->imm); in __func_get_name()
128 insn->imm, insn->dst_reg); in print_bpf_end_insn()
161 insn->imm); in print_bpf_insn()
171 (insn->imm == BPF_ADD || insn->imm == BPF_AND || in print_bpf_insn()
172 insn->imm == BPF_OR || insn->imm == BPF_XOR)) { in print_bpf_insn()
177 bpf_alu_string[BPF_OP(insn->imm) >> 4], in print_bpf_insn()
180 (insn->imm == (BPF_ADD | BPF_FETCH) || in print_bpf_insn()
[all …]
Dcore.c62 #define IMM insn->imm
305 dst[i].imm = 0; in bpf_prog_calc_tag()
312 dst[i].imm = 0; in bpf_prog_calc_tag()
352 s64 imm = insn->imm; in bpf_adj_delta_to_imm() local
354 if (curr < pos && curr + imm + 1 >= end_old) in bpf_adj_delta_to_imm()
355 imm += delta; in bpf_adj_delta_to_imm()
356 else if (curr >= end_new && curr + imm + 1 < end_new) in bpf_adj_delta_to_imm()
357 imm -= delta; in bpf_adj_delta_to_imm()
358 if (imm < imm_min || imm > imm_max) in bpf_adj_delta_to_imm()
361 insn->imm = imm; in bpf_adj_delta_to_imm()
[all …]
Dverifier.c542 insn->imm == BPF_CMPXCHG; in is_cmpxchg_insn()
1345 static void ___mark_reg_known(struct bpf_reg_state *reg, u64 imm) in ___mark_reg_known() argument
1347 reg->var_off = tnum_const(imm); in ___mark_reg_known()
1348 reg->smin_value = (s64)imm; in ___mark_reg_known()
1349 reg->smax_value = (s64)imm; in ___mark_reg_known()
1350 reg->umin_value = imm; in ___mark_reg_known()
1351 reg->umax_value = imm; in ___mark_reg_known()
1353 reg->s32_min_value = (s32)imm; in ___mark_reg_known()
1354 reg->s32_max_value = (s32)imm; in ___mark_reg_known()
1355 reg->u32_min_value = (u32)imm; in ___mark_reg_known()
[all …]
Darraymap.c174 static int array_map_direct_value_addr(const struct bpf_map *map, u64 *imm, in array_map_direct_value_addr() argument
184 *imm = (unsigned long)array->value; in array_map_direct_value_addr()
188 static int array_map_direct_value_meta(const struct bpf_map *map, u64 imm, in array_map_direct_value_meta() argument
197 if (imm < base || imm >= base + range) in array_map_direct_value_meta()
200 *off = imm - base; in array_map_direct_value_meta()
Dsyscall.c3836 u64 imm; in bpf_insn_prepare_dump() local
3850 insns[i].imm = BPF_FUNC_tail_call; in bpf_insn_prepare_dump()
3858 insns[i].imm = 0; in bpf_insn_prepare_dump()
3869 imm = ((u64)insns[i + 1].imm << 32) | (u32)insns[i].imm; in bpf_insn_prepare_dump()
3870 map = bpf_map_from_imm(prog, imm, &off, &type); in bpf_insn_prepare_dump()
3873 insns[i].imm = map->id; in bpf_insn_prepare_dump()
3874 insns[i + 1].imm = off; in bpf_insn_prepare_dump()
/kernel/trace/
Dtrace_probe.c345 static int str_to_immediate(char *str, unsigned long *imm) in str_to_immediate() argument
348 return kstrtoul(str, 0, imm); in str_to_immediate()
350 return kstrtol(str, 0, (long *)imm); in str_to_immediate()
352 return kstrtol(str + 1, 0, (long *)imm); in str_to_immediate()
/kernel/
Dsignal.c1727 ___ARCH_SI_IA64(int imm, unsigned int flags, unsigned long isr) in force_sig_fault_to_task() argument
1738 info.si_imm = imm; in force_sig_fault_to_task()
1746 ___ARCH_SI_IA64(int imm, unsigned int flags, unsigned long isr)) in force_sig_fault() argument
1749 ___ARCH_SI_IA64(imm, flags, isr), current); in force_sig_fault()
1753 ___ARCH_SI_IA64(int imm, unsigned int flags, unsigned long isr) in send_sig_fault() argument
1764 info.si_imm = imm; in send_sig_fault()