Skip to content

bpf, arm64: fix bpf line info

Hou Tao bpf linux-arm-kernel netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesIn review
  2. v32 patches 4 repliesSuperseded
  3. v22 patches 3 repliesSuperseded

Changes in v4 from the cover letter

* patch #2: convert ctx.offset into byte offset before call bpf_prog_fill_jited_linfo() instead of converting it back and forth.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bpf, arm64: call build_prologue() first in first JIT passarch/arm64/net/bpf_jit_comp.c+8 -50 replies
2/2bpf, arm64: feed byte-offset into bpf line infoarch/arm64/net/bpf_jit_comp.c+5 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH bpf-next v4 0/2] bpf, arm64: fix bpf line info

Hi,

The patchset addresses two issues in bpf line info for arm64:

(1) insn_to_jit_off only considers the body itself and ignores prologue before the body. Fixed in patch #1.

(2) insn_to_jit_off passed to bpf_prog_fill_jited_linfo() is calculated in instruction granularity instead of bytes granularity. Fixed in patch #2.

Comments are always welcome.

Regards,
Tao

Change Log:
v4:
* patch #2: convert ctx.offset into byte offset before call bpf_prog_fill_jited_linfo() instead of converting it back and forth.

v3: https://lore.kernel.org/bpf/[email protected]
* patch #2: explain why bpf2a64_offset() needs update
* add Fixes tags in both patches

v2: https://lore.kernel.org/bpf/[email protected]
* split into two independent patches (from Daniel)
* use AARCH64_INSN_SIZE instead of defining INSN_SIZE

v1: https://lore.kernel.org/bpf/[email protected]

Hou Tao (2):
bpf, arm64: call build_prologue() first in first JIT pass bpf, arm64: feed byte-offset into bpf line info

 arch/arm64/net/bpf_jit_comp.c | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)
Signature · 1 line
2.18.2