Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11959397rwd; Thu, 22 Jun 2023 22:38:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6mH8Fk5s242nI1UaxKs289vLq0GSIxq5tz1AAAGTCvLSZ1xtZ+ey8oIMae2ls+cw88AIwo X-Received: by 2002:a05:622a:1210:b0:3fd:ea47:6505 with SMTP id y16-20020a05622a121000b003fdea476505mr19932981qtx.47.1687498697371; Thu, 22 Jun 2023 22:38:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687498697; cv=none; d=google.com; s=arc-20160816; b=i6wT6+j2ehqlvJ98vIWNfxLTB+Z2ts0l1mfsC/I0TdL6/YV2RPgYKflNWaGqB0Edtt zOOW/fNFNt3WcVx90ZHC+zj6a6iPMjSTX5uwFc08ZrBZRxJTarQmjY2cuze61vbWbBN/ 5vAg57V/GEnwNzoP9iweNIrROmzuAixE6Fjx9qyUsaVDVxQlcNMiyfwOlWjbkPlbLLDk nuxVIljt88mZ44ip0HUQ6ZpM803WXnSXpcsCoGhTtp94vKsBASjgkZoKpxQIAcEBZ5R6 LmTfoi9sp+NwyxVP9r/m7b2BpcHh4z7QRtYQNaS9nHgB2VyKme1rfgL+fNDK04XvMvhZ xXxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=ZQecxSPGF4uQVaZNI1ZfkXc3TjVZ5cMC05XNdBMMtcI=; b=W0nqDdS8R5kIsp+Fl4CvcvQ81A9YYnJDJ/WCoFeNgoxl90jMP4gwfALQ40eeEzyTov pEk66hqMC2PG+b1VcX50+lg3RYWY3wXLT+rTNgVnScnG/mSwNc3u2oxLADR7n1ix5YJy GlEKeifLRmVyCeGF7uTLXHUw1HEJzMs3flQuy6KFQlypD8ltFhkvUvkCUn2o1raQkpnH rm1Giv+31FDUueO9YcXMSRNDOQPQeSYBbb0sJbbIhBZXszYDZmEudoKCxzPJK3604Ha1 dHfgi7UuZUEY7GjIAwP28JNyZYgy1t6QvkeBk1W3IOiLKp/bbtd9rBlDytuGM7aLTsoj wdDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk13-20020a056a02028d00b005440dcf6d1asi1007591pgb.175.2023.06.22.22.38.03; Thu, 22 Jun 2023 22:38:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230348AbjFWFAx convert rfc822-to-8bit (ORCPT + 99 others); Fri, 23 Jun 2023 01:00:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231393AbjFWFAp (ORCPT ); Fri, 23 Jun 2023 01:00:45 -0400 Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4311212C; Thu, 22 Jun 2023 22:00:35 -0700 (PDT) Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-bd6d9d7da35so225831276.0; Thu, 22 Jun 2023 22:00:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687496434; x=1690088434; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cElT94Q2SNxLa5ji9VEO/IsbAAy21XvRJdRCIh4+/Co=; b=NW6L+ZZ7rz1KxgFgR0TeV1GMp51U+ZeK8oyaGiDNes0HU0HGtq94sOCHEQ/a4HJ8UA CqsSFeW5VTFFqFCjWRrgNx7fXMbKv+YinEv80Qv5VR51LQ5ZhkAFchpZUtxIWlQ23vaJ ZFy2DK0u4r94EAJ1sMxB3F7LraIpQBCRCZPKCu3jScMIXN9H2aDND8KYPnBpl2eG+HG7 dGp3+aFCkhNTK2p0MHP6SBgy02WS0a1Q3sT/TuRoOsO/zpsqWKfmfsPHTEKK2hWGOSWx 8KwrZvgPkPpNBPkHuYh5TbCDnX7PfsgRWKXoF2jhU7UVX1dP2KzSffcT9tiTLy3YwjFX lojg== X-Gm-Message-State: AC+VfDyg71uhG84PGOllL2VfwbwNKRjqUpi1QPjk6cnmiWZ09vBN5/No dpTJEJYqVuF6ye3zNwDQcxbI8bJbO//IiXaE0A8= X-Received: by 2002:a25:cf14:0:b0:c08:62b:60e9 with SMTP id f20-20020a25cf14000000b00c08062b60e9mr770674ybg.31.1687496433933; Thu, 22 Jun 2023 22:00:33 -0700 (PDT) MIME-Version: 1.0 References: <20230622101809.2431897-1-james.clark@arm.com> In-Reply-To: <20230622101809.2431897-1-james.clark@arm.com> From: Namhyung Kim Date: Thu, 22 Jun 2023 22:00:21 -0700 Message-ID: Subject: Re: [PATCH] perf tests: Fix test_arm_callgraph_fp variable expansion To: James Clark Cc: linux-perf-users@vger.kernel.org, spoorts2@in.ibm.com, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Athira Rajeev , Kajol Jain , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi James, On Thu, Jun 22, 2023 at 3:18 AM James Clark wrote: > > $TEST_PROGRAM is a command with spaces so it's supposed to be word > split. The referenced fix to fix the shellcheck warnings incorrectly > quoted this string so unquote it to fix the test. > > At the same time silence the shellcheck warning for that line and fix > two more shellcheck errors at the end of the script. > > Fixes: 1bb17b4c6c91 ("perf tests arm_callgraph_fp: Address shellcheck warnings about signal names and adding double quotes for expression") > Signed-off-by: James Clark Acked-by: Namhyung Kim Thanks, Namhyung > --- > tools/perf/tests/shell/test_arm_callgraph_fp.sh | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/tools/perf/tests/shell/test_arm_callgraph_fp.sh b/tools/perf/tests/shell/test_arm_callgraph_fp.sh > index 1380e0d12dce..66dfdfdad553 100755 > --- a/tools/perf/tests/shell/test_arm_callgraph_fp.sh > +++ b/tools/perf/tests/shell/test_arm_callgraph_fp.sh > @@ -15,7 +15,8 @@ cleanup_files() > trap cleanup_files EXIT TERM INT > > # Add a 1 second delay to skip samples that are not in the leaf() function > -perf record -o "$PERF_DATA" --call-graph fp -e cycles//u -D 1000 --user-callchains -- "$TEST_PROGRAM" 2> /dev/null & > +# shellcheck disable=SC2086 > +perf record -o "$PERF_DATA" --call-graph fp -e cycles//u -D 1000 --user-callchains -- $TEST_PROGRAM 2> /dev/null & > PID=$! > > echo " + Recording (PID=$PID)..." > @@ -33,8 +34,8 @@ wait $PID > # 76c leafloop > # ... > > -perf script -i $PERF_DATA -F comm,ip,sym | head -n4 > -perf script -i $PERF_DATA -F comm,ip,sym | head -n4 | \ > +perf script -i "$PERF_DATA" -F comm,ip,sym | head -n4 > +perf script -i "$PERF_DATA" -F comm,ip,sym | head -n4 | \ > awk '{ if ($2 != "") sym[i++] = $2 } END { if (sym[0] != "leaf" || > sym[1] != "parent" || > sym[2] != "leafloop") exit 1 }' > -- > 2.34.1 >