Re: [PATCH 05/13] ftrace: Call trace_parser_clear() properly

From: Steven Rostedt
Date: Wed Dec 09 2009 - 00:52:08 EST


On Tue, 2009-12-08 at 11:15 +0800, Li Zefan wrote:
> I found a weird behavior:
>
> # echo 'fuse:*' > set_ftrace_filter
> bash: echo: write error: Invalid argument
> # cat set_ftrace_filter
> fuse_dev_fasync
> fuse_dev_poll
> fuse_copy_do
>
> We should call trace_parser_clear() no matter ftrace_process_regex()
> returns 0 or -errno.

This confused me at first. I applied this patch and I saw that I still
got the warning, but the functions did not got through. Then I realized
that there was no ":mod:" in that filtering.

Yeah, that was a weird side effect. Good catch!

-- Steve


--
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/