bpf: Do per-instruction state dumping in verifier when log_level > 1.
authorDavid S. Miller <davem@davemloft.net>
Wed, 10 May 2017 18:25:17 +0000 (11:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 May 2017 18:19:00 +0000 (14:19 -0400)
commitc5fc9692d101d1318b0f53f9f691cd88ac029317
treed1377b940772c2761cb6a723655d56a565586b47
parentd1174416747d790d750742d0514915deeed93acf
bpf: Do per-instruction state dumping in verifier when log_level > 1.

If log_level > 1, do a state dump every instruction and emit it in
a more compact way (without a leading newline).

This will facilitate more sophisticated test cases which inspect the
verifier log for register state.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/verifier.c