Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp416308rdb; Tue, 5 Dec 2023 08:49:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGiefaGPCUj4Z2LmV8mu089AERCpwm+rLlYefUbJL6UqZSKVhrF58nGgT9kohpMaQy9UtCw X-Received: by 2002:a05:6a00:190f:b0:6c5:d2bd:ad8b with SMTP id y15-20020a056a00190f00b006c5d2bdad8bmr1451668pfi.31.1701794985224; Tue, 05 Dec 2023 08:49:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701794985; cv=none; d=google.com; s=arc-20160816; b=HG6552xmeXwtVBBDrNQ+PfuGtqthyHnQm2LNeXGYGcHkoBHi30pc3N23sy/4X5Pf0T a4Fo0cJhY7z6X0l9XSQlIqFKHmLKzUA3mVDPPTGIZ0FAAIXqFbx+Ir7HvvzP+Xz6OiZD qvoItHHZrbf3aW0t6Js5DsoMJMwV7YTUoUjbJmaEkOWkUj4pXiazGapHb8635MFrAzEv a/m12bPF8/sHQPL/uLiWXuOJ32PLYLMxfggiyeDvbVijDt9o5zxwYkhtI6pU4TnVw5kv //KQMNgzu7s9y7obzKQ7okLip//wBU8/Yn8eMiDwBZxNp6aRO+xN5bmAexULvhsIYp4q NZ2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:mime-version:message-id:date :dkim-signature; bh=il/zOOk1ULaSp4c3ZKjwASqI7JmWGklotUwSmWlNxts=; fh=M03QQq2BGgAHjQvEE5ebB9F7AIwQdsROrtXDdf41UXo=; b=bx+cbMB9Rd0UzNMz/9Kp7DVu4w4D/uYEjCis6lmTC5j5rrn+ooke4TLtbZFQ7nyt0S GPBfHT8yvzHETbaLZjU+T3Vzh2ZhrY4QHXsimRx5tUOWnpMeosVWfRZLzK+fmZCdPFCN Ihf0x61jPrui2ouQIrpT49CG7xZOAQ/ElMBwOdEHRDgUJa5/wM/sgNzl2Z6Ig3itEg/8 /QE/OSOn//xnKV+IuaNPVhrhnOjAt0fbSu7KBfD1d7GLozkw4WHPY5U21X/q9xdUwGLP D4jRLsfJWlxcu5/F3byqLbA/ynf6ewNwH4U4RYuKfkZyeGAZUoDM7KI7AQRAIii1RyGs OgRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=MmthDo4G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id q10-20020a056a00150a00b006cdaa195ea6si2245940pfu.69.2023.12.05.08.49.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 08:49:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=MmthDo4G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8C86680423AB; Tue, 5 Dec 2023 08:49:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232160AbjLEQt0 (ORCPT + 99 others); Tue, 5 Dec 2023 11:49:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232198AbjLEQtY (ORCPT ); Tue, 5 Dec 2023 11:49:24 -0500 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FD7019F for ; Tue, 5 Dec 2023 08:49:30 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-db547d41413so3801803276.0 for ; Tue, 05 Dec 2023 08:49:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701794969; x=1702399769; darn=vger.kernel.org; h=to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=il/zOOk1ULaSp4c3ZKjwASqI7JmWGklotUwSmWlNxts=; b=MmthDo4GyoBmUhvDHGw72G01MDqlIvODa/hQIJaBYO9hgqqG53xzEtqM7gWzDs8U4N VdXtcO7F5Bm4sWPPbsXjwi85nRkOqiy4X7W5o4hXuksGEWZvuab5ApIi0lg3dllLzM3y /pFJ0yFA6vcJldgWu8d/Er50IQWisih7fMxW04E1+gA6tr9Dz6wRbfX7auCF1L+P5rWL ArWdVjJA1EfOlHQ/r8DQ/Zq/QFwvnQFOt9ROehJpW0P9D3dw0kSzhY6b/dwUYb62jQGj rLG/dcxCrKSO9vUodXOiOjhR1KdWQIlK5SeNWFSIbLMYlOUChqL3m1z24CEEM8/gI1jQ QF9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701794969; x=1702399769; h=to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=il/zOOk1ULaSp4c3ZKjwASqI7JmWGklotUwSmWlNxts=; b=c0GZoqOYCzGUit58kkhahMjw6oH5LAux7rkwCxFVBwJzxKGKgzQPaDBD+KOUVAzDCq 5L29tC491xTGrOasXRkNDg6yLCK7m85Jbs7LtRtLVsEgsXikyV/lP9L+8pGGqjiSU3SY uFyYqoJkhiLmugKUcMVurQYbrensMe4CmO7jb1HHVotHknXbkz8kYqChcLn12d6MvR+v VeYXXGDVFl/SXT/Y5+g4fAdyFlFF4S0R8DlWcZGnWcDCA61SW/8pk7NZEblCpIQ5HSwx CShQyaJZXYr2Vf2a68dw/9g7I7VyzbVI4vVrFgNlLrNiI37HbX/QoDXtUgk1ciYKjvFJ Uxfw== X-Gm-Message-State: AOJu0Yx24n0RJFDY/QcnSIiIzRCl0faFQdscWYhcyjxAqWitPqHtWp7h I2msJfSaJuR1VZ5BoFbptKmEsNT0jx4X X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:48b6:2578:1ca7:5287]) (user=irogers job=sendgmr) by 2002:a05:6902:51:b0:da3:b467:af07 with SMTP id m17-20020a056902005100b00da3b467af07mr60835ybh.2.1701794969538; Tue, 05 Dec 2023 08:49:29 -0800 (PST) Date: Tue, 5 Dec 2023 08:49:24 -0800 Message-Id: <20231205164924.835682-1-irogers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog Subject: [PATCH v1] perf test: Skip diff test if test_loop is missing From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 05 Dec 2023 08:49:40 -0800 (PST) The diff test depends on finding the symbol test_loop in perf and will fail if perf has been stripped and no debug object is available. In that case, skip the test instead. Signed-off-by: Ian Rogers --- tools/perf/tests/shell/diff.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/perf/tests/shell/diff.sh b/tools/perf/tests/shell/diff.sh index 213185763688..14b87af88703 100755 --- a/tools/perf/tests/shell/diff.sh +++ b/tools/perf/tests/shell/diff.sh @@ -9,8 +9,15 @@ perfdata1=$(mktemp /tmp/__perf_test.perf.data.XXXXX) perfdata2=$(mktemp /tmp/__perf_test.perf.data.XXXXX) perfdata3=$(mktemp /tmp/__perf_test.perf.data.XXXXX) testprog="perf test -w thloop" + +shelldir=$(dirname "$0") +# shellcheck source=lib/perf_has_symbol.sh +. "${shelldir}"/lib/perf_has_symbol.sh + testsym="test_loop" +skip_test_missing_symbol ${testsym} + cleanup() { rm -rf "${perfdata1}" rm -rf "${perfdata1}".old -- 2.43.0.rc2.451.g8631bc7472-goog