Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91A30C636D3 for ; Thu, 2 Feb 2023 01:53:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231378AbjBBBxV (ORCPT ); Wed, 1 Feb 2023 20:53:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjBBBxT (ORCPT ); Wed, 1 Feb 2023 20:53:19 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C83E537F1D; Wed, 1 Feb 2023 17:53:18 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 707E5B821D8; Thu, 2 Feb 2023 01:53:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3D88C433D2; Thu, 2 Feb 2023 01:53:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675302796; bh=mY52l58h/KxD+hCgCm1hAJRXAVjQz04OhKXZcJdu+Lw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OORaJbFaQ4a+Fslx90v97m0abgaw27ZO8hvgOZ9ErinM6671jWhn709SyA11fgij/ 6lTehdH2EQF/F2tWfx0YeDDGh4dRgGtevAItH9Y4Y2vamGLrN0h7Boye53+HRSmSwT uJO1MrVBKpG0RCyT5INi63PJjtgspk+REkpNN6Cylm4ShwNdfrbee2bapU+c1AbMjP Bb6enmmwwG5+4x/gKPO0vsiJ5fAG7bEouzxkJNdntx4+q+RZ2SpR/PKUmaE7kU3b1E 6VqaNAvfKYwH3x4aiPX+4OY3FyZGj24kYcwQGoDwnuZh7vs919OL+HCG8IiTVfYPW+ PuxJzJzltIQpA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 8E13F405BE; Wed, 1 Feb 2023 22:53:13 -0300 (-03) Date: Wed, 1 Feb 2023 22:53:13 -0300 From: Arnaldo Carvalho de Melo To: Diederik de Haas Cc: Carsten Haitzler , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] Script style improvements in lib/coresight.sh Message-ID: References: <20230201214945.127474-1-didi.debian@cknow.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230201214945.127474-1-didi.debian@cknow.org> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Feb 01, 2023 at 10:49:43PM +0100, Diederik de Haas escreveu: > These 2 patches improve the efficiency and quality of the > lib/coresight.sh script. > > The first one uses grep's `-c` parameter to count the results instead of > piping it to `wc -l`. > The second one replaces the use of backticks (`...`) with $(...) as the > former has several potential issues while the latter does not. > > Diederik de Haas (2): > perf test: Replace 'grep | wc -l' with 'grep -c' > perf test: Replace legacy `...` with $(...) Thanks, applied. - Arnaldo