Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpf, arm64: fix bpf line info #3

Closed
wants to merge 3 commits into from

Commits on Feb 20, 2022

  1. adding ci files

    Nobody committed Feb 20, 2022
    Configuration menu
    Copy the full SHA
    395c212 View commit details
    Browse the repository at this point in the history
  2. bpf, arm64: call build_prologue() first in first JIT pass

    BPF line info needs ctx->offset to be the instruction offset
    in the whole jited image instead of the body itself, so also
    call build_prologue() first in first JIT pass.
    
    Fixes: 37ab566 ("bpf: arm64: Enable arm64 jit to provide bpf_line_info")
    Signed-off-by: Hou Tao <houtao1@huawei.com>
    Hou Tao authored and Nobody committed Feb 20, 2022
    Configuration menu
    Copy the full SHA
    5fac372 View commit details
    Browse the repository at this point in the history
  3. bpf, arm64: calculate offset as byte-offset for bpf line info

    insn_to_jit_off passed to bpf_prog_fill_jited_linfo() is calculated
    in instruction granularity instead of bytes granularity, but bpf
    line info requires byte offset, so fixing it by calculating ctx->offset
    as byte-offset. bpf2a64_offset() needs to return relative instruction
    offset by using ctx->offfset, so update it accordingly.
    
    Fixes: 37ab566 ("bpf: arm64: Enable arm64 jit to provide bpf_line_info")
    Signed-off-by: Hou Tao <houtao1@huawei.com>
    Hou Tao authored and Nobody committed Feb 20, 2022
    Configuration menu
    Copy the full SHA
    694fb82 View commit details
    Browse the repository at this point in the history