aboutsummaryrefslogtreecommitdiff
path: root/kernel/bpf/arraymap.c
diff options
context:
space:
mode:
authorEdward Cree <ecree@solarflare.com>2018-08-22 20:02:44 +0100
committerAlexei Starovoitov <ast@kernel.org>2018-08-29 18:52:12 -0700
commit8efea21d333d21e1f9177579ffdc69556314f603 (patch)
tree6af86387e67804ce0b375367811af02fb9b04ac3 /kernel/bpf/arraymap.c
parent679c782de14bd48c19dd74cd1af20a2bc05dd936 (diff)
downloadlinux-8efea21d333d21e1f9177579ffdc69556314f603.tar.gz
linux-8efea21d333d21e1f9177579ffdc69556314f603.tar.bz2
linux-8efea21d333d21e1f9177579ffdc69556314f603.zip
bpf/verifier: display non-spill stack slot types in print_verifier_state
If a stack slot does not hold a spilled register (STACK_SPILL), then each of its eight bytes could potentially have a different slot_type. This information can be important for debugging, and previously we either did not print anything for the stack slot, or just printed fp-X=0 in the case where its first byte was STACK_ZERO. Instead, print eight characters with either 0 (STACK_ZERO), m (STACK_MISC) or ? (STACK_INVALID) for any stack slot which is neither STACK_SPILL nor entirely STACK_INVALID. Signed-off-by: Edward Cree <ecree@solarflare.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/arraymap.c')
0 files changed, 0 insertions, 0 deletions