diff options
author | Kumar Kartikeya Dwivedi <[email protected]> | 2021-11-23 05:27:33 +0530 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2021-11-30 15:48:15 -0800 |
commit | d995816b77eb826e0f6d7adf4471ec191b362be0 (patch) | |
tree | f9e3218358a518f12f76acc5765fd6af95ef4cbd /tools/perf/scripts/python | |
parent | 0270090d396a8e7e7f42adae13fdfa48ffb85144 (diff) |
libbpf: Avoid reload of imm for weak, unresolved, repeating ksym
Alexei pointed out that we can use BPF_REG_0 which already contains imm
from move_blob2blob computation. Note that we now compare the second
insn's imm, but this should not matter, since both will be zeroed out
for the error case for the insn populated earlier.
Suggested-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions