On Tuesday 07 December 2010 13:47:43 Steven Rostedt wrote:
Yes those are very ugly. That is why I proposed changing them to
yaffs_trace(bit, "format", args).
That gives printk tracing which I can select on the fly by enabling the
selected bits in the bitmask. eg. If I want to see the OS calls and the mtd
accesses then I enable YAFFS_TRACE_MTD and YAFFS_TRACE_OS and only those
grace groups get spat out.
People find this very handy, especially during system integration, so I am
loath to lose it. It is simple and it works.
Will it not be acceptable to just leave in the printk-style messages and
perhaps addTRACE_EVENT later?
From what I see, ext4 uses both trace_event and wrapped printk tracing, some
right alongside eachother so it is a duplication - not a replacement.
YAFFS has approx 500 trace lines in it. Some of those would make sense to
attach to TRACE_EVENT() , but most not. trace/events/ext4.h has 1172 lines
for around 28 events (== 40-odd lines per event).
Still reading everything I can find on this (inc, your LWN articles) to get
an understanding of what capabilities these give me and what heuristic should
be used to define trace points vs printks.
-- Charles
--