Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752449AbaKDSkv (ORCPT ); Tue, 4 Nov 2014 13:40:51 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:58657 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751961AbaKDSks (ORCPT ); Tue, 4 Nov 2014 13:40:48 -0500 Date: Tue, 4 Nov 2014 19:40:31 +0100 From: Peter Zijlstra To: Pawel Moll Cc: Namhyung Kim , Richard Cochran , Steven Rostedt , Ingo Molnar , Paul Mackerras , Arnaldo Carvalho de Melo , John Stultz , Masami Hiramatsu , Christopher Covington , David Ahern , Thomas Gleixner , Tomeu Vizoso , "linux-kernel@vger.kernel.org" , "linux-api@vger.kernel.org" Subject: Re: [PATCH v3 2/3] perf: Userspace event Message-ID: <20141104184031.GM10501@worktop.programming.kicks-ass.net> References: <1415060918-19954-1-git-send-email-pawel.moll@arm.com> <1415060918-19954-3-git-send-email-pawel.moll@arm.com> <87ppd35vbk.fsf@sejong.aot.lge.com> <1415119331.24819.19.camel@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1415119331.24819.19.camel@arm.com> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 04, 2014 at 04:42:11PM +0000, Pawel Moll wrote: > > 1. I'm wrong and the record doesn't have to be padded to make it 8 bytes > aligned. Then I can drop the additional size field. No, you're right, we're supposed to stay 8 byte aligned. > 2. I could impose a limitation on the prctl API that the data size must > be 8 bytes aligned. Bad idea in my opinion, I'd rather not. Agreed. > 3. The additional size (for the data part) field stays. Notice that > PERF_SAMPLE_RAW has it as well :-) Right, with binary data there is no other day. With \0 terminated strings there won't be a problem, but I think we decided we wanted to allow any binary blow. -- 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/