linux-trace-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Trace event filtering
@ 2019-06-13 17:43 Cong Wang
  2019-06-13 18:02 ` Steven Rostedt
  0 siblings, 1 reply; 3+ messages in thread
From: Cong Wang @ 2019-06-13 17:43 UTC (permalink / raw)
  To: linux-trace-users; +Cc: Steven Rostedt

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!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-13 18:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-13 17:43 Trace event filtering Cong Wang
2019-06-13 18:02 ` Steven Rostedt
2019-06-13 18:33   ` Cong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).