netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next 1/1] bpf: sparc64: Enable sparc64 jit to provide bpf_line_info
@ 2018-12-19 21:30 Martin KaFai Lau
  2018-12-19 21:36 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Martin KaFai Lau @ 2018-12-19 21:30 UTC (permalink / raw)
  To: netdev; +Cc: Alexei Starovoitov, Daniel Borkmann, David Miller, kernel-team

This patch enables sparc64's bpf_int_jit_compile() to provide
bpf_line_info by calling bpf_prog_fill_jited_linfo().

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
---
 arch/sparc/net/bpf_jit_comp_64.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/sparc/net/bpf_jit_comp_64.c b/arch/sparc/net/bpf_jit_comp_64.c
index 5fda4f7bf15d..65428e79b2f3 100644
--- a/arch/sparc/net/bpf_jit_comp_64.c
+++ b/arch/sparc/net/bpf_jit_comp_64.c
@@ -1575,6 +1575,7 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *prog)
 	prog->jited_len = image_size;
 
 	if (!prog->is_func || extra_pass) {
+		bpf_prog_fill_jited_linfo(prog, ctx.offset);
 out_off:
 		kfree(ctx.offset);
 		kfree(jit_data);
-- 
2.17.1

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

* Re: [PATCH bpf-next 1/1] bpf: sparc64: Enable sparc64 jit to provide bpf_line_info
  2018-12-19 21:30 [PATCH bpf-next 1/1] bpf: sparc64: Enable sparc64 jit to provide bpf_line_info Martin KaFai Lau
@ 2018-12-19 21:36 ` David Miller
  2018-12-20  1:11   ` Daniel Borkmann
  0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2018-12-19 21:36 UTC (permalink / raw)
  To: kafai; +Cc: netdev, ast, daniel, kernel-team

From: Martin KaFai Lau <kafai@fb.com>
Date: Wed, 19 Dec 2018 13:30:54 -0800

> This patch enables sparc64's bpf_int_jit_compile() to provide
> bpf_line_info by calling bpf_prog_fill_jited_linfo().
> 
> Signed-off-by: Martin KaFai Lau <kafai@fb.com>

Acked-by: David S. Miller <davem@davemloft.net>

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

* Re: [PATCH bpf-next 1/1] bpf: sparc64: Enable sparc64 jit to provide bpf_line_info
  2018-12-19 21:36 ` David Miller
@ 2018-12-20  1:11   ` Daniel Borkmann
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Borkmann @ 2018-12-20  1:11 UTC (permalink / raw)
  To: David Miller, kafai; +Cc: netdev, ast, kernel-team

On 12/19/2018 10:36 PM, David Miller wrote:
> From: Martin KaFai Lau <kafai@fb.com>
> Date: Wed, 19 Dec 2018 13:30:54 -0800
> 
>> This patch enables sparc64's bpf_int_jit_compile() to provide
>> bpf_line_info by calling bpf_prog_fill_jited_linfo().
>>
>> Signed-off-by: Martin KaFai Lau <kafai@fb.com>
> 
> Acked-by: David S. Miller <davem@davemloft.net>

Applied, thanks!

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

end of thread, other threads:[~2018-12-20  1:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-19 21:30 [PATCH bpf-next 1/1] bpf: sparc64: Enable sparc64 jit to provide bpf_line_info Martin KaFai Lau
2018-12-19 21:36 ` David Miller
2018-12-20  1:11   ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).