Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755971AbbFPDa2 (ORCPT ); Mon, 15 Jun 2015 23:30:28 -0400 Received: from e23smtp04.au.ibm.com ([202.81.31.146]:44517 "EHLO e23smtp04.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754190AbbFPDaV (ORCPT ); Mon, 15 Jun 2015 23:30:21 -0400 X-Helo: d23dlp03.au.ibm.com X-MailFrom: hemant@linux.vnet.ibm.com X-RcptTo: linux-kernel@vger.kernel.org Message-ID: <557F97C7.1090100@linux.vnet.ibm.com> Date: Tue, 16 Jun 2015 08:58:07 +0530 From: Hemant Kumar User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Paul Mackerras CC: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, acme@kernel.org, mingo@kernel.org, mpe@ellerman.id.au, sukadev@linux.vnet.ibm.com, maddy@linux.vnet.ibm.com, warrier@linux.vnet.ibm.com, srikar@linux.vnet.ibm.com, scottwood@freescale.com Subject: Re: [PATCH RESEND v4 1/3] kvm/powerpc: Export kvm exit reasons References: <1434344169-32438-1-git-send-email-hemant@linux.vnet.ibm.com> <20150615053943.GB15637@pale.ozlabs.ibm.com> In-Reply-To: <20150615053943.GB15637@pale.ozlabs.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15061603-0013-0000-0000-0000016CA368 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1398 Lines: 38 Hi Paul, On 06/15/2015 11:09 AM, Paul Mackerras wrote: > On Mon, Jun 15, 2015 at 10:26:07AM +0530, Hemant Kumar wrote: >> To analyze the kvm exits with perf, we will need to map the exit codes >> with the exit reasons. Such a mapping exists today in trace_book3s.h. >> Currently its not exported to perf. >> >> This patch moves these kvm exit reasons and their mapping from >> "arch/powerpc/kvm/trace_book3s.h" to >> "arch/powerpc/include/uapi/asm/trace_book3s.h". >> Accordingly change the include files in "trace_hv.h" and "trace_pr.h". > These are not really exit reasons so much as Power ISA interrupt > vectors, defined externally to the kernel (in the Power ISA document) > and not subject to change (at least, kernel developers can't change > them). So I don't see why this needs to be "exported" from the > kernel. > > Paul. > The exit reasons are needed in the perf userspace and we wanted to avoid code duplication, so, if there are any changes, we won't need to update them at both places. However, we could add them to perf userspace itself separately and let perf userspace use those. What would you suggest? -- Thanks, Hemant Kumar -- 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/