Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752809AbZKPA5M (ORCPT ); Sun, 15 Nov 2009 19:57:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752537AbZKPA5M (ORCPT ); Sun, 15 Nov 2009 19:57:12 -0500 Received: from cn.fujitsu.com ([222.73.24.84]:58192 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752152AbZKPA5L (ORCPT ); Sun, 15 Nov 2009 19:57:11 -0500 Message-ID: <4B00A335.9070900@cn.fujitsu.com> Date: Mon, 16 Nov 2009 08:56:21 +0800 From: Li Zefan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: Arjan van de Ven CC: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , Al Viro , mingo@elte.hu, Frederic Weisbecker , auke-jan.h.kok@intel.com Subject: Re: [PATCH] vfs: Add a trace point in the mark_inode_dirty function References: <20091025225342.007138f5@infradead.org> <4AFA2293.5080803@cn.fujitsu.com> <20091115110043.6cafc221@infradead.org> In-Reply-To: <20091115110043.6cafc221@infradead.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 793 Lines: 21 Arjan van de Ven wrote: > On Wed, 11 Nov 2009 10:33:55 +0800 > Li Zefan 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-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/