samples: bpf: enable trace samples for s390x
The trace bpf samples do not compile on s390x because they use x86 specific fields from the "pt_regs" structure. Fix this and access the fields via new PT_REGS macros. Signed-off-by:Michael Holzheu <holzheu@linux.vnet.ibm.com> Acked-by:
Alexei Starovoitov <ast@plumgrid.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- samples/bpf/bpf_helpers.h 25 additions, 0 deletionssamples/bpf/bpf_helpers.h
- samples/bpf/tracex1_kern.c 1 addition, 1 deletionsamples/bpf/tracex1_kern.c
- samples/bpf/tracex2_kern.c 3 additions, 3 deletionssamples/bpf/tracex2_kern.c
- samples/bpf/tracex3_kern.c 2 additions, 2 deletionssamples/bpf/tracex3_kern.c
- samples/bpf/tracex4_kern.c 3 additions, 3 deletionssamples/bpf/tracex4_kern.c
- samples/bpf/tracex5_kern.c 3 additions, 3 deletionssamples/bpf/tracex5_kern.c
Loading
Please register or sign in to comment