OSDN Git Service

libbpf: Append "..." in fixed up log if CO-RE spec is truncated
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 28 Apr 2022 04:15:20 +0000 (21:15 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 29 Apr 2022 03:03:29 +0000 (20:03 -0700)
commitb198881d4b4c22c499168421b44eff3913a22fb1
treea82cb62ba86700c9dc7fd3014798ed700428344a
parent32c03c4954a03d46f603f94acac9d2705bd5c9c6
libbpf: Append "..." in fixed up log if CO-RE spec is truncated

Detect CO-RE spec truncation and append "..." to make user aware that
there was supposed to be more of the spec there.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220428041523.4089853-2-andrii@kernel.org
tools/lib/bpf/libbpf.c