Re: [PATCH bpf-next v4 2/6] bpf: Add log support for tracing_multi link_create
From: Steven Rostedt
Date: Wed Nov 25 2026 - 10:48:51 EST
On Wed, 25 Nov 2026 22:31:34 +0800
Leon Hwang <leon.hwang@xxxxxxxxx> wrote:
> diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h
> index 321f2f3a6c8e..bb825ea5d09c 100644
> --- a/include/linux/trace_events.h
> +++ b/include/linux/trace_events.h
> @@ -16,6 +16,7 @@ struct tracer;
> struct dentry;
> struct bpf_prog;
> union bpf_attr;
> +struct bpf_verifier_log;
>
> /* Used for event string fields when they are NULL */
> #define EVENT_NULL_STR "(null)"
> @@ -796,7 +797,8 @@ int bpf_get_perf_event_info(const struct perf_event *event, u32 *prog_id,
> unsigned long *missed);
> int bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
> int bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
> -int bpf_tracing_multi_attach(struct bpf_prog *prog, const union bpf_attr *attr);
> +int bpf_tracing_multi_attach(struct bpf_prog *prog, const union bpf_attr *attr,
> + struct bpf_verifier_log *log);
> #else
> static inline unsigned int trace_call_bpf(struct trace_event_call *call, void *ctx)
> {
> @@ -855,7 +857,8 @@ bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
> return -EOPNOTSUPP;
> }
> static inline int
> -bpf_tracing_multi_attach(struct bpf_prog *prog, const union bpf_attr *attr)
> +bpf_tracing_multi_attach(struct bpf_prog *prog, const union bpf_attr *attr,
> + struct bpf_verifier_log *log)
> {
> return -EOPNOTSUPP;
> }
Acked-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
-- Steve