All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next] bpf: powerpc64: add JIT support for bpf line info
@ 2019-02-01 10:32 Sandipan Das
  2019-02-01 20:07 ` Daniel Borkmann
  0 siblings, 1 reply; 2+ messages in thread
From: Sandipan Das @ 2019-02-01 10:32 UTC (permalink / raw)
  To: ast, daniel; +Cc: kafai, naveen.n.rao, netdev

This adds support for generating bpf line info for
JITed programs.

Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
---
 arch/powerpc/net/bpf_jit_comp64.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/net/bpf_jit_comp64.c b/arch/powerpc/net/bpf_jit_comp64.c
index 15bba765fa79..4194d3cfb60c 100644
--- a/arch/powerpc/net/bpf_jit_comp64.c
+++ b/arch/powerpc/net/bpf_jit_comp64.c
@@ -1185,6 +1185,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp)
 
 	bpf_flush_icache(bpf_hdr, (u8 *)bpf_hdr + (bpf_hdr->pages * PAGE_SIZE));
 	if (!fp->is_func || extra_pass) {
+		bpf_prog_fill_jited_linfo(fp, addrs);
 out_addrs:
 		kfree(addrs);
 		kfree(jit_data);
-- 
2.19.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH bpf-next] bpf: powerpc64: add JIT support for bpf line info
  2019-02-01 10:32 [PATCH bpf-next] bpf: powerpc64: add JIT support for bpf line info Sandipan Das
@ 2019-02-01 20:07 ` Daniel Borkmann
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Borkmann @ 2019-02-01 20:07 UTC (permalink / raw)
  To: Sandipan Das, ast; +Cc: kafai, naveen.n.rao, netdev

On 02/01/2019 11:32 AM, Sandipan Das wrote:
> This adds support for generating bpf line info for
> JITed programs.
> 
> Signed-off-by: Sandipan Das <sandipan@linux.ibm.com>
> ---
>  arch/powerpc/net/bpf_jit_comp64.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/powerpc/net/bpf_jit_comp64.c b/arch/powerpc/net/bpf_jit_comp64.c
> index 15bba765fa79..4194d3cfb60c 100644
> --- a/arch/powerpc/net/bpf_jit_comp64.c
> +++ b/arch/powerpc/net/bpf_jit_comp64.c
> @@ -1185,6 +1185,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp)
>  
>  	bpf_flush_icache(bpf_hdr, (u8 *)bpf_hdr + (bpf_hdr->pages * PAGE_SIZE));
>  	if (!fp->is_func || extra_pass) {
> +		bpf_prog_fill_jited_linfo(fp, addrs);
>  out_addrs:
>  		kfree(addrs);
>  		kfree(jit_data);
> 

Applied, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-01 20:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-01 10:32 [PATCH bpf-next] bpf: powerpc64: add JIT support for bpf line info Sandipan Das
2019-02-01 20:07 ` Daniel Borkmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.