From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: [PATCH 1/2] tools, perf: Add a precise event qualifier v2 Date: Fri, 13 Sep 2013 10:48:02 -0700 Message-ID: <20130913174802.GU11427@tassilo.jf.intel.com> References: <1374501138-13496-1-git-send-email-andi@firstfloor.org> <20130723060108.GA18396@tassilo.jf.intel.com> <20130723225150.GT6123@two.firstfloor.org> <20130912165733.GA23698@gmail.com> <20130912173617.GI18242@two.firstfloor.org> <20130913085654.GI31370@twins.programming.kicks-ass.net> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20130913085654.GI31370@twins.programming.kicks-ass.net> Sender: trinity-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Peter Zijlstra Cc: Andi Kleen , Ingo Molnar , Vince Weaver , acme@infradead.org, linux-kernel@vger.kernel.org, Stephane Eranian , torvalds@linux-foundation.org, trinity@vger.kernel.org, Thomas Gleixner , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Jiri Olsa , Namhyung Kim > Typically PMU drivers are per arch and all the format stuff is per pmu > driver so I'd not worry about that just yet. That's a good point. So hard coded numbers would be fine for now. > Yes, that is an unfortunate situation. I (and either Acme or Jolsa) > tried wrapping the bitfield in an anonymous union to create a named > variable for the entire u64 but older GCC completely fails with that. In theory it's possible by parsing readelf output. -Andi -- ak@linux.intel.com -- Speaking for myself only