Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1657325rdb; Thu, 25 Jan 2024 02:11:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IEmBbBXgGWrcIy2yszaILOGID8ZuuGlOGCHeyhW9/Ua26kOhRXrTWVM2360x8VnKnqvz9b2 X-Received: by 2002:a92:c98d:0:b0:35f:f12f:5dc8 with SMTP id y13-20020a92c98d000000b0035ff12f5dc8mr786392iln.97.1706177509344; Thu, 25 Jan 2024 02:11:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706177509; cv=pass; d=google.com; s=arc-20160816; b=suQfsaJdzE0hFVN+7Y57+8KxzWHdVbRWJ/IT6lG//hgpSstNXf+LAtm5YS6Ms+Yak5 1nlZm6D3WWmw3YWe9jwQA/K9tedeVojJPrR6xodHWAyEWGnyM3czNYvRZMtfGs3S0g5r zgpdtpNcn6aSPMR2LDsa9wjYMT4YC6vCxCG/mKEdnY7EVTbekV+BDTbghdNEl8OSk8jt CPvcPDJOSnxJfMyNgzEHUxnU2rRMHjnyINVJeS7ghioMkjmGczkB8/p5JzjVnAfxZU4E nhgSJD0ErCJ5lt7edxudSKJNyUqPwafz5pN0Rpv4HapOdzlRUf6TaRrQhWaUKI7cVnby u+aw== 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=KvQpPqLvBd/gi6IHihoYzWuQ7dlLeUXPgESpa6eRrpWmlZ+XsIkcszKePRdPOM2tsF p6DbOqqpjL/xCZvHNjgA5VcHlEGL3iIrLLYkp/VfmEweCdsEfCZBzx9oLkbkL7l9XNIr aLIhKOExWx2CAcep7urb+MekUlvpFS/1sxYdkMR7d/PAloUd/oy6h7kM1h51U8rK1yqE z1f+ChWpuWA/jN+NGm8ZnTJl234+sGD6UyLUPbiAJ4B8sQAsGv+v6iFB5iJOZzEdBrTU UorornrJW6Aan1BHbkJczL44Lsg9QNL1Ja9CwptFL52k2PtdOlGejCaNgxH0Hy6Hdvsp bmDQ== 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-38309-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38309-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x37-20020a634865000000b005cdf992367csi13392997pgk.691.2024.01.25.02.11.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 02:11:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38309-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::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-38309-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38309-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 CAE91B24DAF for ; Thu, 25 Jan 2024 09:44:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D236E1D557; Thu, 25 Jan 2024 09:42:17 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B4681F947; Thu, 25 Jan 2024 09:42:14 +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=1706175737; cv=none; b=Zitu6Lsh92NKosWhhmSguSTx7rhD9CZc144UAqK/3aAfCC12qb5iaHTY9Uri4gjd5QbiGNbZpUpRac5ovAm9CkOJwKgEJuIHhra5U56JwMyA1J1hLWQp4rdnco7ZI/ZVPbURsFM0w/CxwJX7fzHbdkZpfTv77eh9MSimgzak47w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706175737; c=relaxed/simple; bh=qOOH+9Hm9oB6Pl9slmBg92oE0d/kfGAl6EWMtpIF2+o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=e5wniEJnVH5wbBeLKsHJcFLBudl/WDh4R4eIFN5i8hEgT4PyLSceyGAP/OLDr7UKnMpyxeTwj6A9rM5EFORHe8znl0IZ+O0pUz+pLEpqI99eFv2kbhvlCOjTgEyrjjP22OCJv1cFS99y0yxlJ8khOG/iN831ckVLflRnhyVy35E= 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 BBA99152B; Thu, 25 Jan 2024 01:42:58 -0800 (PST) Received: from a077893.arm.com (unknown [10.163.40.116]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id ACA5B3F73F; Thu, 25 Jan 2024 01:42:09 -0800 (PST) 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 V16 7/8] perf: test: Remove empty lines from branch filter test output Date: Thu, 25 Jan 2024 15:11:18 +0530 Message-Id: <20240125094119.2542332-8-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240125094119.2542332-1-anshuman.khandual@arm.com> References: <20240125094119.2542332-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