aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorMax Filippov <[email protected]>2018-11-27 02:06:01 +0000
committerMax Filippov <[email protected]>2018-11-27 02:37:51 +0000
commit38a35a78c5e270cbe53c4fef6b0d3c2da90dd849 (patch)
tree558671a432f90f55aa6aaf273041ee6f904caab5 /tools/bpf/bpftool/prog.c
parentxtensa: fix coprocessor context offset definitions (diff)
downloadkernel-38a35a78c5e270cbe53c4fef6b0d3c2da90dd849.tar.gz
kernel-38a35a78c5e270cbe53c4fef6b0d3c2da90dd849.zip
xtensa: fix coprocessor part of ptrace_{get,set}xregs
Layout of coprocessor registers in the elf_xtregs_t and xtregs_coprocessor_t may be different due to alignment. Thus it is not always possible to copy data between the xtregs_coprocessor_t structure and the elf_xtregs_t and get correct values for all registers. Use a table of offsets and sizes of individual coprocessor register groups to do coprocessor context copying in the ptrace_getxregs and ptrace_setxregs. This fixes incorrect coprocessor register values reading from the user process by the native gdb on an xtensa core with multiple coprocessors and registers with high alignment requirements. Cc: [email protected] Signed-off-by: Max Filippov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions