Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755805AbbGPU0b (ORCPT ); Thu, 16 Jul 2015 16:26:31 -0400 Received: from mail-bn1on0146.outbound.protection.outlook.com ([157.56.110.146]:25466 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751419AbbGPU03 (ORCPT ); Thu, 16 Jul 2015 16:26:29 -0400 Authentication-Results: linux.vnet.ibm.com; dkim=none (message not signed) header.d=none; Message-ID: <1437077417.2993.108.camel@freescale.com> Subject: Re: [PATCH v5 1/2] perf,kvm/ppc: Add kvm_perf.h for powerpc From: Scott Wood To: Hemant Kumar CC: , , , , , , , , , Date: Thu, 16 Jul 2015 15:10:17 -0500 In-Reply-To: <1437061722-15438-1-git-send-email-hemant@linux.vnet.ibm.com> References: <1437061722-15438-1-git-send-email-hemant@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.0-fta1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Originating-IP: [2601:448:8100:f9f:12bf:48ff:fe84:c9a0] X-ClientProxiedBy: CY1PR22CA0006.namprd22.prod.outlook.com (25.162.32.144) To BN3PR03MB1479.namprd03.prod.outlook.com (25.163.35.142) X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1479;2:LVIX9+rajeOoxim0E5eGxiPotJISRfR2sHPc7vDN3qRvkLxQVAxSZFVZSkSp3wW3;3:X0/4pfUlUOzVS4xf5+G5grH8W1XmkPL9uaD6MnWDaQxPKWMIJebebPceelt3qwpv+LCTOQDBcO2lIouvqkpq8Te3/i6ZbqCkRDe+5RMY4LLq2X3PJaxbMNbB3VFHRqKaqbnvP3Ml9AjakwOfouSRoQ==;25:+v6x8EmSEp6c3SLZH2SGG98XnZRfVfFRdi24yjGb166gJRHpUNBLTQ2JJVFKqzknWoKYaqsGsAB+8WzicnO9qxZ6IOscczWghVRgeGSTnE1yTO/AaHzglnj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PR03MB1479: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BN3PR03MB1479;BCL:0;PCL:0;RULEID:;SRVR:BN3PR03MB1479; X-Forefront-PRVS: 0639027A9E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(377424004)(110136002)(103116003)(42186005)(77096005)(36756003)(5001960100002)(92566002)(46102003)(19580405001)(50466002)(47776003)(2950100001)(40100003)(5820100001)(23676002)(87976001)(62966003)(122386002)(33646002)(86362001)(50986999)(19580395003)(77156002)(76176999)(50226001)(189998001)(142933001)(3826002);DIR:OUT;SFP:1102;SCL:1;SRVR:BN3PR03MB1479;H:[IPv6:2601:448:8100:f9f:12bf:48ff:fe84:c9a0];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1479;23:XhwmpmKDXt48kt3+nUlbPpSFhXXf5JYLp1RhgxoBHmN5vsPUT7alNHbYTKVnMfpb1N+HKkQXz4RD1h1XWU+rb5gRIu2OMd+/E/fpC6KZs6kukqYQu0ixBJdjmTqUdArWtrg1GW03blFACrqe9EdGeFvpgXu9J1Q0KtDfkE2EtZuRFAGSRWIxkneX0M3Eewv6aBCoHBCSxbimQ94AkmbGPodav6dUT3tSCDs9vn9uO/+Wrdhfu9LUfsIu5mFN87swvXPCY+DtpplY0DAblKXLlwkBcWKeujTsoxNWxqef6DyMHHKYLOC+aAjADzByJrIJp1Th0cldZvE1yHHRHbbXKKvi3qyF+lItd7boMxZWFvrvZemLlmRRNPe3AfWNQei1a6FACjUhR7YXNvoe+kjqn0JlVUzFVIrKsp8InkurxwG2pelYORVLV/f9SihZ8WWCO6gOYX7u4WYhWdmO8OYkHVkyte9tBN7RWKROWxLNMb2n2DzudzTkXH712v7L37uBgE2biza6ewja+3vHzGqhscMUnQJMkFOp4Z6/7nBvfMaxXYO6+2vvuvl8QLJminnLutPxzlZC4K38PYTATeukp0RgjHRLVanjGr91GhleDBszzjsWHNapcMoYGMQn7FOeY45mMykq988ePDbEqB85eaU8hEGtjqYUkMXrEWDuLgX/zqOZ2SCAwSM767MUf/3Mui4hhuHQjI+ayoFOPmTQ91jpniP3N4lX6S4Qp99uvCJTeGKBsrh/HfFyNKRuNpLaK9F8c5NQYGwYtx/ooo0ywXHZzHS/2PccDx4uAvqe737Zqjbf1z6U1SFM8D+jAuMe8ex9k2PFqWk3WuqSM00MwBNfq3bleUptrtzW62qNX0s= X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB1479;5:3R8oDOvSr8v+7hlBF680HhQ99uLz4OfrBQLh0fiKHoY8xT2OEvN7x9nw7or9J0ReB2ditxiUjWLJ8NkABer5WpChl8/biifRBNnjQpHkSxdinhD7DqdUWoUhPWFmzML3lcpS/B+11gDbPHlSECL05g==;24:fkSwnldeW46SLjqZEbKSXQzirhgTm2HYBmBbSD9RqTxmwUnqCqimaT6aW1/+hqRQNM9YeiDsaduNhbwcUDvhDBkH1NIowlVArkkw+3SkRRg=;20:raY6VFrHNiMp94CNUYrK3q6bIIixcvRcyCs7rA0CnDYqUsMJdNj52Vtlimbgpd9lv9Q+PFTiD8YpG4+1RivV+A== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2015 20:10:25.2013 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB1479 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2219 Lines: 66 On Thu, 2015-07-16 at 21:18 +0530, Hemant Kumar wrote: > To analyze the exit events with perf, we need kvm_perf.h to be added in > the arch/powerpc directory, where the kvm tracepoints needed to trace > the KVM exit events are defined. > > This patch adds "kvm_perf_book3s.h" to indicate that the tracepoints are > book3s specific. Generic "kvm_perf.h" then can just include > "kvm_perf_book3s.h". > > Signed-off-by: Hemant Kumar > --- > Changes: > - Not exporting the exit reasons compared to previous patchset (suggested > by Paul) > > arch/powerpc/include/uapi/asm/kvm_perf.h | 6 ++++++ > arch/powerpc/include/uapi/asm/kvm_perf_book3s.h | 14 ++++++++++++++ > 2 files changed, 20 insertions(+) > create mode 100644 arch/powerpc/include/uapi/asm/kvm_perf.h > create mode 100644 arch/powerpc/include/uapi/asm/kvm_perf_book3s.h > > diff --git a/arch/powerpc/include/uapi/asm/kvm_perf.h > b/arch/powerpc/include/uapi/asm/kvm_perf.h > new file mode 100644 > index 0000000..5ed2ff3 > --- /dev/null > +++ b/arch/powerpc/include/uapi/asm/kvm_perf.h > @@ -0,0 +1,6 @@ > +#ifndef _ASM_POWERPC_KVM_PERF_H > +#define _ASM_POWERPC_KVM_PERF_H > + > +#include > + > +#endif > diff --git a/arch/powerpc/include/uapi/asm/kvm_perf_book3s.h > b/arch/powerpc/include/uapi/asm/kvm_perf_book3s.h > new file mode 100644 > index 0000000..8c8d8c2 > --- /dev/null > +++ b/arch/powerpc/include/uapi/asm/kvm_perf_book3s.h > @@ -0,0 +1,14 @@ > +#ifndef _ASM_POWERPC_KVM_PERF_BOOK3S_H > +#define _ASM_POWERPC_KVM_PERF_BOOK3S_H > + > +#include > + > +#define DECODE_STR_LEN 20 > + > +#define VCPU_ID "vcpu_id" > + > +#define KVM_ENTRY_TRACE "kvm_hv:kvm_guest_enter" > +#define KVM_EXIT_TRACE "kvm_hv:kvm_guest_exit" > +#define KVM_EXIT_REASON "trap" > + > +#endif /* _ASM_POWERPC_KVM_PERF_BOOK3S_H */ Again, why is book3s stuff being presented via uapi as generic with generic symbol names? -Scott -- 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/