Trace event filtering

Cong Wang <[email protected]>
Newsgroups org.kernel.vger.linux-trace-users
Message-ID <CAM_iQpU9SQPoZnwfdmOECftDPt99HLe4NX-b_JaCk1oRLYZB_g@mail.gmail.com>
Hi, all

I have a simple question about filters in libtraceevent. It looks like
libtraceevent parses and matches filters in user-space, but kernel
already implements filtering in kernel-space which is better because
it should prevent events from generating, if not matched. So why
doesn't libtraceevent use kernel filters?

I am trying to filter out non-error block_rq_complete events, clearly
I don't want to see rasdaemon woken up every time for error==0 case,
which is literally all the time.

BTW, the user-space filters have slightly different syntax with
kernel-space filters, at least the regex matching looks slightly
different to me.

Am I miss anything here?

Thanks!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.