Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp642621imm; Fri, 5 Oct 2018 09:22:33 -0700 (PDT) X-Google-Smtp-Source: ACcGV62ixk4OLwYG71gTM9H/cslrHyy7Q4XriImXWRiRD7Ls2D2mKvB2FF1HAKYsmBU7sMgz6pZa X-Received: by 2002:a17:902:7c96:: with SMTP id y22-v6mr12326088pll.321.1538756553722; Fri, 05 Oct 2018 09:22:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538756553; cv=none; d=google.com; s=arc-20160816; b=DkLwSTgeWnfQj0S/RR6wTeS+AZ7eWJrvTH9nqX3uiAA8lPMQltu+LFaXuwS7V/2JkG pY7JZ6fD+uOuuQWonOgc0sR+55X2giLtrqzHEmLVk7PZsyUmv4OzMieKN7/P+nZxa7Ae QN64h9CpcOmb2tB2A/0n3gfN2/Aj7o4whHLB2/xf7Rrlc/QEXXiB6sKspJs6cm2X+C/E fVyHDVNcKL1par19EaD/2l0z972JhWRQdJGiyPynuevX/UTDHpgrakUND4VTekUfdq/y dxlrXHQMTWPiZw119miR+VNd3DpSVWhgqSv65BH/AMg2Jf5cHSNjVAX3fa1Ymea9Nl+b ErQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=8qvNlZ5fvmokRmXGVvMMuScni6AQMqN3DArep/YzNg0=; b=nbwyWyq9BazM+sf9Wm5bmQxN8C/Uovwvn/Xjof2eSXEWBVfhQZVqdOQ1Od+yGX2dDT LMLjFWKAWIxWFpePYhz+gWlSbRK2S7BihBvI6M1yIhGOArhliuPUopYT0wWG29tSscbA yQEo43+nq5K+adtVJkiMO528n3UBdlrIdkQQrFCcH4B2PMeHXxTf/BbqdxCa/jsmhlxZ PuWc0115YMMzRDNxmAg921drv0ToSn9f2ic2t7gK09Kpeu9WK68YhDsVT94+AFGKXPhX DajVn/Oz5tc0mNVAr5zp3uFvN2ON9ZFmT/rmR3Mml0AKeq10t5Igatp/Jjka2tsFMrnw +FgQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11-v6si8246894plp.225.2018.10.05.09.22.18; Fri, 05 Oct 2018 09:22:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730340AbeJEXUs (ORCPT + 99 others); Fri, 5 Oct 2018 19:20:48 -0400 Received: from terminus.zytor.com ([198.137.202.136]:48045 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729309AbeJEXUs (ORCPT ); Fri, 5 Oct 2018 19:20:48 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w95GLCHU3206718 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 5 Oct 2018 09:21:12 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w95GLC4u3206715; Fri, 5 Oct 2018 09:21:12 -0700 Date: Fri, 5 Oct 2018 09:21:12 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Milian Wolff Message-ID: Cc: ravi.bangoria@linux.ibm.com, acme@redhat.com, milian.wolff@kdab.com, jolsa@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, hpa@zytor.com, yao.jin@linux.intel.com, namhyung@kernel.org, sandipan@linux.ibm.com, mingo@kernel.org Reply-To: sandipan@linux.ibm.com, mingo@kernel.org, namhyung@kernel.org, yao.jin@linux.intel.com, hpa@zytor.com, jolsa@kernel.org, milian.wolff@kdab.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, ravi.bangoria@linux.ibm.com, acme@redhat.com In-Reply-To: <20181002073949.3297-1-milian.wolff@kdab.com> References: <20180926135207.30263-2-milian.wolff@kdab.com> <20181002073949.3297-1-milian.wolff@kdab.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf record: Use unmapped IP for inline callchain cursors Git-Commit-ID: 7a8a8fcf7b860e4b2d4edc787c844d41cad9dfcf X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 7a8a8fcf7b860e4b2d4edc787c844d41cad9dfcf Gitweb: https://git.kernel.org/tip/7a8a8fcf7b860e4b2d4edc787c844d41cad9dfcf Author: Milian Wolff AuthorDate: Wed, 26 Sep 2018 15:52:06 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 5 Oct 2018 11:18:09 -0300 perf record: Use unmapped IP for inline callchain cursors Only use the mapped IP to find inline frames, but keep using the unmapped IP for the callchain cursor. This ensures we properly show the unmapped IP when displaying a frame we received via the dso__parse_addr_inlines API for a module which does not contain sufficient debug symbols to show the srcline. This is another follow-up to commit 19610184693c ("perf script: Show virtual addresses instead of offsets"). Signed-off-by: Milian Wolff Acked-by: Jiri Olsa Tested-by: Ravi Bangoria Tested-by: Arnaldo Carvalho de Melo Cc: Jin Yao Cc: Namhyung Kim Cc: Sandipan Das Fixes: 19610184693c ("perf script: Show virtual addresses instead of offsets") Link: http://lkml.kernel.org/r/20180926135207.30263-2-milian.wolff@kdab.com Link: http://lkml.kernel.org/r/20181002073949.3297-1-milian.wolff@kdab.com [ Squashed a fix from Milian for a problem reported by Ravi, fixed up space damage ] Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/machine.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index 0cb4f8bf3ca7..111ae858cbcb 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c @@ -2286,7 +2286,8 @@ static int append_inlines(struct callchain_cursor *cursor, if (!symbol_conf.inline_name || !map || !sym) return ret; - addr = map__rip_2objdump(map, ip); + addr = map__map_ip(map, ip); + addr = map__rip_2objdump(map, addr); inline_node = inlines__tree_find(&map->dso->inlined_nodes, addr); if (!inline_node) {