From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755869Ab1DSVSW (ORCPT ); Tue, 19 Apr 2011 17:18:22 -0400 Received: from casper.infradead.org ([85.118.1.10]:57941 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755512Ab1DSVSV (ORCPT ); Tue, 19 Apr 2011 17:18:21 -0400 Subject: Re: [BUG] perf_event: sampling buffer format cannot handle multi-event sampling From: Peter Zijlstra To: Stephane Eranian Cc: LKML , Arnaldo Carvalho de Melo , mingo@elte.hu, Paul Mackerras , Robert Richter , Andi Kleen In-Reply-To: References: <1303240935.8345.7.camel@twins> Content-Type: text/plain; charset="UTF-8" Date: Tue, 19 Apr 2011 23:20:56 +0200 Message-ID: <1303248056.2035.66.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2011-04-19 at 21:16 +0000, Stephane Eranian wrote: > > Or simply don't mix different sample_types in the same buffer? > > > Does the kernel disallow this when you merge the output via that > ioctl()? No, it will happily comply and provide you with hard to parse output. Just don't do that if you're not willing to untangle it ;-)