Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3691243imm; Thu, 17 May 2018 13:00:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpzn/LZjvwK3Alvu6EEOd3UPCaAddZjMOzWm5h8zRoLWNyYOwGgZshEoD62Dh95ZnWLGlHq X-Received: by 2002:a65:5105:: with SMTP id f5-v6mr5131320pgq.232.1526587236254; Thu, 17 May 2018 13:00:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526587235; cv=none; d=google.com; s=arc-20160816; b=UfZzOI+kfp9jaUowYPw7SmDvOX9eGdDWh5QoRqDwHTJHNAeN7ZNctTET4PdfJe3ZEj cC+RHkdqGQDrIvi3Z8Eb4eEhcEYw+IBdri5ecWUQuYoDudgO/Z4LuanLBxcCg50hB1gY 7U/0VUUzfzVwyKv5Phou5y1SimUJBqrMkNgoOHOLHQzARowAVdJ1JhGIkLSDsyPKRLFG V4OqfUQ2HjXGYX5wCL2RfocenkSDkYhtRgNH/isXsX3NoeTuSiLsLtOKHQIcT7XdgFLG giARt0dFgkx3V3WSqZ2XQa6ixREk42ond9b6TcdBNvbuAZxW2DBRce+xoVAXyQK9IafP 3ZDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=X8AbaCQUDlA1Y63PQCwMYR9Nl2cNpTNF/wK3qj/KJ0E=; b=f/hIOnzGpIGezQmAhe2GJJuy6AaLXO3WAslNjYORV6QidgvNfBKbBp9zoyfDHjo1jz ajoT8BJ+ysKEHIEucRqFwrRWUeEU6/0KQ0Qha0oK4lJ5bxFWwvgFvihEuW9wLo6QinSo Jsadyv3E7PIo6llyM0ZMV0b6CQvYQCIL3LjWz32ggmS6azZav5W6Vf7YFCfKECRfE+6J Sl04M3lNkKnPVozeydax28q2Ee9rnzeZ3VEYxnw/Fy3l415aWqXELgTmZDgyD99IJNga cYXmZ6ryCrdHYRohPUN8fLvdI9ZtWG3pb35BBGNNyuJQ4yT8LaTzuqIn2qnP2WjFZZa4 1tVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WlaTO6dB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b129-v6si4533841pgc.387.2018.05.17.13.00.20; Thu, 17 May 2018 13:00:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WlaTO6dB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752173AbeEQUAE (ORCPT + 99 others); Thu, 17 May 2018 16:00:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:47134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751784AbeEQUAA (ORCPT ); Thu, 17 May 2018 16:00:00 -0400 Received: from jouet.infradead.org (unknown [190.15.121.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8355E2083D; Thu, 17 May 2018 19:59:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526587199; bh=vr5BgKbW2PmxVNcH8+7oW91LuUKpXc5sPXPt/rnLCgI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WlaTO6dBvnDO6JTMOXE/0U+F089Eg/rD4BM9SkEGCr6zYR9LBzAJY8AWs+wLKpr5R CvWmIrCQylt3gYu+nKn1njPQvCC0AHwdKBvPxOIpPq+hTZ0rk1YkPb7RTi0FF7B34Z 1AplFKDNRb3uU6WLIOQeGxszkl1lZGJrLpacYsKk= Received: by jouet.infradead.org (Postfix, from userid 1000) id 37EBB14689B; Thu, 17 May 2018 16:59:57 -0300 (-03) Date: Thu, 17 May 2018 16:59:57 -0300 From: Arnaldo Carvalho de Melo To: Sandipan Das Cc: jolsa@redhat.com, linux-kernel@vger.kernel.org, ravi.bangoria@linux.ibm.com, naveen.n.rao@linux.vnet.ibm.com Subject: Re: [PATCH 1/2] perf script: Show virtual addresses instead of offsets Message-ID: <20180517195957.GD18538@kernel.org> References: <20180517063326.6319-1-sandipan@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180517063326.6319-1-sandipan@linux.vnet.ibm.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, May 17, 2018 at 12:03:25PM +0530, Sandipan Das escreveu: > When perf data is recorded with the call-graph option enabled, > the callchain shown by perf script shows the binary offsets of > the symbols as the ip. This is incorrect for kernel symbols as > the ip values are always off by a fixed offset depending on the > architecture. If the offsets from the start of the symbols are > printed, they are also incorrect for both kernel and userspace > symbols. > > Without the call-graph option, the callchain shows the virtual > addresses of the symbols rather than their binary offsets. The > offsets printed in this case are also correct. > > This fixes the inconsistency in perf script's output. Thanks, tested and applied, - Arnaldo