Yonghong Song
0fcdfffe80
selftests/bpf: Enable tc verbose mode for test_sk_assign
Currently test_sk_assign failed verifier with llvm11/llvm12.
During debugging, I found the default verifier output is
truncated like below
Verifier analysis:
Skipped 2200 bytes, use 'verb' option for the full verbose log.
[...]
off=23,r=34,imm=0) R5=inv0 R6=ctx(id=0,off=0,imm=0) R7=pkt(id=0,off=0,r=34,imm=0) R10=fp0
80: (0f) r7 += r2
last_idx 80 first_idx 21
regs=4 stack=0 before 78: (16) if w3 == 0x11 goto pc+1
when I am using "./test_progs -vv -t assign".
The reason is tc verbose mode is not enabled.
This patched enabled tc verbose mode and the output looks like below
Verifier analysis:
0: (bf) r6 = r1
1: (b4) w0 = 2
2: (61) r1 = *(u32 *)(r6 +80)
3: (61) r7 = *(u32 *)(r6 +76)
4: (bf) r2 = r7
5: (07) r2 += 14
6: (2d) if r2 > r1 goto pc+61
R0_w=inv2 R1_w=pkt_end(id=0,off=0,imm=0) R2_w=pkt(id=0,off=14,r=14,imm=0)
...
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200824222807.100200-1-yhs@fb.com
2020-08-24 21:15:13 -07:00
..
2020-04-03 13:12:26 -07:00
2020-08-12 08:52:32 -03:00
2020-08-03 16:22:29 -04:00
2020-08-21 14:01:39 -07:00
2020-08-18 18:38:25 -07:00
2020-08-07 11:33:25 -07:00
2020-07-12 10:22:01 +02:00
2020-07-06 10:46:23 +00:00
2020-08-24 14:35:00 -07:00
2020-06-21 20:44:00 -06:00
2020-04-21 09:13:12 -04:00
2020-04-10 15:36:22 -07:00
2020-08-24 14:50:00 -07:00
2020-08-03 14:39:35 -07:00
2020-08-03 14:45:33 -07:00
2020-04-02 17:57:10 +01:00
2020-08-18 18:38:25 -07:00
2020-08-03 20:37:22 -07:00
2020-06-11 16:27:24 +01:00
2020-08-24 21:15:13 -07:00
2020-04-07 20:00:16 -07:00
2020-07-15 16:33:51 +02:00
2020-08-11 14:34:17 -07:00
2020-06-03 20:09:49 -07:00
2020-07-13 10:42:02 -07:00