Thomas Gleixner | 5b497af | 2019-05-29 07:18:09 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 2 | /* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com |
| 3 | * Copyright (c) 2016 Facebook |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <linux/bpf.h> |
| 7 | |
| 8 | #include "disasm.h" |
| 9 | |
| 10 | #define __BPF_FUNC_STR_FN(x) [BPF_FUNC_ ## x] = __stringify(bpf_ ## x) |
| 11 | static const char * const func_id_str[] = { |
| 12 | __BPF_FUNC_MAPPER(__BPF_FUNC_STR_FN) |
| 13 | }; |
| 14 | #undef __BPF_FUNC_STR_FN |
| 15 | |
Daniel Borkmann | 7105e82 | 2017-12-20 13:42:57 +0100 | [diff] [blame] | 16 | static const char *__func_get_name(const struct bpf_insn_cbs *cbs, |
| 17 | const struct bpf_insn *insn, |
| 18 | char *buff, size_t len) |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 19 | { |
| 20 | BUILD_BUG_ON(ARRAY_SIZE(func_id_str) != __BPF_FUNC_MAX_ID); |
| 21 | |
Daniel Borkmann | 7105e82 | 2017-12-20 13:42:57 +0100 | [diff] [blame] | 22 | if (insn->src_reg != BPF_PSEUDO_CALL && |
| 23 | insn->imm >= 0 && insn->imm < __BPF_FUNC_MAX_ID && |
| 24 | func_id_str[insn->imm]) |
| 25 | return func_id_str[insn->imm]; |
| 26 | |
| 27 | if (cbs && cbs->cb_call) |
| 28 | return cbs->cb_call(cbs->private_data, insn); |
| 29 | |
| 30 | if (insn->src_reg == BPF_PSEUDO_CALL) |
| 31 | snprintf(buff, len, "%+d", insn->imm); |
| 32 | |
| 33 | return buff; |
| 34 | } |
| 35 | |
| 36 | static const char *__func_imm_name(const struct bpf_insn_cbs *cbs, |
| 37 | const struct bpf_insn *insn, |
| 38 | u64 full_imm, char *buff, size_t len) |
| 39 | { |
| 40 | if (cbs && cbs->cb_imm) |
| 41 | return cbs->cb_imm(cbs->private_data, insn, full_imm); |
| 42 | |
| 43 | snprintf(buff, len, "0x%llx", (unsigned long long)full_imm); |
| 44 | return buff; |
| 45 | } |
| 46 | |
| 47 | const char *func_id_name(int id) |
| 48 | { |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 49 | if (id >= 0 && id < __BPF_FUNC_MAX_ID && func_id_str[id]) |
| 50 | return func_id_str[id]; |
| 51 | else |
| 52 | return "unknown"; |
| 53 | } |
| 54 | |
| 55 | const char *const bpf_class_string[8] = { |
| 56 | [BPF_LD] = "ld", |
| 57 | [BPF_LDX] = "ldx", |
| 58 | [BPF_ST] = "st", |
| 59 | [BPF_STX] = "stx", |
| 60 | [BPF_ALU] = "alu", |
| 61 | [BPF_JMP] = "jmp", |
Jiong Wang | 56cbd82 | 2019-01-26 12:26:02 -0500 | [diff] [blame] | 62 | [BPF_JMP32] = "jmp32", |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 63 | [BPF_ALU64] = "alu64", |
| 64 | }; |
| 65 | |
| 66 | const char *const bpf_alu_string[16] = { |
| 67 | [BPF_ADD >> 4] = "+=", |
| 68 | [BPF_SUB >> 4] = "-=", |
| 69 | [BPF_MUL >> 4] = "*=", |
| 70 | [BPF_DIV >> 4] = "/=", |
| 71 | [BPF_OR >> 4] = "|=", |
| 72 | [BPF_AND >> 4] = "&=", |
| 73 | [BPF_LSH >> 4] = "<<=", |
| 74 | [BPF_RSH >> 4] = ">>=", |
| 75 | [BPF_NEG >> 4] = "neg", |
| 76 | [BPF_MOD >> 4] = "%=", |
| 77 | [BPF_XOR >> 4] = "^=", |
| 78 | [BPF_MOV >> 4] = "=", |
| 79 | [BPF_ARSH >> 4] = "s>>=", |
| 80 | [BPF_END >> 4] = "endian", |
| 81 | }; |
| 82 | |
| 83 | static const char *const bpf_ldst_string[] = { |
| 84 | [BPF_W >> 3] = "u32", |
| 85 | [BPF_H >> 3] = "u16", |
| 86 | [BPF_B >> 3] = "u8", |
| 87 | [BPF_DW >> 3] = "u64", |
| 88 | }; |
| 89 | |
| 90 | static const char *const bpf_jmp_string[16] = { |
| 91 | [BPF_JA >> 4] = "jmp", |
| 92 | [BPF_JEQ >> 4] = "==", |
| 93 | [BPF_JGT >> 4] = ">", |
| 94 | [BPF_JLT >> 4] = "<", |
| 95 | [BPF_JGE >> 4] = ">=", |
| 96 | [BPF_JLE >> 4] = "<=", |
| 97 | [BPF_JSET >> 4] = "&", |
| 98 | [BPF_JNE >> 4] = "!=", |
| 99 | [BPF_JSGT >> 4] = "s>", |
| 100 | [BPF_JSLT >> 4] = "s<", |
| 101 | [BPF_JSGE >> 4] = "s>=", |
| 102 | [BPF_JSLE >> 4] = "s<=", |
| 103 | [BPF_CALL >> 4] = "call", |
| 104 | [BPF_EXIT >> 4] = "exit", |
| 105 | }; |
| 106 | |
Daniel Borkmann | 7105e82 | 2017-12-20 13:42:57 +0100 | [diff] [blame] | 107 | static void print_bpf_end_insn(bpf_insn_print_t verbose, |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 108 | void *private_data, |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 109 | const struct bpf_insn *insn) |
| 110 | { |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 111 | verbose(private_data, "(%02x) r%d = %s%d r%d\n", |
| 112 | insn->code, insn->dst_reg, |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 113 | BPF_SRC(insn->code) == BPF_TO_BE ? "be" : "le", |
| 114 | insn->imm, insn->dst_reg); |
| 115 | } |
| 116 | |
Daniel Borkmann | 7105e82 | 2017-12-20 13:42:57 +0100 | [diff] [blame] | 117 | void print_bpf_insn(const struct bpf_insn_cbs *cbs, |
Daniel Borkmann | 7105e82 | 2017-12-20 13:42:57 +0100 | [diff] [blame] | 118 | const struct bpf_insn *insn, |
| 119 | bool allow_ptr_leaks) |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 120 | { |
Daniel Borkmann | 7105e82 | 2017-12-20 13:42:57 +0100 | [diff] [blame] | 121 | const bpf_insn_print_t verbose = cbs->cb_print; |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 122 | u8 class = BPF_CLASS(insn->code); |
| 123 | |
| 124 | if (class == BPF_ALU || class == BPF_ALU64) { |
| 125 | if (BPF_OP(insn->code) == BPF_END) { |
| 126 | if (class == BPF_ALU64) |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 127 | verbose(cbs->private_data, "BUG_alu64_%02x\n", insn->code); |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 128 | else |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 129 | print_bpf_end_insn(verbose, cbs->private_data, insn); |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 130 | } else if (BPF_OP(insn->code) == BPF_NEG) { |
Jiong Wang | 56cbd82 | 2019-01-26 12:26:02 -0500 | [diff] [blame] | 131 | verbose(cbs->private_data, "(%02x) %c%d = -%c%d\n", |
| 132 | insn->code, class == BPF_ALU ? 'w' : 'r', |
| 133 | insn->dst_reg, class == BPF_ALU ? 'w' : 'r', |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 134 | insn->dst_reg); |
| 135 | } else if (BPF_SRC(insn->code) == BPF_X) { |
Jiong Wang | 56cbd82 | 2019-01-26 12:26:02 -0500 | [diff] [blame] | 136 | verbose(cbs->private_data, "(%02x) %c%d %s %c%d\n", |
| 137 | insn->code, class == BPF_ALU ? 'w' : 'r', |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 138 | insn->dst_reg, |
| 139 | bpf_alu_string[BPF_OP(insn->code) >> 4], |
Jiong Wang | 56cbd82 | 2019-01-26 12:26:02 -0500 | [diff] [blame] | 140 | class == BPF_ALU ? 'w' : 'r', |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 141 | insn->src_reg); |
| 142 | } else { |
Jiong Wang | 56cbd82 | 2019-01-26 12:26:02 -0500 | [diff] [blame] | 143 | verbose(cbs->private_data, "(%02x) %c%d %s %d\n", |
| 144 | insn->code, class == BPF_ALU ? 'w' : 'r', |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 145 | insn->dst_reg, |
| 146 | bpf_alu_string[BPF_OP(insn->code) >> 4], |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 147 | insn->imm); |
| 148 | } |
| 149 | } else if (class == BPF_STX) { |
| 150 | if (BPF_MODE(insn->code) == BPF_MEM) |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 151 | verbose(cbs->private_data, "(%02x) *(%s *)(r%d %+d) = r%d\n", |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 152 | insn->code, |
| 153 | bpf_ldst_string[BPF_SIZE(insn->code) >> 3], |
| 154 | insn->dst_reg, |
| 155 | insn->off, insn->src_reg); |
Brendan Jackman | 91c960b | 2021-01-14 18:17:44 +0000 | [diff] [blame] | 156 | else if (BPF_MODE(insn->code) == BPF_ATOMIC && |
| 157 | insn->imm == BPF_ADD) { |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 158 | verbose(cbs->private_data, "(%02x) lock *(%s *)(r%d %+d) += r%d\n", |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 159 | insn->code, |
| 160 | bpf_ldst_string[BPF_SIZE(insn->code) >> 3], |
| 161 | insn->dst_reg, insn->off, |
| 162 | insn->src_reg); |
Brendan Jackman | 5ca419f | 2021-01-14 18:17:46 +0000 | [diff] [blame] | 163 | } else if (BPF_MODE(insn->code) == BPF_ATOMIC && |
| 164 | insn->imm == (BPF_ADD | BPF_FETCH)) { |
| 165 | verbose(cbs->private_data, "(%02x) r%d = atomic%s_fetch_add((%s *)(r%d %+d), r%d)\n", |
| 166 | insn->code, insn->src_reg, |
| 167 | BPF_SIZE(insn->code) == BPF_DW ? "64" : "", |
| 168 | bpf_ldst_string[BPF_SIZE(insn->code) >> 3], |
| 169 | insn->dst_reg, insn->off, insn->src_reg); |
Brendan Jackman | 5ffa255 | 2021-01-14 18:17:47 +0000 | [diff] [blame^] | 170 | } else if (BPF_MODE(insn->code) == BPF_ATOMIC && |
| 171 | insn->imm == BPF_CMPXCHG) { |
| 172 | verbose(cbs->private_data, "(%02x) r0 = atomic%s_cmpxchg((%s *)(r%d %+d), r0, r%d)\n", |
| 173 | insn->code, |
| 174 | BPF_SIZE(insn->code) == BPF_DW ? "64" : "", |
| 175 | bpf_ldst_string[BPF_SIZE(insn->code) >> 3], |
| 176 | insn->dst_reg, insn->off, |
| 177 | insn->src_reg); |
| 178 | } else if (BPF_MODE(insn->code) == BPF_ATOMIC && |
| 179 | insn->imm == BPF_XCHG) { |
| 180 | verbose(cbs->private_data, "(%02x) r%d = atomic%s_xchg((%s *)(r%d %+d), r%d)\n", |
| 181 | insn->code, insn->src_reg, |
| 182 | BPF_SIZE(insn->code) == BPF_DW ? "64" : "", |
| 183 | bpf_ldst_string[BPF_SIZE(insn->code) >> 3], |
| 184 | insn->dst_reg, insn->off, insn->src_reg); |
Brendan Jackman | 91c960b | 2021-01-14 18:17:44 +0000 | [diff] [blame] | 185 | } else { |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 186 | verbose(cbs->private_data, "BUG_%02x\n", insn->code); |
Brendan Jackman | 91c960b | 2021-01-14 18:17:44 +0000 | [diff] [blame] | 187 | } |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 188 | } else if (class == BPF_ST) { |
| 189 | if (BPF_MODE(insn->code) != BPF_MEM) { |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 190 | verbose(cbs->private_data, "BUG_st_%02x\n", insn->code); |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 191 | return; |
| 192 | } |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 193 | verbose(cbs->private_data, "(%02x) *(%s *)(r%d %+d) = %d\n", |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 194 | insn->code, |
| 195 | bpf_ldst_string[BPF_SIZE(insn->code) >> 3], |
| 196 | insn->dst_reg, |
| 197 | insn->off, insn->imm); |
| 198 | } else if (class == BPF_LDX) { |
| 199 | if (BPF_MODE(insn->code) != BPF_MEM) { |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 200 | verbose(cbs->private_data, "BUG_ldx_%02x\n", insn->code); |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 201 | return; |
| 202 | } |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 203 | verbose(cbs->private_data, "(%02x) r%d = *(%s *)(r%d %+d)\n", |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 204 | insn->code, insn->dst_reg, |
| 205 | bpf_ldst_string[BPF_SIZE(insn->code) >> 3], |
| 206 | insn->src_reg, insn->off); |
| 207 | } else if (class == BPF_LD) { |
| 208 | if (BPF_MODE(insn->code) == BPF_ABS) { |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 209 | verbose(cbs->private_data, "(%02x) r0 = *(%s *)skb[%d]\n", |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 210 | insn->code, |
| 211 | bpf_ldst_string[BPF_SIZE(insn->code) >> 3], |
| 212 | insn->imm); |
| 213 | } else if (BPF_MODE(insn->code) == BPF_IND) { |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 214 | verbose(cbs->private_data, "(%02x) r0 = *(%s *)skb[r%d + %d]\n", |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 215 | insn->code, |
| 216 | bpf_ldst_string[BPF_SIZE(insn->code) >> 3], |
| 217 | insn->src_reg, insn->imm); |
| 218 | } else if (BPF_MODE(insn->code) == BPF_IMM && |
| 219 | BPF_SIZE(insn->code) == BPF_DW) { |
| 220 | /* At this point, we already made sure that the second |
| 221 | * part of the ldimm64 insn is accessible. |
| 222 | */ |
| 223 | u64 imm = ((u64)(insn + 1)->imm << 32) | (u32)insn->imm; |
Daniel Borkmann | d8eca5b | 2019-04-09 23:20:03 +0200 | [diff] [blame] | 224 | bool is_ptr = insn->src_reg == BPF_PSEUDO_MAP_FD || |
| 225 | insn->src_reg == BPF_PSEUDO_MAP_VALUE; |
Daniel Borkmann | 7105e82 | 2017-12-20 13:42:57 +0100 | [diff] [blame] | 226 | char tmp[64]; |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 227 | |
Daniel Borkmann | d8eca5b | 2019-04-09 23:20:03 +0200 | [diff] [blame] | 228 | if (is_ptr && !allow_ptr_leaks) |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 229 | imm = 0; |
| 230 | |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 231 | verbose(cbs->private_data, "(%02x) r%d = %s\n", |
Daniel Borkmann | 7105e82 | 2017-12-20 13:42:57 +0100 | [diff] [blame] | 232 | insn->code, insn->dst_reg, |
| 233 | __func_imm_name(cbs, insn, imm, |
| 234 | tmp, sizeof(tmp))); |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 235 | } else { |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 236 | verbose(cbs->private_data, "BUG_ld_%02x\n", insn->code); |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 237 | return; |
| 238 | } |
Jiong Wang | 56cbd82 | 2019-01-26 12:26:02 -0500 | [diff] [blame] | 239 | } else if (class == BPF_JMP32 || class == BPF_JMP) { |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 240 | u8 opcode = BPF_OP(insn->code); |
| 241 | |
| 242 | if (opcode == BPF_CALL) { |
Daniel Borkmann | 7105e82 | 2017-12-20 13:42:57 +0100 | [diff] [blame] | 243 | char tmp[64]; |
| 244 | |
| 245 | if (insn->src_reg == BPF_PSEUDO_CALL) { |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 246 | verbose(cbs->private_data, "(%02x) call pc%s\n", |
Daniel Borkmann | 7105e82 | 2017-12-20 13:42:57 +0100 | [diff] [blame] | 247 | insn->code, |
| 248 | __func_get_name(cbs, insn, |
| 249 | tmp, sizeof(tmp))); |
| 250 | } else { |
| 251 | strcpy(tmp, "unknown"); |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 252 | verbose(cbs->private_data, "(%02x) call %s#%d\n", insn->code, |
Daniel Borkmann | 7105e82 | 2017-12-20 13:42:57 +0100 | [diff] [blame] | 253 | __func_get_name(cbs, insn, |
| 254 | tmp, sizeof(tmp)), |
| 255 | insn->imm); |
| 256 | } |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 257 | } else if (insn->code == (BPF_JMP | BPF_JA)) { |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 258 | verbose(cbs->private_data, "(%02x) goto pc%+d\n", |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 259 | insn->code, insn->off); |
| 260 | } else if (insn->code == (BPF_JMP | BPF_EXIT)) { |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 261 | verbose(cbs->private_data, "(%02x) exit\n", insn->code); |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 262 | } else if (BPF_SRC(insn->code) == BPF_X) { |
Jiong Wang | 56cbd82 | 2019-01-26 12:26:02 -0500 | [diff] [blame] | 263 | verbose(cbs->private_data, |
| 264 | "(%02x) if %c%d %s %c%d goto pc%+d\n", |
| 265 | insn->code, class == BPF_JMP32 ? 'w' : 'r', |
| 266 | insn->dst_reg, |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 267 | bpf_jmp_string[BPF_OP(insn->code) >> 4], |
Jiong Wang | 56cbd82 | 2019-01-26 12:26:02 -0500 | [diff] [blame] | 268 | class == BPF_JMP32 ? 'w' : 'r', |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 269 | insn->src_reg, insn->off); |
| 270 | } else { |
Jiong Wang | 56cbd82 | 2019-01-26 12:26:02 -0500 | [diff] [blame] | 271 | verbose(cbs->private_data, |
| 272 | "(%02x) if %c%d %s 0x%x goto pc%+d\n", |
| 273 | insn->code, class == BPF_JMP32 ? 'w' : 'r', |
| 274 | insn->dst_reg, |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 275 | bpf_jmp_string[BPF_OP(insn->code) >> 4], |
| 276 | insn->imm, insn->off); |
| 277 | } |
| 278 | } else { |
Jiri Olsa | abe0884 | 2018-03-23 11:41:28 +0100 | [diff] [blame] | 279 | verbose(cbs->private_data, "(%02x) %s\n", |
Jakub Kicinski | f4ac7e0 | 2017-10-09 10:30:12 -0700 | [diff] [blame] | 280 | insn->code, bpf_class_string[class]); |
| 281 | } |
| 282 | } |