Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751856AbdHVRbH (ORCPT ); Tue, 22 Aug 2017 13:31:07 -0400 Received: from mga06.intel.com ([134.134.136.31]:33163 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751622AbdHVRbG (ORCPT ); Tue, 22 Aug 2017 13:31:06 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,413,1498546800"; d="scan'208";a="143339089" Date: Tue, 22 Aug 2017 10:31:04 -0700 From: Andi Kleen To: Peter Zijlstra Cc: kan.liang@intel.com, mingo@redhat.com, linux-kernel@vger.kernel.org, acme@kernel.org, jolsa@redhat.com, tglx@linutronix.de, eranian@google.com Subject: Re: [PATCH V5] perf: Add PERF_SAMPLE_PHYS_ADDR Message-ID: <20170822173104.GY28715@tassilo.jf.intel.com> References: <1502993843-6837-1-git-send-email-kan.liang@intel.com> <20170822170736.GI32112@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170822170736.GI32112@worktop.programming.kicks-ass.net> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 280 Lines: 8 > Is this in any way x86 specific? AFAICT this should work in generic code > as long as data->addr is provided. It won't work on architectures that split the address space for user/kernel (if TASK_SIZE is meaningless). But perhaps some generic config for that would work. -Andi