Messages in this thread | | | Date | Mon, 16 Nov 2009 08:56:21 +0800 | From | Li Zefan <> | Subject | Re: [PATCH] vfs: Add a trace point in the mark_inode_dirty function |
| |
Arjan van de Ven wrote: > On Wed, 11 Nov 2009 10:33:55 +0800 > Li Zefan <lizf@cn.fujitsu.com> wrote: >> This will leave __entry->comm, __entry->file and __entry->dev >> uninitialized in the "else" case.. > > I would expect the struct to be zeroed before.... is it? > (the TP_ stuff is so obscure I find it hard to figure out where it ends > up) >
No, it won't. Ring buffer won't zero the buffer before returning it, and TP_ stuff won't zero the buffer after getting it.
See static void ftrace_raw_event_##call(proto) in include/event/ftrace.h
| |