Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1637252rdb; Tue, 20 Feb 2024 02:17:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVma1c+lMXFQaTiw3vZkgpfChiwNSXG3IWvO/+7ctYpvQ/imfi6u/6dIyNHDB2RrXRbmkyt+agxTzBD+6Tz/SsEFxeTVNw8t+0OaMUArg== X-Google-Smtp-Source: AGHT+IFA3dLX/U6pHm9kL3tgEBsTSfdXHRpy4BZ7ecGohX1U4CJ4+fEHCfMy8tsdZfJztEzhO1VS X-Received: by 2002:a1f:df03:0:b0:4cc:29cf:a1fa with SMTP id w3-20020a1fdf03000000b004cc29cfa1famr3937628vkg.4.1708424226688; Tue, 20 Feb 2024 02:17:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708424226; cv=pass; d=google.com; s=arc-20160816; b=sZT6u10yD+bN0jMG52aVXDYiQ+L8h3dtWe6fHRwj9Rz618FlgOHlrkc51deAQqCmt2 3FMxI8VKNiGvNrOheCyq8j3nlcF6P8h2jT0pf1lkWGbQ/rNL2yLnjeiKogIG1zpsXDOa smf1V6TT63+74oPwkx9KMfz5UIszI+A/KECEeXiRW9JXBRb9piRMGFXPmmRVW6wjj4Sn e8jJKViAdJK8GC0pInC66mqlbFeRZohkZ91Kyj1wUTczcbQPGW/ReScxvdfobmlxw67x Z7W3EKdef2x919q+3NXWjW3PzmLrCirWw/5dB4Mx1+Ao2fo37VdDiVl49bsO8L7WX64X ujSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=drN8xv618CrZKoSKHyMXiDzUgxY4FGRg/utcXdvFluE=; fh=b0yw9+Ki13nJtceKg8BEBojNiwFlr8ON5ZR8sRHqU7U=; b=MBtKrt5gyGWzuQFd0BsF+BHdKTunW6FSOPf7F/oOLKWEawmnTh35uaX8GW1iXq71wc ZgL/OGM2jq9ti9zkJoyEsFvvKKSiXL8ixp0gTe2U/WPv7o2xYW2y3ZscBqjG9MnegxSN hxu+N/YSnIdU98anUELadTzLSugTGdNht5BHYEmDGPUmpzoONLa+MNLpjDcEyBAcnUjI bsaqkZ7nv/A1rAp1OoB5wde8d7Ta5VtvF+z5FgMFV00QgrFC20l/lGnc/WM2q+aIMojC mUuwABwv+SUObGXGILVVVPHDDgGDd0UP/uF4f44JDmj0ceQGEMzMhAEaUMlDqciuAkCC 2vdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-72801-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72801-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id fv1-20020a056214240100b0068c4ff7f5a0si8050221qvb.323.2024.02.20.02.17.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 02:17:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72801-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-72801-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72801-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2DC861C21DDD for ; Tue, 20 Feb 2024 10:17:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC37D612C3; Tue, 20 Feb 2024 10:16:37 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF8B75F470; Tue, 20 Feb 2024 10:16:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708424197; cv=none; b=D8ArFPlFvEqqmYKaGIUBg3WhvLXN20BfIjQ399RBI3v5Pu6nastIR9e5tie4JeHtJ/EybCRI3B9JpTcW/GY0O/yBclo6Kf4lYQcXxgmpH6oW9aBZvJnPEaAJ86ifnPe0NzRaZeqNY8tBRZR+o3jn92Z88meOmEuoG+V1JxrQBls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708424197; c=relaxed/simple; bh=Q2SEni8lYrReOYpeYRIQl/qQW9MUqNjd7JPwTm5wWCs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=D9YZLi+N4+5YVTymcD+tZF5TUY1wFuk8tGbvzq7M8+Uuwi5gbgMFL6rEE/P12eS6ne7svfjwXT0LZGLr7Ngr4rnLmK4ZkQZJ68vpT4C+5rSlO+jfYPtj51VmsgjyzdcbJivh6eRx2CO+/NtcUDvmgufiYWjs0T0qkdLY5fgS8Ko= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 39A611007; Tue, 20 Feb 2024 02:17:14 -0800 (PST) Received: from [192.168.1.100] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B81013F762; Tue, 20 Feb 2024 02:16:31 -0800 (PST) Message-ID: <7df55836-f782-3765-d8eb-67b6ae6a3bc4@arm.com> Date: Tue, 20 Feb 2024 10:16:29 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 0/3] perf tools: Fix test "perf probe of function from different CU" To: Chaitanya S Prakash , linux-perf-users@vger.kernel.org Cc: anshuman.khandual@arm.com, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , =?UTF-8?Q?Georg_M=c3=bcller?= , Masami Hiramatsu , Liam Howlett , Athira Rajeev , linux-kernel@vger.kernel.org References: <20240220042957.2022391-1-ChaitanyaS.Prakash@arm.com> Content-Language: en-US From: James Clark In-Reply-To: <20240220042957.2022391-1-ChaitanyaS.Prakash@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 20/02/2024 04:29, Chaitanya S Prakash wrote: > From: Chaitanya S Prakash > > Defconfig doesn't provide all the necessary configs required for the > test "perf probe of function from different CU" to run successfully on > all platforms. Therefore the required configs have been added to > config fragments to resolve this issue. On further investigation it was > seen that the Perf treated all files beginning with "/tmp/perf-" as a > map file despite them always ending in ".map", this caused the test to > fail when Perf was built with NO_DWARF=1. As the file was parsed as a > map file, the probe...--funcs command output garbage values instead of > listing the functions in the binary. After fixing the issue an > additional check to test the output of the probe...--funcs command has > been added. > > This patch series has been tested on 6.8-rc3 mainline kernerl, both on > arm64 and x86 platforms. > > Cc: Peter Zijlstra > Cc: Ingo Molnar > Cc: Arnaldo Carvalho de Melo > Cc: Namhyung Kim > Cc: Mark Rutland > Cc: Alexander Shishkin > Cc: Jiri Olsa > Cc: Ian Rogers > Cc: Adrian Hunter > Cc: James Clark > Cc: Georg Müller > Cc: Masami Hiramatsu > Cc: Liam Howlett > Cc: Athira Rajeev > Cc: linux-perf-users@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > > Chaitanya S Prakash (3): > perf tools: Enable configs required for > test_uprobe_from_different_cu.sh > perf tools: Only treat files as map files when they have the extension > .map > perf test: Check output of the probe ... --funcs command > > tools/perf/builtin-script.c | 15 +-------------- > tools/perf/tests/config-fragments/config | 3 +++ > .../shell/test_uprobe_from_different_cu.sh | 2 +- > tools/perf/util/string.c | 18 ++++++++++++++++++ > tools/perf/util/string2.h | 1 + > tools/perf/util/symbol.c | 5 ++++- > 6 files changed, 28 insertions(+), 16 deletions(-) > Reviewed-by: James Clark