From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932554Ab2JEMnU (ORCPT ); Fri, 5 Oct 2012 08:43:20 -0400 Received: from mail.skyhub.de ([78.46.96.112]:60250 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932491Ab2JEMnR (ORCPT ); Fri, 5 Oct 2012 08:43:17 -0400 Date: Fri, 5 Oct 2012 14:43:50 +0200 From: Borislav Petkov To: Stephane Eranian Cc: Peter Zijlstra , LKML , "mingo@elte.hu" , David Ahern , Arnaldo Carvalho de Melo , Namhyung Kim Subject: Re: [RFC] perf: perf_event_attr anon unions and static initializer issue Message-ID: <20121005124350.GA12944@x1.osrc.amd.com> Mail-Followup-To: Borislav Petkov , Stephane Eranian , Peter Zijlstra , LKML , "mingo@elte.hu" , David Ahern , Arnaldo Carvalho de Melo , Namhyung Kim References: <1349434879.14388.35.camel@twins> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 05, 2012 at 01:49:44PM +0200, Stephane Eranian wrote: > Yeah, unfortunately. I ended up creating a separate table for config1 > and initializing attr.config1 at runtime. That way it works regardless > of the compiler.... Did the same thing in the persistent events patches recently: http://marc.info/?l=linux-kernel&m=134513917126309 -- Regards/Gruss, Boris.