• Daniel Borkmann's avatar
    tc, bpf: further improve error reporting · afc1a200
    Daniel Borkmann authored
    Make it easier to spot issues when loading the object file fails. This
    includes reporting in what pinned object specs differ, better indication
    when we've reached instruction limits. Don't retry to load a non relo
    program once we failed with bpf(2), and report out of bounds tail call key.
    
    Also, add truncation of huge log outputs by default. Sometimes errors are
    quite easy to spot by only looking at the tail of the verifier log, but
    logs can get huge in size e.g. up to few MB (due to verifier checking all
    possible program paths). Thus, by default limit output to the last 4096
    bytes and indicate that it's truncated. For the full log, the verbose option
    can be used.
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    afc1a200
tc_bpf.h 1.88 KB