From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BBB60CED26B for ; Tue, 8 Oct 2024 05:53:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=mfHqZyvxYoxoQNqylZHZjrrJf32/fBF6Ku/00Zl2PAc=; b=vnVh5BGekGZl05XXUfSG7PEK7G hApYvV2UzFMQwyfX4ssCmPni+Wou87stenvQ9kI3Dfxta/+rI6HSwNbWxgIg7R+HQopeUnXL+popD fxPa45SD3VYF2cS9RmJbXUPaBBWxUbmJSFHaq9t3zax3tdfxj76p/ic232loSczLY+mBqvFk8w3eJ M2O8+c7OvIM1Fu1JOSXBbqxphBDr+6bG6jY1OVgQ4Sk0dCeVUqxqUkykMcr7LyVzGqRVZnNp0uOML gNHIX3Sh2e0pTkMHA9Qjqsu36ye2y5BJMv4L3mBoPhIznk0Cf4fYpQm6v7oV6WbSlnz+DbpWjPVQZ DP/k3c8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sy39d-00000004anu-0XnW; Tue, 08 Oct 2024 05:53:05 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sy38K-00000004ahv-3Nf0 for linux-arm-kernel@lists.infradead.org; Tue, 08 Oct 2024 05:51:46 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 3C3535C53AE; Tue, 8 Oct 2024 05:51:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 951BFC4CEC7; Tue, 8 Oct 2024 05:51:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1728366702; bh=g5l6DPMapMAuxJuwVbpVEp3+VWwG07Afb3X2juxiIQU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=P/iF/CC0OK2nZz/wniwg1xOOPmj3WGvd26/APTiEEJxCWLnDtRkW2AgTCOiL/ogeJ 97+On8sM+gZCteFHvyrJHMWeIJ0mRvyQ6UQyxCVRh9Q0NSHVfuviLCDi0Drg9Jpica pJSCD4YZWRo/R6/dz+gD54JnDoyv1YXu3KIORdaPHmhfrK4v+cCv+EnE5j4JfotI8D 2z8RscjfW7I1rBfx7EihbA5pbjwaX+3CpKN2tDO/qKBqfi0a3/SHROYuSwMGu8y5yF 0S45l7mUO8d6QjwppC6NC5zpth5fZZ9EB1/Umg+Sgnyb6RX4J8CGe8Gralt3RhiFxl TA7aWlGvD1nfA== Date: Mon, 7 Oct 2024 22:51:41 -0700 From: Namhyung Kim To: Steve Clevenger Cc: leo.yan@arm.com, james.clark@linaro.org, mike.leach@linaro.org, suzuki.poulose@arm.com, ilkka@os.amperecomputing.com, coresight@lists.linaro.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH V8 0/4] arm-cs-trace-disasm.py/perf must accommodate non-zero DSO text offset Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241007_225144_958695_7217562C X-CRM114-Status: GOOD ( 18.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello, Sorry for the long delay. But can you please explain your problem in more detail? Showing ELF program (or section) header would be helpful as well. Is the problem when the text mapping has non-zero pgoff only? Is the kernel symbols working correctly? Or is it just the Python script broken? Thanks, Namhyung On Mon, Sep 09, 2024 at 03:30:02PM -0600, Steve Clevenger wrote: > Changes in V8: > - in arm-cs-trace-disasm.py, ensure map_pgoff is not converted to > string. > - Remove map_pgoff integer conversion in dso not found print > message. > > Changes in V7: > - In arm-cs-trace-disasm.py, fix print message core dump resulting > from mixed type arithmetic. > - Modify CS_ETM_TRACE_ON filter to filter zero start_addr. The > CS_ETM_TRACE_ON message is changed to print only in verbose mode. > - Removed verbose mode only notification for start_addr/stop_addr > outside of dso address range. > > Changes in V6: > - In arm-cs-trace-disasm.py, zero map_pgoff for kernel files. Add > map_pgoff to start/end address for dso not found message. > - Added "Reviewed-by" trailer for patches 1-3 previously reviewed > by Leo Yan in V4 and V5. > > Changes in V5: > - In symbol-elf.c, branch to exit_close label if open file. > - In trace_event_python.c, correct indentation. set_sym_in_dict > call parameter "map_pgoff" renamed as "addr_map_pgoff" to > match local naming. > > Changes in V4: > - In trace-event-python.c, fixed perf-tools-next merge problem. > > Changes in V3: > - Rebased to linux-perf-tools branch. > - Squash symbol-elf.c and symbol.h into same commit. > - In map.c, merge dso__is_pie() call into existing if statement. > - In arm-cs-trace-disasm.py, remove debug artifacts. > > Changes in V2: > - In dso__is_pie() (symbol-elf.c), Decrease indentation, add null pointer > checks per Leo Yan review. > - Updated mailing list distribution. > > Steve Clevenger (4): > Add dso__is_pie call to identify ELF PIE > Force MAPPING_TYPE__IDENTIY for PIE > Add map pgoff to python dictionary based on MAPPING_TYPE > Adjust objdump start/end range per map pgoff parameter > > .../scripts/python/arm-cs-trace-disasm.py | 17 ++++-- > tools/perf/util/map.c | 4 +- > .../scripting-engines/trace-event-python.c | 13 +++- > tools/perf/util/symbol-elf.c | 61 +++++++++++++++++++ > tools/perf/util/symbol.h | 1 + > 5 files changed, 86 insertions(+), 10 deletions(-) > > -- > 2.44.0 >