From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753290AbYIZRjU (ORCPT ); Fri, 26 Sep 2008 13:39:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752209AbYIZRjD (ORCPT ); Fri, 26 Sep 2008 13:39:03 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:54827 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753443AbYIZRjB (ORCPT ); Fri, 26 Sep 2008 13:39:01 -0400 Date: Fri, 26 Sep 2008 10:37:54 -0700 (PDT) From: Linus Torvalds To: Arnaldo Carvalho de Melo cc: Steven Rostedt , Masami Hiramatsu , LKML , Ingo Molnar , Thomas Gleixner , Peter Zijlstra , Andrew Morton , prasad@linux.vnet.ibm.com, Mathieu Desnoyers , "Frank Ch. Eigler" , David Wilder , hch@lst.de, Martin Bligh , Christoph Hellwig , Steven Rostedt Subject: Re: [PATCH v5] Unified trace buffer In-Reply-To: <20080926173130.GE15446@ghostprotocols.net> Message-ID: References: <20080925185154.230259579@goodmis.org> <20080925185236.244343232@goodmis.org> <48DC406D.1050508@redhat.com> <20080926173130.GE15446@ghostprotocols.net> User-Agent: Alpine 1.10 (LFD 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Sep 2008, Arnaldo Carvalho de Melo wrote: > > Why do you need __packed__ here? With or without it the layout is the > same: Indeed. And on some architectures 'packed' will actually mean that the compiler may think that it's unaligned, and then generate much worse code to access the fields. So if you align things anyway (and you do), then 'packed' is the wrong thing to do. Linus