diff options
author | Menglong Dong <imagedong@tencent.com> | 2023-07-13 12:07:36 +0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-07-13 16:04:56 -0700 |
commit | 02a6dfa8ff43efb1c989f87a4d862aedf436088a (patch) | |
tree | 1f48fb9794d958125471c4f451f56f7688da4e69 /tools/testing/selftests/bpf/prog_tests/tracing_struct.c | |
parent | 0a5550b1165cd60ad6972791eda4a3eb7e347280 (diff) | |
download | lwn-02a6dfa8ff43efb1c989f87a4d862aedf436088a.tar.gz lwn-02a6dfa8ff43efb1c989f87a4d862aedf436088a.zip |
bpf, x86: save/restore regs with BPF_DW size
As we already reserve 8 byte in the stack for each reg, it is ok to
store/restore the regs in BPF_DW size. This will make the code in
save_regs()/restore_regs() simpler.
Signed-off-by: Menglong Dong <imagedong@tencent.com>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20230713040738.1789742-2-imagedong@tencent.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tracing_struct.c')
0 files changed, 0 insertions, 0 deletions