Received: by 2002:ab2:6f44:0:b0:1fd:c486:4f03 with SMTP id l4csp195805lqq; Wed, 12 Jun 2024 23:27:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVeQGtJYXghq+KrJxFVlZygPaNwR2x7lrtP9DuRDgSkAMl9Lle75996OU76kFEodJLmMGmINWez7CA4ROsIKmwagNexsYnvdiIp6tADAw== X-Google-Smtp-Source: AGHT+IGkmWN80Hs647mLLZEduiUzKeapSJV3lJJzfdTN9rE1Vy54UXN4Ix0Nck6xTzMHhoE24013 X-Received: by 2002:a05:6a00:23c7:b0:705:b3b1:8fa8 with SMTP id d2e1a72fcca58-705bcdee04emr5376091b3a.2.1718260036235; Wed, 12 Jun 2024 23:27:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718260036; cv=pass; d=google.com; s=arc-20160816; b=deKV3RYKsmRtugacaIPQo6fdHd6mkqsQLXEq8p+2S3Vi6A7dzDzKK2xhw56M+JT7Am mjbWVnN5gbK5AQ36kUcvG0E/FjFoHveJnT4arod3dm3YRlhdzfqRrhMetyHsFqxZrKAt SZgu0Gweqoe5il815zIV0hMtv4vW732tPI+nlOvz4QUX/Y2RRsuymLpM70DffDqfOSLG wJ2/jlzncCQ9gqOSToKNT9J7pdXzuRtAqFze7dIBywLRGmQgBH+o18kLYue7gRSwTGhm xF19WKceSjVcNj+xI2N+OEBOvhdKtdxT6OZouDz6UAk8hxZUhyxqFkhQ3kigl5MZb3T/ HDUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=kB39EkvWpgUECoAI4Rw+bsrcPYygrZYAki/SBQjts5k=; fh=V2J5DHn0lHtldVpcv/exnbGcu06d5n6VQ+L/z9BBIRM=; b=QIv1a3LMxmC4hVr5QWG4fqHlZTwGSEDgDEWBG9nAJXhoilqdMEPrPZDicL9CDTd5Z8 3Em0VbOT3rNECF2+jU3fInFI/3Q9N+Im19LuFMj+hvPF/iG5/iJHxaB4r8idIiSC4P3q /anjQpNdLXYwQLPzG2gMyUXGudzedehx0Y30wQl9yYw6vmELs+NRtEcQF/OBWu9jKPTZ htR0UHU+/UwbcP82yGdDF/jL2U0xr6sGm5bKJ11pUGctCs5b5QkKHzSeAQDbJXI6FXRZ SmK9XKLiUsTbX0cnWv88QkhC0cRVoigeXg5pbHiZrCsnJfmQct8C6Ehqt8GbgAqb31Y0 qk9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-212617-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212617-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee453b9e4si672855a12.466.2024.06.12.23.27.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 23:27:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212617-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-212617-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212617-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 289A6B24B77 for ; Thu, 13 Jun 2024 06:20:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 040DE13A27E; Thu, 13 Jun 2024 06:18:40 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 386971369BC; Thu, 13 Jun 2024 06:18:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718259519; cv=none; b=CNEJWGNoC24BPZ+rmzggGlkvJddsdrIwAT7Dyqxg5iydUJ7wweBwdak9hsgT2lgXnzmHRdtAmetVF2SvsdEaelqi5YCOfmxoGS3InPlh33ge681XsIEnMGerN4fimEhGqg7hyRZQXxIfPXCsRXjP9hJgfJOdGm6fG+kviLbL5AI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718259519; c=relaxed/simple; bh=qOOH+9Hm9oB6Pl9slmBg92oE0d/kfGAl6EWMtpIF2+o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Shv7skIxDSlV16go82C9Mpu13CGlfboNq/CqjDX30ZuhX5wlt1N+WIEhi3s0FItU85wPPzNfs9JyY4TMKFFDkV1POYMdM4m/904PscGemUSnjLXxLqmAY+7LGkkB4j+0NhuKCifTGGg9nVqOqGAwR6qyqtQyxW90ETFiyPoVYBk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 741211063; Wed, 12 Jun 2024 23:19:02 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.44.128]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9F8DB3F5A1; Wed, 12 Jun 2024 23:18:32 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, will@kernel.org, catalin.marinas@arm.com, mark.rutland@arm.com Cc: Anshuman Khandual , Mark Brown , James Clark , Rob Herring , Marc Zyngier , Suzuki Poulose , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , linux-perf-users@vger.kernel.org Subject: [PATCH V18 8/9] perf: test: Remove empty lines from branch filter test output Date: Thu, 13 Jun 2024 11:47:30 +0530 Message-Id: <20240613061731.3109448-9-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240613061731.3109448-1-anshuman.khandual@arm.com> References: <20240613061731.3109448-1-anshuman.khandual@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: James Clark In the perf script command, spaces are turned into newlines. But when there is a double space this results in empty lines which fail the following inverse grep test, so strip the empty lines. Cc: Mark Rutland Cc: Arnaldo Carvalho de Melo Cc: linux-perf-users@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: James Clark Signed-off-by: Anshuman Khandual --- tools/perf/tests/shell/test_brstack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/tests/shell/test_brstack.sh b/tools/perf/tests/shell/test_brstack.sh index 5ea64d0c4a6f..928790f35747 100755 --- a/tools/perf/tests/shell/test_brstack.sh +++ b/tools/perf/tests/shell/test_brstack.sh @@ -68,7 +68,7 @@ test_filter() { echo "Testing branch stack filtering permutation ($test_filter_filter,$test_filter_expect)" perf record -o $TMPDIR/perf.data --branch-filter $test_filter_filter,save_type,u -- ${TESTPROG} > /dev/null 2>&1 - perf script -i $TMPDIR/perf.data --fields brstack | tr ' ' '\n' > $TMPDIR/perf.script + perf script -i $TMPDIR/perf.data --fields brstack | tr ' ' '\n' | sed '/^[[:space:]]*$/d' > $TMPDIR/perf.script # fail if we find any branch type that doesn't match any of the expected ones # also consider UNKNOWN branch types (-) -- 2.25.1