WARNING: line length of 98 exceeds 80 columns #57: FILE: tools/lib/bpf/bpf.c:796: + attr.link_create.tracing_multi.ids = (__u64) OPTS_GET(opts, tracing_multi.ids, 0); CHECK: No space is necessary after a cast #57: FILE: tools/lib/bpf/bpf.c:796: + attr.link_create.tracing_multi.ids = (__u64) OPTS_GET(opts, tracing_multi.ids, 0); WARNING: line length of 106 exceeds 80 columns #58: FILE: tools/lib/bpf/bpf.c:797: + attr.link_create.tracing_multi.cookies = (__u64) OPTS_GET(opts, tracing_multi.cookies, 0); CHECK: No space is necessary after a cast #58: FILE: tools/lib/bpf/bpf.c:797: + attr.link_create.tracing_multi.cookies = (__u64) OPTS_GET(opts, tracing_multi.cookies, 0); WARNING: line length of 90 exceeds 80 columns #59: FILE: tools/lib/bpf/bpf.c:798: + attr.link_create.tracing_multi.cnt = OPTS_GET(opts, tracing_multi.cnt, 0); WARNING: line length of 101 exceeds 80 columns #90: FILE: tools/lib/bpf/libbpf.c:9830: +static int attach_tracing_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link); WARNING: line length of 100 exceeds 80 columns #98: FILE: tools/lib/bpf/libbpf.c:9879: + SEC_DEF("fsession.multi+", TRACING, BPF_TRACE_FSESSION_MULTI, 0, attach_tracing_multi), WARNING: line length of 112 exceeds 80 columns #99: FILE: tools/lib/bpf/libbpf.c:9880: + SEC_DEF("fsession.multi.s+", TRACING, BPF_TRACE_FSESSION_MULTI, SEC_SLEEPABLE, attach_tracing_multi), WARNING: line length of 98 exceeds 80 columns #100: FILE: tools/lib/bpf/libbpf.c:9881: + SEC_DEF("fentry.multi+", TRACING, BPF_TRACE_FENTRY_MULTI, 0, attach_tracing_multi), WARNING: line length of 97 exceeds 80 columns #101: FILE: tools/lib/bpf/libbpf.c:9882: + SEC_DEF("fexit.multi+", TRACING, BPF_TRACE_FEXIT_MULTI, 0, attach_tracing_multi), WARNING: line length of 110 exceeds 80 columns #102: FILE: tools/lib/bpf/libbpf.c:9883: + SEC_DEF("fentry.multi.s+", TRACING, BPF_TRACE_FENTRY_MULTI, SEC_SLEEPABLE, attach_tracing_multi), WARNING: line length of 109 exceeds 80 columns #103: FILE: tools/lib/bpf/libbpf.c:9884: + SEC_DEF("fexit.multi.s+", TRACING, BPF_TRACE_FEXIT_MULTI, SEC_SLEEPABLE, attach_tracing_multi), WARNING: line length of 85 exceeds 80 columns #166: FILE: tools/lib/bpf/libbpf.c:12315: +collect_btf_func_ids_by_glob(const struct btf *btf, const char *pattern, __u32 **ids) WARNING: line length of 85 exceeds 80 columns #190: FILE: tools/lib/bpf/libbpf.c:12339: + err = libbpf_ensure_mem((void **) ids, &cap, sizeof(**ids), cnt + 1); CHECK: No space is necessary after a cast #190: FILE: tools/lib/bpf/libbpf.c:12339: + err = libbpf_ensure_mem((void **) ids, &cap, sizeof(**ids), cnt + 1); WARNING: line length of 86 exceeds 80 columns #202: FILE: tools/lib/bpf/libbpf.c:12351: +bpf_program__attach_tracing_multi(const struct bpf_program *prog, const char *pattern, WARNING: line length of 90 exceeds 80 columns #227: FILE: tools/lib/bpf/libbpf.c:12376: + cnt = collect_btf_func_ids_by_glob(prog->obj->btf_vmlinux, pattern, &ids); WARNING: line length of 82 exceeds 80 columns #247: FILE: tools/lib/bpf/libbpf.c:12396: + link_fd = bpf_link_create(prog_fd, 0, prog->expected_attach_type, &lopts); WARNING: line length of 86 exceeds 80 columns #250: FILE: tools/lib/bpf/libbpf.c:12399: + pr_warn("prog '%s': failed to attach: %s\n", prog->name, errstr(err)); WARNING: line length of 100 exceeds 80 columns #263: FILE: tools/lib/bpf/libbpf.c:12412: +static int attach_tracing_multi(const struct bpf_program *prog, long cookie, struct bpf_link **link) ERROR: space prohibited before that ':' (ctx:WxV) #317: FILE: tools/lib/bpf/libbpf.h:710: + size_t :0; ^ WARNING: line length of 86 exceeds 80 columns #323: FILE: tools/lib/bpf/libbpf.h:716: +bpf_program__attach_tracing_multi(const struct bpf_program *prog, const char *pattern, total: 1 errors, 18 warnings, 3 checks, 268 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit 26ab31efdde9 ("libbpf: Add support to create tracing multi link") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE FILE_PATH_CHANGES GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS.