Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2634289rdb; Mon, 12 Feb 2024 10:59:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IHTKzuOGUHsu4Qb7YQjJyOtSnx9pMtq+TSu4tRkgZFUsMKfU03hY6eyJaihJMJTuWy53Kma X-Received: by 2002:a05:6214:501e:b0:68c:ae6d:2abb with SMTP id jo30-20020a056214501e00b0068cae6d2abbmr756382qvb.15.1707764397733; Mon, 12 Feb 2024 10:59:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707764397; cv=pass; d=google.com; s=arc-20160816; b=AwbKfwt5gOQyNFueSOnVERgm3eXznzMUmJ6qlrUhWb/PglL2aS2gLN5kqB8431ZFOG MkqnpYeUxp80/z/41kTe0s3YDBd3XsCD70RFQuj2ft35G+R3j2xU0hmaW4C5eKDOtGEs JVbn1ZVSOa9MWeEKj7+WqsUJtCgxR6q1fw8qOa2qDtZTSSd4UZRdk+yUz7XGamws85QU QI/VXx5fvQuuRBmp+Q2MKAenfBhWcOjdajN2Yt8QiqFWYmwmq0hHc9JlIIzKGtBCNl7z LIxrzxArXfif6DHlTHThjYie0P/cEhlPNK5k1gNJUjT0jXYLcXdrYQX2SPnouUgNOEDR SSgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:references:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:in-reply-to:date :dkim-signature; bh=WQsEsQdYL+F7rq54Mfa+75HgoPY/TwxmW9rhD6V78kU=; fh=cz66xV1FLmLYBL5mqp1bMaeCF/zF6sHD09nQU37/t4U=; b=nf8ZQlHPHyVJaMDy51z0wsxhU+YOap3sYxyJEPMVdxe14XF2gT8HNKVqzT30DuORq8 IVI6XaGAJ7x1jD3XwyGPmWhJi9ReSCpQUVbbnztJUF1sp0f1ksYJvsLYzImW9nO8mdbY /O8A9wHeAoFKRV76Fgw22M7/VXGFmfFZJstDS+rrcgdgU8I7Afl4Xfx9XkupvQxtvhbv Vi53UKO76DnQ/ddoMzvHybuM/VVV/evEe37IuJ0Lu7wgsaivrRNa1ufQN/xfUkboGQKV YzyroZ26xCj8GJ9f9k5ok3XS/xfOczf3XHMBsFNmYAXedDiwODr7IKGPgUJpslSbSf5I pOkg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=b3qyvL7h; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-62242-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=2; AJvYcCWcNSZ5RymGSK6Pk4UYv9MuqDMtwdVrQEW8imVTn9NC6ZdsjRJ38x14PHi4Ff07mpSPhTg+zWj59Vk7kGytCiyWPPnX+Chf5zgEDQ5inA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jq13-20020ad45fcd000000b0068d14d2454dsi939898qvb.616.2024.02.12.10.59.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 10:59:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62242-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; dkim=pass header.i=@google.com header.s=20230601 header.b=b3qyvL7h; arc=pass (i=1 spf=pass spfdomain=flex--irogers.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-62242-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62242-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5D8A61C2272E for ; Mon, 12 Feb 2024 18:59:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8343A47F57; Mon, 12 Feb 2024 18:59:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="b3qyvL7h" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (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 28D3547A48 for ; Mon, 12 Feb 2024 18:59:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707764356; cv=none; b=YyjB8ggGzLqVYGUZpgby1KXJg2h8OiBfbD4vZnoCBHsLuzzbdQJuqu21B5Neua9QIOnua4J5rXBqidryROjrVG3816VeBLkGNWD7zWmEAt7JZBsZTDEa0N3XCB0UG0EaJBeWRsBsAWV7bRFU8tLrFIGJe1WXDpzS43NiYK57Rro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707764356; c=relaxed/simple; bh=cEoquvI2Ge+v6/Ow4yXCwb905NVQF3PwLLtFQnXzKG0=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Content-Type; b=R09PvgKxLF+kDuck2E42pgvpz6CpTfRMXn5ZJUt5ljkPjFa7fo6F9yfAqpdYp1ZmaQ7y/MBPZ/zVMdEb14LC4/JLGEdclJcCDaKLGdYMpALo9JymO3WoQblKzelum6MRw6zsYX6SISzVuBZKyS0zCH7WUJVI9l5P863z2okoHy0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--irogers.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=b3qyvL7h; arc=none smtp.client-ip=209.85.219.202 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=flex--irogers.bounces.google.com Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-dc6dbdcfd39so7316678276.2 for ; Mon, 12 Feb 2024 10:59:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707764354; x=1708369154; darn=vger.kernel.org; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=WQsEsQdYL+F7rq54Mfa+75HgoPY/TwxmW9rhD6V78kU=; b=b3qyvL7hKvSiShvVNQaxcvEvKsCZdzosqakFJkI3oZze12klYVVyv1VSYZdXvbJX5I 1dudKCo/MwdMVTFpmL5z/f491Q2zeNtfWT9NMVTCPbXyzOMRc88lAVsq818iVh/hxC35 weS46+ZmJKtiHwJ3w+y9jkHGDSMSaQB7prK1g3zumZ3N/eGTh+qHaZsjRKjX3SXFU4dh nJL2r3ZK2+U+qKeHKrIqBXYA9oq0Z7M5Toow35y6fOvPMMa48vek2D48ATwjVbnUd4JX yu6P0FUgHcvFmVM3WiMI/MSwz/tE8+bmecubIhOekMLWmj08gYf7pLigFLrwO9rt7uKD CZ2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707764354; x=1708369154; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WQsEsQdYL+F7rq54Mfa+75HgoPY/TwxmW9rhD6V78kU=; b=owHHbjHevh6paNbsNBJ6GzTxXJMXQ/amWr//JPzHalXr5NCSWnRzj+4uGoSMRtU++x C06lA+uH4NEKv1z+RWHapp+IxIZH4nqDPCGDWDdwQ+QUnHxdPzFwN5UGKs8u6p4LTfyc RNxdSk4Ee3dJAx/l4f9ZNtlUJTQiqf2aCULbiC/aSaRL4tyqvx7h6njMaZhMwBcjZ9Xl P5MWIfQp5t8QV0PnQdCG8OqsjpPUmVXbGsWcvRFmVQkbwrtzSAttN1boh55bXxMqMR8A EB3+ABfLtnFKTuLFWcT/SiCJDjm+a1KFp+OUeFqgHH97IM3+APd1dst1p++1WbNyfzYu XLaQ== X-Gm-Message-State: AOJu0YxiQ9RNEIKiQL2lacNdc3Kw0OeWbvX6j5vMQM2qH1hE5g6s025D gM4SYptgcEdE3qi1TWn83SEkDbbqufkHh3iJJdygWCeY3WOMaA/dgSmG+kPIcVdrgXlxb0xq6SI eE846aw== X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:125c:bcda:4fe2:b6e6]) (user=irogers job=sendgmr) by 2002:a05:6902:10c2:b0:dc6:d2c8:6e50 with SMTP id w2-20020a05690210c200b00dc6d2c86e50mr1160978ybu.7.1707764353986; Mon, 12 Feb 2024 10:59:13 -0800 (PST) Date: Mon, 12 Feb 2024 10:58:53 -0800 In-Reply-To: <20240212185858.68189-1-irogers@google.com> Message-Id: <20240212185858.68189-4-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240212185858.68189-1-irogers@google.com> X-Mailer: git-send-email 2.43.0.687.g38aa6559b0-goog Subject: [PATCH v3 3/8] perf tests: Avoid fork in perf_has_symbol test From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , James Clark , Athira Jajeev , Kan Liang , Yang Jihong , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" perf test -vv Symbols is used to indentify symbols within the perf binary. Add the -F flag so that the test command doesn't fork the test before running. This removes a little overhead. Signed-off-by: Ian Rogers Acked-by: Adrian Hunter --- tools/perf/tests/shell/lib/perf_has_symbol.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/shell/lib/perf_has_symbol.sh b/tools/perf/tests/shell/lib/perf_has_symbol.sh index 5d59c32ae3e7..561c93b75d77 100644 --- a/tools/perf/tests/shell/lib/perf_has_symbol.sh +++ b/tools/perf/tests/shell/lib/perf_has_symbol.sh @@ -3,7 +3,7 @@ perf_has_symbol() { - if perf test -vv "Symbols" 2>&1 | grep "[[:space:]]$1$"; then + if perf test -vv -F "Symbols" 2>&1 | grep "[[:space:]]$1$"; then echo "perf does have symbol '$1'" return 0 fi -- 2.43.0.687.g38aa6559b0-goog