Lines Matching refs:cbs
16 static const char *__func_get_name(const struct bpf_insn_cbs *cbs,
27 if (cbs && cbs->cb_call) {
30 res = cbs->cb_call(cbs->private_data, insn);
43 static const char *__func_imm_name(const struct bpf_insn_cbs *cbs,
47 if (cbs && cbs->cb_imm)
48 return cbs->cb_imm(cbs->private_data, insn, full_imm);
169 void print_bpf_insn(const struct bpf_insn_cbs *cbs,
173 const bpf_insn_print_t verbose = cbs->cb_print;
179 print_bpf_bswap_insn(verbose, cbs->private_data, insn);
181 print_bpf_end_insn(verbose, cbs->private_data, insn);
183 verbose(cbs->private_data, "(%02x) %c%d = -%c%d\n",
188 verbose(cbs->private_data, "(%02x) %c%d %s %s%c%d\n",
197 verbose(cbs->private_data, "(%02x) %c%d %s %d\n",
206 verbose(cbs->private_data, "(%02x) *(%s *)(r%d %+d) = r%d\n",
214 verbose(cbs->private_data, "(%02x) lock *(%s *)(r%d %+d) %s r%d\n",
225 verbose(cbs->private_data, "(%02x) r%d = atomic%s_fetch_%s((%s *)(r%d %+d), r%d)\n",
233 verbose(cbs->private_data, "(%02x) r0 = atomic%s_cmpxchg((%s *)(r%d %+d), r0, r%d)\n",
241 verbose(cbs->private_data, "(%02x) r%d = atomic%s_xchg((%s *)(r%d %+d), r%d)\n",
247 verbose(cbs->private_data, "BUG_%02x\n", insn->code);
251 verbose(cbs->private_data, "(%02x) *(%s *)(r%d %+d) = %d\n",
257 verbose(cbs->private_data, "(%02x) nospec\n", insn->code);
259 verbose(cbs->private_data, "BUG_st_%02x\n", insn->code);
263 verbose(cbs->private_data, "BUG_ldx_%02x\n", insn->code);
266 verbose(cbs->private_data, "(%02x) r%d = *(%s *)(r%d %+d)\n",
274 verbose(cbs->private_data, "(%02x) r0 = *(%s *)skb[%d]\n",
279 verbose(cbs->private_data, "(%02x) r0 = *(%s *)skb[r%d + %d]\n",
296 verbose(cbs->private_data, "(%02x) r%d = %s\n",
298 __func_imm_name(cbs, insn, imm,
301 verbose(cbs->private_data, "BUG_ld_%02x\n", insn->code);
311 verbose(cbs->private_data, "(%02x) call pc%s\n",
313 __func_get_name(cbs, insn,
317 verbose(cbs->private_data, "(%02x) call %s#%d\n", insn->code,
318 __func_get_name(cbs, insn,
323 verbose(cbs->private_data, "(%02x) goto pc%+d\n",
326 verbose(cbs->private_data, "(%02x) gotol pc%+d\n",
329 verbose(cbs->private_data, "(%02x) exit\n", insn->code);
331 verbose(cbs->private_data,
339 verbose(cbs->private_data,
347 verbose(cbs->private_data, "(%02x) %s\n",