Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp440072lqp; Thu, 4 Apr 2024 19:49:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVgnXCbzJmPlgz2RF7Uv5SDUmut23L65qlCz+py3pzDh0bUu7Lu6kH4PRn65X/23p1HXhrvSWkx6VP/vwq9nWnk1G5b+BXE7CoUlAowTA== X-Google-Smtp-Source: AGHT+IFZfyHmH5HiT3UZS0535kxil8ca5ZGjMub8ebdHxlqkUJ247dGGJKPd2a6nqmKanj6Bd/Mi X-Received: by 2002:ac5:ccd0:0:b0:4d3:499a:830c with SMTP id j16-20020ac5ccd0000000b004d3499a830cmr313245vkn.13.1712285381555; Thu, 04 Apr 2024 19:49:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712285381; cv=pass; d=google.com; s=arc-20160816; b=WP+wYV+YIt0ZMq6ar6g3rALImw05+tYr3l83oK4mVoqhsaJvpAWTBkcIC3lsGbkm+v 91dmtQuc4TXb4HYdrLZbO39/sBg1/aps6pQb2vjy0vsuznIHmULWFvk2VUKnsTQ1eSQq iGXCCOvLljlMRzsRLbjFcjhQfn7ctC9Mc3Vf4eVgaidSsSPS0TIkOLG1/47nyG/qD5ne BZjWSQpPmMS29M6vbYaWxWBhMA+U+ZZpXrZ84auDCXgncx9Vf6fHT2TrrXX8cqbpjF2g JWUJ461ePyX5rWD7ZIAFuLWHCtfO8sh2kSN5Pa6qMLdTSIOBHxWkqCfdJC3IoAXeyBvB 7zmA== 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=topeO/SSPLNvSkj/hcgVXYPDnuGTkQukAXqNbilZjo/+BKmgIaiNsDVekqFl53nHmk +gvXUmv758U4VoEWYgxuzEepUe9AtQAMQO/WN240r5Vqvy/el0PNUXwMim1q0uwf0Omf QLc2UvJd859feWZKXyXn+F9CqkHO5pd5mQTXURnYk57RVaM/zWHl2X3Vco/zevPh2mqQ vPzOansv1sLRcTp/rKFjElK4CVo0brBOG88AU9E8WjvOrm2EZAr+XprTOimEieLW7kXB M+TCqXSPsGEl68oE7VXYtsv8kvNDWU6kTZ3nzHZZOXjGikiABDrGOu4FkGoiUznlGnW+ c2iw==; 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-132346-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132346-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id cr17-20020ad456f1000000b00698725f3baesi795809qvb.153.2024.04.04.19.49.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 19:49:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132346-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-132346-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132346-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4A9EC1C21925 for ; Fri, 5 Apr 2024 02:49:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80EB72C1A2; Fri, 5 Apr 2024 02:47:46 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94F3C2C195; Fri, 5 Apr 2024 02:47:44 +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=1712285266; cv=none; b=FU3N0A3Nq8jJeWc5sYtgSD5az1lywIxujHd2ncM2PiM4ITJoUsHZytnO9Rxno4YiV+NmkK87vhtvxjRv1JIpUhukOm3bi7MvCbxR9JfLc8rKko2GzWVWcx+v6KPc5PTdjme5MKCwfAVhtYFBDqIXw4Uy6moVY55hMqjHeamB+xA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712285266; c=relaxed/simple; bh=qOOH+9Hm9oB6Pl9slmBg92oE0d/kfGAl6EWMtpIF2+o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RztyP7m3J4zbAk66VgdM4L6eBzW4D2BZW8+qIErL8cqj+Hw4hskS8DsDcH6PHf1Rc2hqcJS1rSBhZR7FFvuAEE+2d29MoidchZyr81qT6bVvHrUWJmNPQsD7beMQgbACrDiJJAJ9KTPgta+RkuNZusGdV0tl+D/2J4Qct1icuzY= 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 74E35FEC; Thu, 4 Apr 2024 19:48:14 -0700 (PDT) Received: from a077893.blr.arm.com (a077893.blr.arm.com [10.162.41.6]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E77703F766; Thu, 4 Apr 2024 19:47:38 -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 V17 8/9] perf: test: Remove empty lines from branch filter test output Date: Fri, 5 Apr 2024 08:16:38 +0530 Message-Id: <20240405024639.1179064-9-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240405024639.1179064-1-anshuman.khandual@arm.com> References: <20240405024639.1179064-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