Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757374Ab1EKQRa (ORCPT ); Wed, 11 May 2011 12:17:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35488 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756207Ab1EKQR0 (ORCPT ); Wed, 11 May 2011 12:17:26 -0400 Message-ID: <4DCA76A5.7030000@redhat.com> Date: Wed, 11 May 2011 14:44:37 +0300 From: Avi Kivity User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Thunderbird/3.1.10 MIME-Version: 1.0 To: Joerg Roedel CC: Peter Zijlstra , Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH 1/3] perf, core: Introduce attrs to count in either host or guest mode References: <1305038132-5080-1-git-send-email-joerg.roedel@amd.com> <1305038132-5080-2-git-send-email-joerg.roedel@amd.com> In-Reply-To: <1305038132-5080-2-git-send-email-joerg.roedel@amd.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1094 Lines: 30 On 05/10/2011 05:35 PM, Joerg Roedel wrote: > The two new attributes exclude_guest and exclude_host can > bes used by user-space to tell the kernel to setup > performance counter to either only count while the CPU is in > guest or in host mode. > An additional check is also introduced to make sure > user-space does not try to exclude guest and host mode from > counting. > > @@ -217,7 +217,10 @@ struct perf_event_attr { > mmap_data : 1, /* non-exec mmap data */ > sample_id_all : 1, /* sample_type all events */ > > - __reserved_1 : 45; > + exclude_host : 1, /* don't count in host */ > + exclude_guest : 1, /* don't count in guest */ > + > + __reserved_1 : 43; > We have exclude_hv a few lines up, so only exclude_guest is needed. -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/