Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp641313imp; Wed, 20 Feb 2019 06:35:38 -0800 (PST) X-Google-Smtp-Source: AHgI3IYo+704OfDWRohamDTWmAenwtd65ZpXuDXfCX9OfGgLhX5lD1gJRTd29za1jrLHi3n21xq1 X-Received: by 2002:a17:902:3f81:: with SMTP id a1mr36974676pld.258.1550673338773; Wed, 20 Feb 2019 06:35:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550673338; cv=none; d=google.com; s=arc-20160816; b=n3n6xkwmuy+uWyKkwKrOhQofoKsiy6ftnkD4nF1BtUt704kmlft/ORGGFfYgBo3lsj RuKqQ1yNqnDRtKCW4eUPcTtBtHDajOMiQMw7lFlSEcogKOe3wtPl/whPsJjYbhTjAqoP TL+efonD89cMVldS62MX6/vXHljOKGSARiaaRR5BmmZR3HZkNShYmHOY9T7kFl02llhi 3CmyrUXtIesKOIMITPaCXsd+he16oAR8r/BVKgyjLpap+A/0xFozfBs8L9IndCpJXt9t MS306q/0GSOnRBdoi1REf+CxNKbwvK2jOLTC8MVb/+omVAzyTzgd91soD9bMrZo/ke9r qhxw== 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; bh=ivNf2WDmfit7Qq/v4CLbHWnZoBNNkGq7aLjDfFcZsOM=; b=0xMSnIXDC/HXdFUijnObRLnHM5ak0vZIGpHWvraJZDBWUjOAvJlehv+Fmv3LICn0rE DBksp92Wl03SqQ0aJ/bdUWI1BPJyP/TIUBVnfcYed8w6Fyf5XKV2kYa9DQAxtDg+kK1p zqkgUzUDOAwSkGxgVPGCCP6u4q9FSVjeCMqozVdc4eIcX8IIVJUGcNQMrnJoSIP0THYd XD81TASbwijHdvG/Mr5Q+VdmTcx3yd0xFl3oot9WuseulqjP5geIxGd+7NL3U2xvo2Kv GZQPj2EfXYDpV0cFanXKyHTjx3OH404SzkkNBTxz2eHYr2pJp1BINkrfmMceVfJrw/m/ fBPg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j66si17169920pfb.182.2019.02.20.06.35.22; Wed, 20 Feb 2019 06:35:38 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726279AbfBTOe6 (ORCPT + 99 others); Wed, 20 Feb 2019 09:34:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53586 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725801AbfBTOe6 (ORCPT ); Wed, 20 Feb 2019 09:34:58 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A57C9C0AC378; Wed, 20 Feb 2019 14:34:57 +0000 (UTC) Received: from krava (unknown [10.43.17.20]) by smtp.corp.redhat.com (Postfix) with SMTP id 65DAD36FB; Wed, 20 Feb 2019 14:34:55 +0000 (UTC) Date: Wed, 20 Feb 2019 15:34:54 +0100 From: Jiri Olsa To: Jonas Rabenstein Cc: linux-perf-users@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Namhyung Kim , Andi Kleen , Thomas Richter , Stephane Eranian , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] perf evsel: add support for inlined function in callchains Message-ID: <20190220143454.GD25423@krava> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 20 Feb 2019 14:34:58 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 19, 2019 at 07:38:08PM +0100, Jonas Rabenstein wrote: > Hi, > sample__fprintf_callchain currently did not use the already available > code to get the symbols of an inlined function if such information is > available in a dso. This patchset adds the required logic to add > appropriate lines. > > As I am quite new to the code base of perf I am not sure how to test > that changeset in a correct way. At least the codes builds and the tools > that make use of sample__fprintf_callchain (perf-script, perf-trace and > perf-sched as far as I can see) did not fail to run - also I did not get > into the details of perf-trace and perf-sched as I have never used them > before. you could provide some examples that shows what u changed I can see your changes change the perf script callchains, displaying less or different callchains: --- old 2019-02-20 15:29:34.872312007 +0100 +++ new 2019-02-20 15:30:47.784725456 +0100 @@ -23,10 +23,9 @@ yes 11807 203482.590491: 246238 cycl 40 [unknown] ([unknown]) yes 11807 203482.590654: 534592 cycles:uppp: - 7f83e3c7fd0c _dl_addr+0x11c (/usr/lib64/libc-2.27.so) + 7f83e3c7fd0c __GI__dl_addr+0x11c (inlined) yes 11807 203482.592371: 455976 cycles:uppp: - 55ddec8a3f6e [unknown] (/usr/bin/yes) a790a790a790a79 [unknown] ([unknown]) yes 11807 203482.594176: 326514 cycles:uppp: @@ -38,11 +37,9 @@ yes 11807 203482.595464: 262867 cycl a790a790a790a79 [unknown] ([unknown]) yes 11807 203482.596502: 214762 cycles:uppp: - 55ddec8a3f6e [unknown] (/usr/bin/yes) a790a790a790a79 [unknown] ([unknown]) > > Another thing I am not sure how to deal with are some warnings of > checkpatch.pl due to the 80 character line limit. Due to the long > function names in use the current implementation already exceeded that > limit in the same spots by even more characters as I have taken the > inner loop and put it into a separate function. don't worry much about the long lines warnings > > I hope to expand my work to perf-report but thought it might be usefull > to get already early feedback on those patches. yep, good idea thanks, jirka