Re: PATCH 1/3] blktrace: support per-partition tracing

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Tuesday, April 14, 2009 - 2:43 am

* Li Zefan <lizf@cn.fujitsu.com> wrote:


... or, once we have the filtering engine upgraded, to use 
or-connected filters:

 # [mockup example]

 sector >= 20000 && sector <= 30000
 ||
 sector >= 50000 && sector <= 60000

Note that users dont have to care about these expressions - they 
could get auto-added when tracing is enabled for a partition.

Such type of more complex compound filters are possible already - 
what we dont have is comparison operators (right now we only have == 
and !=), nor built-in convenience support for dev_t.

Another variant would be:

 dev == sda1
 ||
 dev == sda3

type of compound filters - achieving the same goal as the sector 
based filter.


yes - i'm just pointing out the limitation. It's no big issue 
currently - most of the actual tracing happens on specific 
devices/partitions. (Perhaps 'whole system blk tracing' is a common 
pattern though.)

I'm just pointing out that this is a beauty wart, and that it will 
be mostly addressed when we go to TRACE_EVENT() based tracepoints in 
blktrace :-)

	Ingo
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
PATCH 1/3] blktrace: support per-partition tracing, Li Zefan, (Mon Apr 13, 10:58 pm)
[PATCH 3/3] blktrace: add trace/ to /sys/block/sda, Li Zefan, (Mon Apr 13, 11:00 pm)
Re: PATCH 1/3] blktrace: support per-partition tracing, Ingo Molnar, (Tue Apr 14, 12:59 am)
Re: PATCH 1/3] blktrace: support per-partition tracing, Ingo Molnar, (Tue Apr 14, 1:09 am)
Re: PATCH 1/3] blktrace: support per-partition tracing, Ingo Molnar, (Tue Apr 14, 1:34 am)
Re: PATCH 1/3] blktrace: support per-partition tracing, Ingo Molnar, (Tue Apr 14, 1:38 am)
Re: PATCH 1/3] blktrace: support per-partition tracing, Ingo Molnar, (Tue Apr 14, 2:43 am)
[tip:tracing/core] blktrace: support per-partition tracing, tip-bot for Shawn Du, (Wed Apr 15, 3:12 am)
[tip:tracing/core] blktrace: support per-partition tracing ..., tip-bot for Li Zefan, (Wed Apr 15, 3:13 am)
[tip:tracing/core] blktrace: add trace/ to /sys/block/sda, tip-bot for Li Zefan, (Wed Apr 15, 3:13 am)
[tip:tracing/core] blktrace: support per-partition tracing, tip-bot for Shawn Du, (Thu Apr 16, 9:15 am)
[tip:tracing/core] blktrace: support per-partition tracing ..., tip-bot for Li Zefan, (Thu Apr 16, 9:15 am)
[tip:tracing/core] blktrace: add trace/ to /sys/block/sda, tip-bot for Li Zefan, (Thu Apr 16, 9:15 am)