Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp629450rdb; Tue, 23 Jan 2024 09:41:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQpqdLku0eBzCqGMl7wBATZSf7OY88AgCu+QhvPT0t1IGDjsVuuKjIUMsf9M6kXxaJCWNd X-Received: by 2002:a05:600c:3154:b0:405:3e9a:f1e3 with SMTP id h20-20020a05600c315400b004053e9af1e3mr372690wmo.11.1706031701393; Tue, 23 Jan 2024 09:41:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706031701; cv=pass; d=google.com; s=arc-20160816; b=t2xMsE+ZB7bf9NxPnTarh8RBbUkPCzARGhsNtGxyxi8O+tEy947kKxa3leG6NUwGFi qi0ndQTIqjr8GHWqlPg9T4bL6xgH9O9B3YkpnNTvqlvhZwWiM7QCe1XM3mivvpgXlFfi +GTX7ATlxNXD+NBWYWKLsW73+m6NhqAaAn/fLCE4w6FeGH4ScyVAJdtAt6OOH51dSVBY 8DhiLw+m38/LLVp1+XVT1+6suHLUMZ3ZijvBSZOXcmdBH5ZjPsSa5P4SjyUqDbjsNHx7 p7VnbPv2CMEFj7Qu3QtLHM6lRozgki5ZDB1t2vz3GCSc/bxtCAkwEvAm9fxnxWHfokeQ S88w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=I71cbz0+z/l7EjukDSABLEPiSb/P+c5sQG7mnaPl+5s=; fh=OUvkN+MqD/C+Vq9qHCwYGJGxKuNCPClMyUiOZH9c4fk=; b=kKv7ke2+XYYWWnz5apOZVM20/tgEMWITx4Y7xBUH3o8kCvRRpT1YmgTWFtz81Lv3Jr 1mQRvJrR+UigoMAD2Far3ZCKR7nC9foe5V2p/afgxazydFyhwkS5WiyAMJ4eXcTO/n3K bHDoHqrbg2ODRnOl5UhFj7EHMSbBkczRUbqiAjNRPg3ssCEUOicgr9r5svwAECM8HPrg dZPTX7wf+ePn84p5cModySCzDExEc+gUTVwRkaKbgicqZ9t4GG/7W7YGwRbd47JnQVhF Q1+m7l1D/BXxaBnAL7GG+ZpQxD/cEdxNgVV0hW7CQ2KapvP5w9mVHIRgKeNT9Uhmhzwz Xxug== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="x/Kzn2VW"; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-35791-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35791-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w22-20020a170906b19600b00a2887c40860si11673565ejy.64.2024.01.23.09.41.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 09:41:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35791-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="x/Kzn2VW"; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-35791-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35791-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 228C61F23F8A for ; Tue, 23 Jan 2024 17:41:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACE008004A; Tue, 23 Jan 2024 17:41:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="x/Kzn2VW" Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A4697FBA1 for ; Tue, 23 Jan 2024 17:41:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706031692; cv=none; b=PuEjwWZ2XxjECc9xmgedMhBkSjMqmR4AHUMcOYewly+cQSxWDz9H6TjiVpDJ+E4U6IKfeWLo5/rb+Bg716agtE9x5UaMuzmUTNlZFNIQHNwWJjE58aAwgj8CFdTEQ9ssjLmvvQ1osfRzWQhp1umJx/nKI5wtFaTdIXddImzDTd4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706031692; c=relaxed/simple; bh=xz348oKU6AvMF1pO21pNvmncLBLDSSGLwTjoIJaj5OE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=TKOiYWYRVamUSb2cnfFK9XRVrBIAS0meMp0ownBK54udAF+FSuJifFfpuKnsKfi3LC4j+uS3gitA13DXGuiT06zyijVCeWaeZPfxcLa4VXJ57ZXHdoR7m1F4bkSs1FGp6TwowudL2Y/LyUnjgCPfZTqSmfFUFjAJtXRY9T9AuyQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=x/Kzn2VW; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1d72d240c69so153175ad.1 for ; Tue, 23 Jan 2024 09:41:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706031691; x=1706636491; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=I71cbz0+z/l7EjukDSABLEPiSb/P+c5sQG7mnaPl+5s=; b=x/Kzn2VWDhz9WTQl6dEYtrNNECqIO9zDn4Df0er99ZX/WmgSwd7BlQ+GSWYxujgjNK KQOQ9rNcVrHVXRY9xiR6lNuCfW1I1O3tClboalao+RUemvTtCpPdMCdSKp0cGN8A4nn3 RE162K5PAlPw51EZVhZkl1b3AX+JMV9oibLnClEkTA69Z2o05BUZuidmUcl6Huc0EB06 5cIoa8xnruakkO0PiTUVZZWaibH4wolLSIp+tBpQcFRW31ieUzRxpGqmuVrPCxEt8osb 0NE+DcTQ7YpmzGmN9C/oLE/tMC2cOkKMNQ89atPcrkrs6zb3Y8Ew8JYSh+qgqylQKPKI rRvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706031691; x=1706636491; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=I71cbz0+z/l7EjukDSABLEPiSb/P+c5sQG7mnaPl+5s=; b=Esw/HtJm1wyBuhI3URXgNgIhNpOBfqrkGBI52TT1tV7J/Y0eI7rz33ROP4SadaG1I/ ZCgRyWasCNSSJ6nBVxy1FOKT09ZsX86iK8JD5TA7rs1GXZbwceXdOTPAmEjK3s2lC3Be /uTzwMVy4gAwl1GCs37GIDjOpVJzKQnTUUPVZt/gfdkVZsOArxbJhNCSOHA/zJZ9EdY8 QVTLhczCMrhjkfFPEQUQsYoiKwBLGfzCYhY6QKUO9Ort41db/sRa9T6Qx0vFouZPtLJE N2Sxwd95NFTAkxyoBnYpYv4q3WhZpO9A0W/NFItrh4CWHjL2hVCu/NjrfhzyKubWbbRY sfRw== X-Gm-Message-State: AOJu0YxZmAZ85OgvVPQcSIWfbfUTi0mIrQfdboaW/cnmwoCnMFRiaRly OPXvqq7Y9D2P/FMc1b9+1a/w2CIOIwBXclywRMXAXWw8hjQRpLLNJLkucD9zVy8pZMj+mof86sQ SO28rovTaWTgtBRAXik3lF6kGEL62UOC8MscW X-Received: by 2002:a17:902:dac1:b0:1d5:76a6:6402 with SMTP id q1-20020a170902dac100b001d576a66402mr29236plx.17.1706031690641; Tue, 23 Jan 2024 09:41:30 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240123163903.350306-1-james.clark@arm.com> <20240123163903.350306-3-james.clark@arm.com> In-Reply-To: <20240123163903.350306-3-james.clark@arm.com> From: Ian Rogers Date: Tue, 23 Jan 2024 09:41:19 -0800 Message-ID: Subject: Re: [PATCH 2/2] perf test: Skip test_arm_callgraph_fp.sh if unwinding isn't built in To: James Clark Cc: linux-perf-users@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kajol Jain , Spoorthy S , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jan 23, 2024 at 8:39=E2=80=AFAM James Clark w= rote: > > Even though this is a frame pointer unwind test, it's testing that a > frame pointer stack can be augmented correctly with a partial > Dwarf unwind. So add a feature check so that this test skips instead of > fails if Dwarf unwinding isn't present. Hi James, Is there value in testing without the partial Dwarf unwind? Presumably that is covered by the existing dwarf unwind test? https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git/tr= ee/tools/perf/tests/dwarf-unwind.c?h=3Dperf-tools-next If the issue is inlined functions I'm surprised addr2line isn't doing the job properly. Is there an addr2line perf script issue here? Thanks, Ian > Signed-off-by: James Clark > --- > tools/perf/tests/shell/test_arm_callgraph_fp.sh | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/tools/perf/tests/shell/test_arm_callgraph_fp.sh b/tools/perf= /tests/shell/test_arm_callgraph_fp.sh > index e342e6c8aa50..83b53591b1ea 100755 > --- a/tools/perf/tests/shell/test_arm_callgraph_fp.sh > +++ b/tools/perf/tests/shell/test_arm_callgraph_fp.sh > @@ -8,6 +8,12 @@ shelldir=3D$(dirname "$0") > > lscpu | grep -q "aarch64" || exit 2 > > +if perf version --build-options | grep HAVE_DWARF_UNWIND_SUPPORT | grep = -q OFF > +then > + echo "Skipping, no dwarf unwind support" > + exit 2 > +fi > + > skip_test_missing_symbol leafloop > > PERF_DATA=3D$(mktemp /tmp/__perf_test.perf.data.XXXXX) > -- > 2.34.1 >