diff options
author | Jiri Olsa <jolsa@redhat.com> | 2021-12-08 20:32:43 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-12-13 18:24:22 +0100 |
commit | 5edf6a1983b90371da888ca86493937ec1c8a2b5 (patch) | |
tree | 9196ba513a825efee7ab98d34b52bd989819ba66 /kernel/bpf | |
parent | selftests/bpf: Add test to access int ptr argument in tracing program (diff) | |
download | linux-5edf6a1983b90371da888ca86493937ec1c8a2b5.tar.xz linux-5edf6a1983b90371da888ca86493937ec1c8a2b5.zip |
bpf, x64: Replace some stack_size usage with offset variables
As suggested by Andrii, adding variables for registers and ip
address offsets, which makes the code more clear, rather than
abusing single stack_size variable for everything.
Also describing the stack layout in the comment.
There is no function change.
Suggested-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211208193245.172141-4-jolsa@kernel.org
Diffstat (limited to 'kernel/bpf')
0 files changed, 0 insertions, 0 deletions