Lines Matching refs:code

143 		insn->code, insn->dst_reg,
144 BPF_SRC(insn->code) == BPF_TO_BE ? "be" : "le",
153 insn->code, insn->dst_reg,
159 return (BPF_OP(insn->code) == BPF_DIV || BPF_OP(insn->code) == BPF_MOD) &&
165 return BPF_OP(insn->code) == BPF_MOV &&
174 u8 class = BPF_CLASS(insn->code);
177 if (BPF_OP(insn->code) == BPF_END) {
182 } else if (BPF_OP(insn->code) == BPF_NEG) {
184 insn->code, class == BPF_ALU ? 'w' : 'r',
187 } else if (BPF_SRC(insn->code) == BPF_X) {
189 insn->code, class == BPF_ALU ? 'w' : 'r',
191 is_sdiv_smod(insn) ? bpf_alu_sign_string[BPF_OP(insn->code) >> 4]
192 : bpf_alu_string[BPF_OP(insn->code) >> 4],
198 insn->code, class == BPF_ALU ? 'w' : 'r',
200 is_sdiv_smod(insn) ? bpf_alu_sign_string[BPF_OP(insn->code) >> 4]
201 : bpf_alu_string[BPF_OP(insn->code) >> 4],
205 if (BPF_MODE(insn->code) == BPF_MEM)
207 insn->code,
208 bpf_ldst_string[BPF_SIZE(insn->code) >> 3],
211 else if (BPF_MODE(insn->code) == BPF_ATOMIC &&
215 insn->code,
216 bpf_ldst_string[BPF_SIZE(insn->code) >> 3],
220 } else if (BPF_MODE(insn->code) == BPF_ATOMIC &&
226 insn->code, insn->src_reg,
227 BPF_SIZE(insn->code) == BPF_DW ? "64" : "",
229 bpf_ldst_string[BPF_SIZE(insn->code) >> 3],
231 } else if (BPF_MODE(insn->code) == BPF_ATOMIC &&
234 insn->code,
235 BPF_SIZE(insn->code) == BPF_DW ? "64" : "",
236 bpf_ldst_string[BPF_SIZE(insn->code) >> 3],
239 } else if (BPF_MODE(insn->code) == BPF_ATOMIC &&
242 insn->code, insn->src_reg,
243 BPF_SIZE(insn->code) == BPF_DW ? "64" : "",
244 bpf_ldst_string[BPF_SIZE(insn->code) >> 3],
247 verbose(cbs->private_data, "BUG_%02x\n", insn->code);
250 if (BPF_MODE(insn->code) == BPF_MEM) {
252 insn->code,
253 bpf_ldst_string[BPF_SIZE(insn->code) >> 3],
256 } else if (BPF_MODE(insn->code) == 0xc0 /* BPF_NOSPEC, no UAPI */) {
257 verbose(cbs->private_data, "(%02x) nospec\n", insn->code);
259 verbose(cbs->private_data, "BUG_st_%02x\n", insn->code);
262 if (BPF_MODE(insn->code) != BPF_MEM && BPF_MODE(insn->code) != BPF_MEMSX) {
263 verbose(cbs->private_data, "BUG_ldx_%02x\n", insn->code);
267 insn->code, insn->dst_reg,
268 BPF_MODE(insn->code) == BPF_MEM ?
269 bpf_ldst_string[BPF_SIZE(insn->code) >> 3] :
270 bpf_ldsx_string[BPF_SIZE(insn->code) >> 3],
273 if (BPF_MODE(insn->code) == BPF_ABS) {
275 insn->code,
276 bpf_ldst_string[BPF_SIZE(insn->code) >> 3],
278 } else if (BPF_MODE(insn->code) == BPF_IND) {
280 insn->code,
281 bpf_ldst_string[BPF_SIZE(insn->code) >> 3],
283 } else if (BPF_MODE(insn->code) == BPF_IMM &&
284 BPF_SIZE(insn->code) == BPF_DW) {
297 insn->code, insn->dst_reg,
301 verbose(cbs->private_data, "BUG_ld_%02x\n", insn->code);
305 u8 opcode = BPF_OP(insn->code);
312 insn->code,
317 verbose(cbs->private_data, "(%02x) call %s#%d\n", insn->code,
322 } else if (insn->code == (BPF_JMP | BPF_JA)) {
324 insn->code, insn->off);
325 } else if (insn->code == (BPF_JMP32 | BPF_JA)) {
327 insn->code, insn->imm);
328 } else if (insn->code == (BPF_JMP | BPF_EXIT)) {
329 verbose(cbs->private_data, "(%02x) exit\n", insn->code);
330 } else if (BPF_SRC(insn->code) == BPF_X) {
333 insn->code, class == BPF_JMP32 ? 'w' : 'r',
335 bpf_jmp_string[BPF_OP(insn->code) >> 4],
341 insn->code, class == BPF_JMP32 ? 'w' : 'r',
343 bpf_jmp_string[BPF_OP(insn->code) >> 4],
348 insn->code, bpf_class_string[class]);