Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp40594ybz; Tue, 21 Apr 2020 04:20:14 -0700 (PDT) X-Google-Smtp-Source: APiQypKkh7gGt9m/pnQ1gAzOjT8kMVyA8+jPGO8RGVPq/STOPL0UJsJAZwgpI9+p3XjeRvf4pxIF X-Received: by 2002:a17:906:fcb7:: with SMTP id qw23mr7664078ejb.256.1587468013980; Tue, 21 Apr 2020 04:20:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587468013; cv=none; d=google.com; s=arc-20160816; b=nEDZtxNJJIJVanDLBaUdy0Q9//IIaJvN96xREDXyRUBHMiGlSd1NI1QYiGj1ws8tKy vLKZs0cjzWxR49yoTHisNnEIqPvWECJdpRJS3XIva5dNyaZAjGZXEYSb8q5yGL+M+trT W6CYMiey+aWZuF1whKhsWsAXqmfeGLcUEn1+wE/h/7r/y0zBjU550+q/hVmrs5v21otf 2mEE/sGBLXiCmlrZS+g8zv3AfuePRP8dqomHo7XSGWg/U+HlEbD5pdZnN28Al2fU8aDc UVQhFvWCuqAOueNanOCyWS1rLriLMQYvRvZlkjVRt+UaZT90uvLjikvttntWaF940S4p b29A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :organization:from:references:cc:to:subject; bh=uqV5Uz1Nld7/QmggCnmDPPNI6aRaM3pdn5FOGFOjz+E=; b=g3UiQWMfHLbbdEysvLQ3/UMb5Eh9ruP6q94nxnCiFA0UvA9zcoxRua6AMdG+wpU8u0 30BcfhCLSRLsaUY+h/2h82vJNAmlAuBXtzCLM43ZuPFEXifuA6M2TjDYQgdOL6zqmJHt H28kTnDKsPcFMy71XY8CxqnsDeDf1y3d72zz+1SBRIizeNXo3SY8g1QY+tAjrCKReyMK bb8ws+q6vLbtxItx9BLMpL+VvQQqNQS9r+9AwWyqRk5eJ6LjGaHmDVl3Zzu5HHSpotvP W1Xp1HTyvq+qW9nZAhHqRx+nIZDIoe3l1l0AoZ0D1tCVctv34JYqkXx1oY22NH9reB8k zsag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a6si1454385edv.395.2020.04.21.04.19.50; Tue, 21 Apr 2020 04:20:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728548AbgDULST (ORCPT + 99 others); Tue, 21 Apr 2020 07:18:19 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:48864 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726120AbgDULST (ORCPT ); Tue, 21 Apr 2020 07:18:19 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03LB3Cvr146768 for ; Tue, 21 Apr 2020 07:18:18 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 30gc2x1f8b-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 21 Apr 2020 07:18:18 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 21 Apr 2020 12:17:42 +0100 Received: from b06avi18626390.portsmouth.uk.ibm.com (9.149.26.192) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 21 Apr 2020 12:17:39 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 03LBH47849021294 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 21 Apr 2020 11:17:04 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C8A7CA4040; Tue, 21 Apr 2020 11:18:11 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 66423A4051; Tue, 21 Apr 2020 11:18:07 +0000 (GMT) Received: from oc3784624756.ibm.com (unknown [9.206.160.1]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 21 Apr 2020 11:18:06 +0000 (GMT) Subject: Re: [PATCH] perf symbol: Fix kernel symbol address display To: Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, gor@linux.ibm.com, sumanthk@linux.ibm.com, heiko.carstens@de.ibm.com References: <20200415070744.59919-1-tmricht@linux.ibm.com> <20200420204617.GA23638@kernel.org> From: Thomas Richter Organization: IBM Date: Tue, 21 Apr 2020 13:18:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200420204617.GA23638@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 20042111-0008-0000-0000-00000374B20B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20042111-0009-0000-0000-00004A967774 Message-Id: <6239b798-3bf5-c1a6-8acf-d4e293089145@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-21_04:2020-04-20,2020-04-21 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 priorityscore=1501 impostorscore=0 phishscore=0 spamscore=0 malwarescore=0 mlxlogscore=999 lowpriorityscore=0 suspectscore=0 bulkscore=0 clxscore=1011 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004210088 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/20/20 10:46 PM, Arnaldo Carvalho de Melo wrote: > Em Wed, Apr 15, 2020 at 09:07:44AM +0200, Thomas Richter escreveu: >> Running commands >> >> ./perf record -e rb0000 -- find . >> ./perf report -v > > Or when pressing 'V' in the TUI. > >> reveals symbol names and its addresses. There is a mismatch between > > Yeah, an address that at some point was put there to help with debugging > the symbol resolution, IIRC how it looked like when looking at > > readelf -sW vmlinux > > Or any other DSO, for instance, for a glibc symbol here: > > Using 'perf report -s pid,dso,sym' then pressing 'V': > > 1.55% 20325:perf /usr/lib64/libc-2.30.so 0x161825 B [.] __strlen_avx2 > > [acme@five perf]$ readelf -sW /usr/lib64/libc-2.30.so | grep strlen_avx2 > 24371: 0000000000161810 414 FUNC LOCAL DEFAULT 15 __strlen_avx2 > [acme@five perf]$ > > Can you check if doing in /lib/modules/.../build/vmlinux produces what > appears when 'V' is in place? > Yes, I used latest 5.7.0rc2 and did ./perf record -e rb0000 -- find ./perf report -s pid,dso,sym and pressed 'V' in the TUI. This gives 6.06% 9986:find /lib/modules/5.7 0x1f0c86 v [k] check_chain_key and [root@m35lp76 ~]# readelf -sW /lib/modules/5.7.0-rc2d-perf+/build/vmlinux | fgrep check_chain_key 20698: 00000000001f0c70 486 FUNC LOCAL DEFAULT 1 check_chain_key [root@m35lp76 ~]# which is perfectly good and in the range. > And perhaps we can also show the DSO offset and the rip as it gets laid > out in memory in the end? So we have all the informations? > > - Arnaldo > I do not follow you here, do you mean something like DSO-name+offset for example libc-2.30.so+0x123? Thanks -- Thomas Richter, Dept 3252, IBM s390 Linux Development, Boeblingen, Germany -- Vorsitzender des Aufsichtsrats: Matthias Hartmann Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294