diff options
author | Song Liu <song@kernel.org> | 2022-02-04 10:57:37 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-02-07 18:13:01 -0800 |
commit | d00c6473b1ee9050cc36d008c6d30bf0d3de0524 (patch) | |
tree | 493b8a3576135a0d05ec3c8238c719675b60d3a5 /tools/lib/api/fs/tracing_path.c | |
parent | ed2d9e1a26cca963ff5ed3b76326d70f7d8201a9 (diff) |
bpf: Use prog->jited_len in bpf_prog_ksym_set_addr()
Using prog->jited_len is simpler and more accurate than current
estimation (header + header->size).
Also, fix missing prog->jited_len with multi function program. This hasn't
been a real issue before this.
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220204185742.271030-5-song@kernel.org
Diffstat (limited to 'tools/lib/api/fs/tracing_path.c')
0 files changed, 0 insertions, 0 deletions