Re: [PATCH 3/8] Add yaffs2 file system: guts code

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Charles Manning
Date: Monday, December 6, 2010 - 9:12 pm

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

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

Messages in current thread:
[PATCH 0/8] Add yaffs2 file system: Third patchset, Charles Manning, (Tue Nov 30, 2:57 pm)
[PATCH 2/8] Add yaffs2 file system: checkpoint and ecc code, Charles Manning, (Tue Nov 30, 2:57 pm)
[PATCH 3/8] Add yaffs2 file system: guts code, Charles Manning, (Tue Nov 30, 2:57 pm)
[PATCH 4/8] Add yaffs2 file system: tags handling code, Charles Manning, (Tue Nov 30, 2:57 pm)
[PATCH 6/8] Add yaffs2 file system: xattrib code, Charles Manning, (Tue Nov 30, 2:57 pm)
Re: [PATCH 3/8] Add yaffs2 file system: guts code, Arnd Bergmann, (Tue Nov 30, 3:23 pm)
Re: [PATCH 6/8] Add yaffs2 file system: xattrib code, Jesper Juhl, (Sun Dec 5, 3:20 pm)
Re: [PATCH 3/8] Add yaffs2 file system: guts code, Arnd Bergmann, (Mon Dec 6, 5:55 am)
Re: [PATCH 3/8] Add yaffs2 file system: guts code, Charles Manning, (Mon Dec 6, 3:13 pm)
Re: [PATCH 3/8] Add yaffs2 file system: guts code, Jesper Juhl, (Mon Dec 6, 3:16 pm)
Re: [PATCH 3/8] Add yaffs2 file system: guts code, Arnd Bergmann, (Mon Dec 6, 4:03 pm)
Re: [PATCH 3/8] Add yaffs2 file system: guts code, Steven Rostedt, (Mon Dec 6, 5:47 pm)
Re: [PATCH 3/8] Add yaffs2 file system: guts code, Charles Manning, (Mon Dec 6, 9:12 pm)
Re: [PATCH 3/8] Add yaffs2 file system: guts code, Steven Rostedt, (Tue Dec 7, 7:49 am)
Re: [PATCH 3/8] Add yaffs2 file system: guts code, Charles Manning, (Tue Dec 7, 1:43 pm)
Re: [PATCH 3/8] Add yaffs2 file system: guts code, Steven Rostedt, (Tue Dec 7, 3:49 pm)