From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755036Ab0ETOaL (ORCPT ); Thu, 20 May 2010 10:30:11 -0400 Received: from smtp-out.google.com ([74.125.121.35]:62628 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755001Ab0ETOaJ (ORCPT ); Thu, 20 May 2010 10:30:09 -0400 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=h77o12kjT7/QFF/2f/6fgJohcdMNf600Fg8/saa5v2DNuOEOFqtDEqA7je2MjottN bQGnCK7/Zu4F1sQIzddDQ== MIME-Version: 1.0 In-Reply-To: References: <1274304024-6551-1-git-send-email-robert.richter@amd.com> <1274304024-6551-2-git-send-email-robert.richter@amd.com> <1274347413.5605.13636.camel@twins> <20100520135819.GP21799@erda.amd.com> Date: Thu, 20 May 2010 16:30:03 +0200 Message-ID: Subject: Re: [PATCH 1/7] perf: introduce raw_type attribute to specify the type of a raw sample From: Stephane Eranian To: Robert Richter Cc: Peter Zijlstra , Ingo Molnar , LKML , Paul Mackerras , David Miller , Will Deacon , Paul Mundt Content-Type: text/plain; charset=UTF-8 X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> But it's not the question how to pass the config, the question is how >> to mark the event configuration as a certain IBS event. >> > Yes, we agree on that. > IBS uses at most 58 out of 64 bits today. We know we can move sampling period, random out to other fields in attr. In fact all we would need would be two bits. But to distinguish with regular events, I think we could reuse the event select field of 8 bits. So you would be using 8 out of 64. IBS could go from 58 to 64 = 6 more bits. Those could be encoded in the config field, where you have > 50 bits left.