diff options
| author | Song Liu <[email protected]> | 2020-07-24 13:05:02 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-07-25 20:16:36 -0700 |
| commit | 2b9b305fcdda1810bdffeb599361174eb2cd0b7c (patch) | |
| tree | 6ac97431bb7987d56ee380f5dc0fb7eb52fb5587 /scripts/gdb/linux/vmalloc.py | |
| parent | dfcdf0e9ad2e006196986f363c99b2097aec5ef0 (diff) | |
bpf: Fix build on architectures with special bpf_user_pt_regs_t
Architectures like s390, powerpc, arm64, riscv have speical definition of
bpf_user_pt_regs_t. So we need to cast the pointer before passing it to
bpf_get_stack(). This is similar to bpf_get_stack_tp().
Fixes: 03d42fd2d83f ("bpf: Separate bpf_get_[stack|stackid] for perf events BPF")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions