Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752994AbbFQC1O (ORCPT ); Tue, 16 Jun 2015 22:27:14 -0400 Received: from mail-ig0-f174.google.com ([209.85.213.174]:35793 "EHLO mail-ig0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750863AbbFQC1J (ORCPT ); Tue, 16 Jun 2015 22:27:09 -0400 Message-ID: <5580DAFB.4080304@gmail.com> Date: Tue, 16 Jun 2015 20:27:07 -0600 From: David Ahern User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Hemant Kumar , linuxppc-dev@lists.ozlabs.org CC: linux-kernel@vger.kernel.org, kvm-ppc@vger.kernel.org, acme@kernel.org, mingo@kernel.org, sukadev@linux.vnet.ibm.com, maddy@linux.vnet.ibm.com, srikar@linux.vnet.ibm.com, paulus@samba.org, namhyung@kernel.org, jolsa@kernel.org, peterz@infradead.org Subject: Re: [RFC PATCH] perf/kvm: Guest Symbol Resolution for powerpc References: <1434423053-2173-1-git-send-email-hemant@linux.vnet.ibm.com> <55803883.50504@gmail.com> <5580CC69.2090200@linux.vnet.ibm.com> In-Reply-To: <5580CC69.2090200@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252; 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: 938 Lines: 22 On 6/16/15 7:24 PM, Hemant Kumar wrote: > Because, this depends on the kernel tracepoint "kvm_hv:kvm_guest_exit". > perf_prepare_sample() in the kernel side sets the event->header.misc > field to > PERF_RECORD_MISC_KERNEL through perf_misc_flags(pt_regs). In case of > tracepoints which always get hit in the host kernel context, the > perf_misc_flags() will always return PERF_RECORD_MISC_KERNEL. > > IMHO we will rather have to set the cpumode in the user space for this > tracepoint > and we can't depend on the event->header.misc field for this case. > > What would you suggest? > oh, right you are using a tracepoint for this. It does not have the hooks to specify cpumode. Never mind. -- 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/