On Tue, 26 May 2026 09:09:10 +0900
Masami Hiramatsu (Google) <[email protected]> wrote:

> On Thu, 21 May 2026 22:50:33 -0400
> Steven Rostedt <[email protected]> wrote:
> 
> > @@ -640,7 +673,7 @@ static int parse_btf_arg(char *varname,
> >     int i, is_ptr, ret;
> >     u32 tid;
> >  
> > -   if (WARN_ON_ONCE(!ctx->funcname))
> > +   if (WARN_ON_ONCE(!ctx->funcname && !(ctx->flags & TPARG_FL_TEVENT)))
> >             return -EINVAL;
> >  
> >     is_ptr = split_next_field(varname, &field, ctx);
> > @@ -653,6 +686,20 @@ static int parse_btf_arg(char *varname,
> >             return -EOPNOTSUPP;
> >     }
> >  
> > +   if (ctx->flags & TPARG_FL_TEVENT) {
> > +           int ret;  
> 
> nit: parse_btf_arg already declared @ret. So we don't need this.

Ah, will fix.

Thanks,

-- Steve


Reply via email to