Re: [GIT PULL] tracing: Have filter check for balanced ops

From: Greg KH
Date: Wed Jun 24 2015 - 10:55:05 EST


On Mon, Jun 22, 2015 at 03:49:40PM +0100, Luis Henriques wrote:
> On Mon, Jun 22, 2015 at 10:17:28AM -0400, Steven Rostedt wrote:
> ...
> > To make this patch simpler, just move the "cnt--;" above the OP_AND and
> > OP_OR check and remove the "cnt--;" from that if statement.
> >
> > But yeah, this looks fine. You can test it with the example in the
> > change log.
> >
> > echo "((dev==1)blocks==2)" > events/ext4/ext4_truncate_exit/filter
> >
> > And see if it gives an error other than "parse_error: No error".
> >
> > -- Steve
>
> Thanks Steven, I've done a quick test with a 3.16-ckt kernel and I can
> confirm that the modified patch (i.e. including your suggestion) fixes
> the problem.
>
> I'm attaching the patch below and CC'ing stable mailing-list.
>
> Cheers,
> --
> Luís

Thanks, I've used this patch for 3.10 and 3.14.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/