]> git.baikalelectronics.ru Git - kernel.git/commit
samples: bpf: enable trace samples for s390x
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Mon, 6 Jul 2015 14:20:07 +0000 (16:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2015 22:17:45 +0000 (15:17 -0700)
commit565a60430b11aed12ed0b578facbc226936bbb1e
tree2752bc31be26f1c27776a0d52439efdd81f9eed7
parent749cc934bfbe6666d7fc17b4a74d556f996d9d8f
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>
samples/bpf/bpf_helpers.h
samples/bpf/tracex1_kern.c
samples/bpf/tracex2_kern.c
samples/bpf/tracex3_kern.c
samples/bpf/tracex4_kern.c
samples/bpf/tracex5_kern.c