Arjan van de Ven wrote: > On Wed, 11 Nov 2009 10:33:55 +0800 > Li Zefan <lizf@xxxxxxxxxxxxxx> 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 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html