diff options
author | Maxim Mikityanskiy <[email protected]> | 2024-09-09 16:39:09 +0300 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2024-09-09 15:58:17 -0700 |
commit | bee109b7b3e50739b88252a219fa07ecd78ad628 (patch) | |
tree | deddf35e7e450e37bf4658bb000be9a9baa38452 /scripts/gdb/linux/tasks.py | |
parent | f028d7716cdeae3be7d8d211482248916b25b1c2 (diff) |
bpf: Fix error message on kfunc arg type mismatch
When "arg#%d expected pointer to ctx, but got %s" error is printed, both
template parts actually point to the type of the argument, therefore, it
will also say "but got PTR", regardless of what was the actual register
type.
Fix the message to print the register type in the second part of the
template, change the existing test to adapt to the new format, and add a
new test to test the case when arg is a pointer to context, but reg is a
scalar.
Fixes: 00b85860feb8 ("bpf: Rewrite kfunc argument handling")
Signed-off-by: Maxim Mikityanskiy <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Kumar Kartikeya Dwivedi <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions