From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757133Ab1CBMHq (ORCPT ); Wed, 2 Mar 2011 07:07:46 -0500 Received: from smtp-out.google.com ([74.125.121.67]:31484 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755446Ab1CBMHp convert rfc822-to-8bit (ORCPT ); Wed, 2 Mar 2011 07:07:45 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=nDvqVffPXF6Do6BSrS38G2x/1hs8nybf21ULG50uMo4mYZkdxQNQwYRcpNvZzclEPo gL8FZ5eLE8NSaTzh3svQ== MIME-Version: 1.0 In-Reply-To: <1299062041.1310.3.camel@laptop> References: <1298998076.2170.62.camel@localhost> <1299026246.4937.99.camel@minggr.sh.intel.com> <1299062041.1310.3.camel@laptop> Date: Wed, 2 Mar 2011 13:07:42 +0100 Message-ID: Subject: Re: [PATCH v2 1/4] perf-events: Add support for supplementary event registers From: Stephane Eranian To: Peter Zijlstra Cc: Lin Ming , Ingo Molnar , Andi Kleen , linux-kernel Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 2, 2011 at 11:34 AM, Peter Zijlstra wrote: > On Wed, 2011-03-02 at 08:48 +0100, Stephane Eranian wrote: >> >> >        __u32                   bp_type; >> >> > -       __u64                   bp_addr; >> >> > -       __u64                   bp_len; >> >> > +       union { >> >> > +               __u64           bp_addr; >> >> > +               __u64           config1; /* extension of config0 */ >> >> > +       }; >> >> > +       union { >> >> > +               __u64           bp_len; >> >> > +               __u64           config2; /* extension of config1 */ >> >> > +       }; >> >> >  }; >> >> > >> >> I don't see where those config0 or config1 are coming from. >> > >> > config0 means perf_event_attr::config. >> > >> yes. >> >> > Peter suggested to extend the attr config space. >> > http://marc.info/?l=linux-kernel&m=129838808907525&w=2 >> > >> Ok, I get it, it is cascading. that's fine. > > I initially put config and config0 in a union, but that made compilation > fail and fixing that up vs the benefit of actually having a config0, > which seemed near 0, led me to drop that part. Forgot to update the > comment though ;-) > Ok, but that's not committed yet, isn't it?