Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1398903rdb; Fri, 1 Dec 2023 15:52:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IFSUA4dC10WSpXVzXu8ZgHGHZEW1/H5BSonbx2OKMeBGzXpNtpNsppNOqeVEirz2HAs/fb0 X-Received: by 2002:a05:6a20:8403:b0:18b:a011:f955 with SMTP id c3-20020a056a20840300b0018ba011f955mr411909pzd.60.1701474727894; Fri, 01 Dec 2023 15:52:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701474727; cv=none; d=google.com; s=arc-20160816; b=N/gV+mNKZQdo9UgaOuzFqpYYm88SxSOuYaj2zYhMclHi0+gT28JFQIMIanKbG8vX1J bhHyWxqH/+Y2q/QdzvMc1WgR1jJLyvRtsfpf6sL+m/wZxaHp6VAyTDZOEoYmNDT5mFAT 54SEQTkuFPZfZjUutJHnLX1kU+dql7vNMaJyN827Q5laZbvcYcQ3ls5fx7dQ+WHJFf16 yZ2MtK6xBsXFRw40itTtCyq5AvlbR79P1hLrotqbXSHu0AJCkzDlaB9NYZF+O8JuEm6S 0idhxovcLotNtb//TpBQ2b/u2HRM01Be9n0pljAvwk7ihSCXSVq5KvzjFgHwfkZdJ2re tLJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=1mumLSgmv33VvcRWr1T4zCbxKl06nV2/FpT8+bbjZvo=; fh=C7ZN3tzOUVR3J206ZGKp6+yGr+dWwfty/7cvNxfc8X0=; b=kqsmmcPE67CiQMINA/BvUSrbolJD7B5ADCMJg8/bSmBC4+i/moT0kD2QlC3OuGfNuH yQ+v+cdjgPPLkoM0TSEcH/VEi7UInlu4tm9RkLGFvKbOaNohfGpBPLk9XQZNojhXez1S wPlPK46yozeysSN5nOPfp2K6ECRZqGpPL9uamcGdC7nsygVZYu2+8NnaYECZe25doAtv ESteSkA52mssPlAJ17zc81ELnAlcMgf+MxJJnv9oh4SuQ3lZW4oo0j/W51vlH/8Rb49f lzBDDGn7IbV3h1WGn//SGhhI+p8ud2b/nmYa+yOtQhoxddaPP7j5Am8gDAJrLbujwfJS LNJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=fVev5DUb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u10-20020a170903124a00b001cfc2c97382si4279357plh.250.2023.12.01.15.52.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 15:52:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=fVev5DUb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 4DBFE84AA9DD; Fri, 1 Dec 2023 15:52:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235280AbjLAXun (ORCPT + 99 others); Fri, 1 Dec 2023 18:50:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235259AbjLAXui (ORCPT ); Fri, 1 Dec 2023 18:50:38 -0500 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A44FD50 for ; Fri, 1 Dec 2023 15:50:45 -0800 (PST) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-5c87663a873so39464807b3.2 for ; Fri, 01 Dec 2023 15:50:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1701474644; x=1702079444; 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=1mumLSgmv33VvcRWr1T4zCbxKl06nV2/FpT8+bbjZvo=; b=fVev5DUbr+bp757gk6NGZOC5GGW4F+iJnQM1qTyULolhbBS3fWk5FfZwfWwhv7Rk3u KnC0yFZ07Y71dN0z4Y9tsz1qj2nV+A8sOswBWhsNfXnQI6GEZIo+NjDEUlD5en04Mhhg w8AsCJ3xRY4Pa+89Xu0vHioP250JYIBk7nbRmdsX+LOWvfiDoQ4ySz/MLIyRenu/Q9fV cfBo/tnp1PYd5VOsn70J8xawg5HxMlrwi18Dd/mbXtoAoT1Qb4o0ivgmOwbd0QFF7BB2 GL51rKQB+mJ044Agai7QNp8Evr+j5ZVKJ1jKVsRegYj9Om9EwVul01ftypk0PVdTwILn yxNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701474644; x=1702079444; 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=1mumLSgmv33VvcRWr1T4zCbxKl06nV2/FpT8+bbjZvo=; b=CfP1BmDuoLDt4T+hqgsgkpJY6AM3SH288CU4Un3tQYvjxCDuBHek+R0YhV33E1BhKu Tw6rFoj+k5z+aBoZmkZfjvwDmVKAy3/BvWLBn8zrY7w3z2iKCFolqOSAhiTe3n7hMW4F Zijtq+N4REDmcov9UmmETK5iH2SlM5A34qKCG+RxHD5f19ZiADQW1J1FXVBnawe8dp9m T+ifcdGFSTgakxBesJ2zNk0FRMUg3sSjhTcLf2dxMeRYcbyGIHdO9T4OeIu/KwLC2Frj 3P+jI6+tavJ+uboWkdqWSz1CsyAxgJYtx5jIftObe0l1z6dB7UKWPrjJuVuK9dUj6HmS GYLw== X-Gm-Message-State: AOJu0YyeTTsZ2a+qzJl59gkSxaOY+al9hhXcth/g2II91cXWRvnO8G+U EK+4dDGP4B6HSH46EoEiUvsSMbIMLRML X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:df3:224b:7b7f:efc5]) (user=irogers job=sendgmr) by 2002:a05:690c:2849:b0:5d4:1b2d:f43f with SMTP id ed9-20020a05690c284900b005d41b2df43fmr125134ywb.6.1701474644325; Fri, 01 Dec 2023 15:50:44 -0800 (PST) Date: Fri, 1 Dec 2023 15:50:25 -0800 In-Reply-To: <20231201235031.475293-1-irogers@google.com> Message-Id: <20231201235031.475293-3-irogers@google.com> Mime-Version: 1.0 References: <20231201235031.475293-1-irogers@google.com> X-Mailer: git-send-email 2.43.0.rc2.451.g8631bc7472-goog Subject: [PATCH v1 3/9] perf tests: Avoid fork in perf_has_symbol test From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Nathan Chancellor , Nick Desaulniers , Tom Rix , Ravi Bangoria , James Clark , Kan Liang , John Garry , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, llvm@lists.linux.dev 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 howler.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 (howler.vger.email [0.0.0.0]); Fri, 01 Dec 2023 15:52:04 -0800 (PST) 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 --- 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.rc2.451.g8631bc7472-goog