Lines Matching refs:code_fmt
107 const char *code_fmt; in bpf_disasm() local
141 code_fmt = REG(1) " = %2$#" PRIx64; in bpf_disasm()
144 code_fmt = REG(1) " = map_fd(%2$#" PRIx64 ")"; in bpf_disasm()
147 code_fmt = REG(1) " = ld_pseudo(%3$d, %2$#" PRIx64 ")"; in bpf_disasm()
150 len = snprintf(buf, sizeof(buf), code_fmt, in bpf_disasm()
162 code_fmt = "call " IMMS(1); in bpf_disasm()
167 code_fmt = REG(1) " = le" IMMS(2) "(" REG(1) ")"; in bpf_disasm()
170 code_fmt = REG(1) " = be" IMMS(2) "(" REG(1) ")"; in bpf_disasm()
174 code_fmt = A32(+, IMMS(2)); in bpf_disasm()
177 code_fmt = A32(-, IMMS(2)); in bpf_disasm()
180 code_fmt = A32(*, IMMS(2)); in bpf_disasm()
183 code_fmt = A32(/, IMMS(2)); in bpf_disasm()
186 code_fmt = A32(|, IMMX(2)); in bpf_disasm()
189 code_fmt = A32(&, IMMX(2)); in bpf_disasm()
192 code_fmt = A32(<<, IMMS(2)); in bpf_disasm()
195 code_fmt = A32(>>, IMMS(2)); in bpf_disasm()
198 code_fmt = A32(%%, IMMS(2)); in bpf_disasm()
201 code_fmt = A32(^, IMMX(2)); in bpf_disasm()
204 code_fmt = REG(1) " = " IMMX(2); in bpf_disasm()
207 code_fmt = REG(1) " = (u32)((s32)" REG(1) " >> " IMMS(2) ")"; in bpf_disasm()
211 code_fmt = A32(+, REGU(2)); in bpf_disasm()
214 code_fmt = A32(-, REGU(2)); in bpf_disasm()
217 code_fmt = A32(*, REGU(2)); in bpf_disasm()
220 code_fmt = A32(/, REGU(2)); in bpf_disasm()
223 code_fmt = A32(|, REGU(2)); in bpf_disasm()
226 code_fmt = A32(&, REGU(2)); in bpf_disasm()
229 code_fmt = A32(<<, REGU(2)); in bpf_disasm()
232 code_fmt = A32(>>, REGU(2)); in bpf_disasm()
235 code_fmt = A32(%%, REGU(2)); in bpf_disasm()
238 code_fmt = A32(^, REGU(2)); in bpf_disasm()
241 code_fmt = REG(1) " = " REGU(2); in bpf_disasm()
244 code_fmt = REG(1) " = (u32)((s32)" REG(1) " >> " REG(2) ")"; in bpf_disasm()
248 code_fmt = A64(+, IMMS(2)); in bpf_disasm()
251 code_fmt = A64(-, IMMS(2)); in bpf_disasm()
254 code_fmt = A64(*, IMMS(2)); in bpf_disasm()
257 code_fmt = A64(/, IMMS(2)); in bpf_disasm()
260 code_fmt = A64(|, IMMS(2)); in bpf_disasm()
263 code_fmt = A64(&, IMMS(2)); in bpf_disasm()
266 code_fmt = A64(<<, IMMS(2)); in bpf_disasm()
269 code_fmt = A64(>>, IMMS(2)); in bpf_disasm()
272 code_fmt = A64(%%, IMMS(2)); in bpf_disasm()
275 code_fmt = A64(^, IMMS(2)); in bpf_disasm()
278 code_fmt = REG(1) " = " IMMS(2); in bpf_disasm()
281 code_fmt = REG(1) " = (s64)" REG(1) " >> " IMMS(2); in bpf_disasm()
285 code_fmt = A64(+, REG(2)); in bpf_disasm()
288 code_fmt = A64(-, REG(2)); in bpf_disasm()
291 code_fmt = A64(*, REG(2)); in bpf_disasm()
294 code_fmt = A64(/, REG(2)); in bpf_disasm()
297 code_fmt = A64(|, REG(2)); in bpf_disasm()
300 code_fmt = A64(&, REG(2)); in bpf_disasm()
303 code_fmt = A64(<<, REG(2)); in bpf_disasm()
306 code_fmt = A64(>>, REG(2)); in bpf_disasm()
309 code_fmt = A64(%%, REG(2)); in bpf_disasm()
312 code_fmt = A64(^, REG(2)); in bpf_disasm()
315 code_fmt = REG(1) " = " REG(2); in bpf_disasm()
318 code_fmt = REG(1) " = (s64)" REG(1) " >> " REG(2); in bpf_disasm()
322 code_fmt = REG(1) " = (u32)-" REG(1); in bpf_disasm()
325 code_fmt = REG(1) " = -" REG(1); in bpf_disasm()
329 code_fmt = J64(REG(1), ==, IMMS(2)); in bpf_disasm()
332 code_fmt = J64(REG(1), >, IMMS(2)); in bpf_disasm()
335 code_fmt = J64(REG(1), >=, IMMS(2)); in bpf_disasm()
338 code_fmt = J64(REG(1), &, IMMS(2)); in bpf_disasm()
341 code_fmt = J64(REG(1), !=, IMMS(2)); in bpf_disasm()
344 code_fmt = J64(REGS(1), >, IMMS(2)); in bpf_disasm()
347 code_fmt = J64(REGS(1), >=, IMMS(2)); in bpf_disasm()
350 code_fmt = J64(REG(1), <, IMMS(2)); in bpf_disasm()
353 code_fmt = J64(REG(1), <=, IMMS(2)); in bpf_disasm()
356 code_fmt = J64(REGS(1), <, IMMS(2)); in bpf_disasm()
359 code_fmt = J64(REGS(1), <=, IMMS(2)); in bpf_disasm()
363 code_fmt = J64(REG(1), ==, REG(2)); in bpf_disasm()
366 code_fmt = J64(REG(1), >, REG(2)); in bpf_disasm()
369 code_fmt = J64(REG(1), >=, REG(2)); in bpf_disasm()
372 code_fmt = J64(REG(1), &, REG(2)); in bpf_disasm()
375 code_fmt = J64(REG(1), !=, REG(2)); in bpf_disasm()
378 code_fmt = J64(REGS(1), >, REGS(2)); in bpf_disasm()
381 code_fmt = J64(REGS(1), >=, REGS(2)); in bpf_disasm()
384 code_fmt = J64(REG(1), <, REG(2)); in bpf_disasm()
387 code_fmt = J64(REG(1), <=, REG(2)); in bpf_disasm()
390 code_fmt = J64(REGS(1), <, REGS(2)); in bpf_disasm()
393 code_fmt = J64(REGS(1), <=, REGS(2)); in bpf_disasm()
397 code_fmt = LOAD(u8); in bpf_disasm()
400 code_fmt = LOAD(u16); in bpf_disasm()
403 code_fmt = LOAD(u32); in bpf_disasm()
406 code_fmt = LOAD(u64); in bpf_disasm()
410 code_fmt = STORE(u8, REG(2)); in bpf_disasm()
413 code_fmt = STORE(u16, REG(2)); in bpf_disasm()
416 code_fmt = STORE(u32, REG(2)); in bpf_disasm()
419 code_fmt = STORE(u64, REG(2)); in bpf_disasm()
423 code_fmt = XADD(u32, REG(2)); in bpf_disasm()
426 code_fmt = XADD(u64, REG(2)); in bpf_disasm()
430 code_fmt = STORE(u8, IMMS(2)); in bpf_disasm()
433 code_fmt = STORE(u16, IMMS(2)); in bpf_disasm()
436 code_fmt = STORE(u32, IMMS(2)); in bpf_disasm()
439 code_fmt = STORE(u64, IMMS(2)); in bpf_disasm()
443 code_fmt = LDSKB(u8, IMMS(1)); in bpf_disasm()
446 code_fmt = LDSKB(u16, IMMS(1)); in bpf_disasm()
449 code_fmt = LDSKB(u32, IMMS(1)); in bpf_disasm()
453 code_fmt = LDSKB(u8, REG(1) "+" IMMS(2)); in bpf_disasm()
456 code_fmt = LDSKB(u16, REG(1) "+" IMMS(2)); in bpf_disasm()
459 code_fmt = LDSKB(u32, REG(1) "+" IMMS(2)); in bpf_disasm()
463 len = snprintf(buf, sizeof(buf), code_fmt, i.imm); in bpf_disasm()
466 len = snprintf(buf, sizeof(buf), code_fmt, i.dst_reg, i.imm); in bpf_disasm()
469 len = snprintf(buf, sizeof(buf), code_fmt, i.src_reg, i.imm); in bpf_disasm()
472 len = snprintf(buf, sizeof(buf), code_fmt, i.dst_reg, i.src_reg); in bpf_disasm()
475 len = snprintf(buf, sizeof(buf), code_fmt, i.dst_reg, i.imm, jmp); in bpf_disasm()
478 len = snprintf(buf, sizeof(buf), code_fmt, in bpf_disasm()
482 len = snprintf(buf, sizeof(buf), code_fmt, i.dst_reg, i.imm, i.off); in bpf_disasm()
485 len = snprintf(buf, sizeof(buf), code_fmt, in bpf_disasm()