diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2022-04-25 17:45:08 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-04-26 15:41:46 -0700 |
commit | b58af63aab11e4ae00fe96de9505759cfdde8ee9 (patch) | |
tree | 7893daae2c48dfa9724324294b16e4b0ebca098f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 185cfe837fdbb1fcc0f6b8fbcf5fdd2d1fccd3ad (diff) |
libbpf: Refactor CO-RE relo human description formatting routine
Refactor how CO-RE relocation is formatted. Now it dumps human-readable
representation, currently used by libbpf in either debug or error
message output during CO-RE relocation resolution process, into provided
buffer. This approach allows for better reuse of this functionality
outside of CO-RE relocation resolution, which we'll use in next patch
for providing better error message for BPF verifier rejecting BPF
program due to unguarded failed CO-RE relocation.
It also gets rid of annoying "stitching" of libbpf_print() calls, which
was the only place where we did this.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220426004511.2691730-8-andrii@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions