Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2528612rdb; Sun, 3 Dec 2023 22:55:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IFfKwHVPbww6Muvbvf8Dp6vSAy7J/1dCK/yfCoU9bpYH6shBhlcE9WJHFHY38++XPdE2BfR X-Received: by 2002:a05:6a00:a93:b0:6cb:b7fb:931f with SMTP id b19-20020a056a000a9300b006cbb7fb931fmr1824146pfl.33.1701672911773; Sun, 03 Dec 2023 22:55:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701672911; cv=none; d=google.com; s=arc-20160816; b=vN/txpBWlsXvSyl/xnErZRTjp3pgc24rORu7FYmnQwmfzUmZN+xTu7G1yoev7vtuZe oYuvCRWsiB6V4XyF0MtTzyFcZmpAirpQ0q7OdKuuuehOrbh1WyJDkewqPrpk7Yzed2KU 26TyenmUrKkJcaCo5Q6VejLGMym+tubJnskyNDf3CFzWY/L/C+59DinKEyULrzQmcAW2 wWxm9iAEerCuoh7lrqtAaEd+4dOiZKf8YvgZLDOOjC+S1i+aK2szkY2sdFrF4DFUG9II ez1Tsa7voPV17/0JZJwoe/dvrC6zYiFr8mg35HegIxY2QV2vSgRXj/dcAEshQDMk/KK5 gyZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=B8h1Y1itZTOqgj//+xZ9jO4I8/j64BqTjQpnpMslikY=; fh=bxnyB+XcSRGtTmJdCxDsCQQ/o6WN4SffVxvBO4PmiHI=; b=bSs5LQ6onfY7noKS+HoQMhEjDHzvIE6BcFbnO5MTFWxXdqACrEBOtVm8JVrBtgnQk1 OLuGLvB8OJF2pNYWFkJszfs05ShQ7MJDtrclZvOD2F8anPe4zU+0DTz4/Lm7ZJRp4vvE 2tg053c5PoacDpl0o2Qnn+FIYlTLdFI0rqtVenbXWZoGAz/pylC7Eoevca7icqRALizi 8gt9RFDRVR9UcRR4TreQCdPZ/+gLYCJZV5gb2UkqHmaAwIjy5BU41TZSp6DldTLaaTZF 9RTV/5+SHqmIr06Jg+ANLauJ3B6RuCDsTgjCBIAYE0qxLTnDrlLc15RBwXTJCDZ0YKzm ZqTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ct2yt0LB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id b5-20020a056a00114500b006ce11062b36si3924538pfm.228.2023.12.03.22.55.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 22:55:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ct2yt0LB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4E9798060474; Sun, 3 Dec 2023 22:55:09 -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 S234551AbjLDGy4 (ORCPT + 99 others); Mon, 4 Dec 2023 01:54:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjLDGyy (ORCPT ); Mon, 4 Dec 2023 01:54:54 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1105ED5; Sun, 3 Dec 2023 22:55:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701672901; x=1733208901; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=DkI6Gqdi3oM5F1BCGG/SyVaLLGeuLY9c6+WsMZZX+HU=; b=ct2yt0LBod7DpN68pdzMxw7R/apgJ/tUkjHyv8brE7hBcNr2rnftldnl jb3JCP7nF2Okc9z3FV/Glvp9P5TCxMBYT5U/RzIz9d3SsQrPBkddyhMpn xKuyjZhay6i9xahY9NAfdUzSqHYgXHO2mSggqn2FLql2TuAkKUo4/tr2w VFCBWai5alOIxlF3co8l4aiQ2szSYHeQBF56/ckMMcYtzNMT55Y8+Qgcm KpBuTQ7JfsEq1yW7Hvtk3wqmEUndC0Erewlh/P6ZxRn1PA9MBKY0SwLtc Jd+74YmeTuhXFSJQ2wHSCnhUd5rasnwocxt8/sMCxb/YK2OpelWkPD034 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10913"; a="573866" X-IronPort-AV: E=Sophos;i="6.04,249,1695711600"; d="scan'208";a="573866" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2023 22:55:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10913"; a="888430244" X-IronPort-AV: E=Sophos;i="6.04,249,1695711600"; d="scan'208";a="888430244" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.252.44.211]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2023 22:54:55 -0800 Message-ID: Date: Mon, 4 Dec 2023 08:54:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 3/9] perf tests: Avoid fork in perf_has_symbol test To: Ian Rogers , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , 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 References: <20231201235031.475293-1-irogers@google.com> <20231201235031.475293-3-irogers@google.com> Content-Language: en-US From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: <20231201235031.475293-3-irogers@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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]); Sun, 03 Dec 2023 22:55:09 -0800 (PST) On 2/12/23 01:50, Ian Rogers wrote: > 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