[PATCHv2 net 3/3] samples/bpf: Enable powerpc support

Alexei Starovoitov alexei.starovoitov at gmail.com
Tue Apr 5 03:24:42 AEST 2016


On Mon, Apr 04, 2016 at 10:31:34PM +0530, Naveen N. Rao wrote:
> Add the necessary definitions for building bpf samples on ppc.
> 
> Since ppc doesn't store function return address on the stack, modify how
> PT_REGS_RET() and PT_REGS_FP() work.
> 
> Also, introduce PT_REGS_IP() to access the instruction pointer.
> 
> Cc: Alexei Starovoitov <ast at fb.com>
> Cc: Daniel Borkmann <daniel at iogearbox.net>
> Cc: David S. Miller <davem at davemloft.net>
> Cc: Ananth N Mavinakayanahalli <ananth at in.ibm.com>
> Cc: Michael Ellerman <mpe at ellerman.id.au>
> Signed-off-by: Naveen N. Rao <naveen.n.rao at linux.vnet.ibm.com>

Acked-by: Alexei Starovoitov <ast at kernel.org>



More information about the Linuxppc-dev mailing list