diff options
| author | Song Liu <[email protected]> | 2020-07-24 20:05:02 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-07-26 03:16:36 +0000 |
| commit | 2b9b305fcdda1810bdffeb599361174eb2cd0b7c (patch) | |
| tree | 6ac97431bb7987d56ee380f5dc0fb7eb52fb5587 /tools/bpf/bpftool/prog.c | |
| parent | bpf/local_storage: Fix build without CONFIG_CGROUP (diff) | |
| download | kernel-2b9b305fcdda1810bdffeb599361174eb2cd0b7c.tar.gz kernel-2b9b305fcdda1810bdffeb599361174eb2cd0b7c.zip | |
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 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
