Message ID | 20230831151632.124985-2-james.clark@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 70EA0C83F2E for <linux-arm-kernel@archiver.kernel.org>; Thu, 31 Aug 2023 15:17:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9YjwqLjCxv6nXWdUBjLF49cEkwnkwJdt4jdYXIeUsKU=; b=19EaqF/dxlqzeq e87P70RFu+Ijs4mb0VlbgeMJsYOfHwtOOoB7dEM+2MbGSE9dNy51nE882PPpn8RlFcpYKxJYlNMi5 j4l1bDK45V1FiTMhskxWp37HAnZKaczMdS83kVkWSvCTPj2KjRtMI+xGs6b4Gdgq3NffgjaOel7Dv G+agCy1FYLlHxQxOiMZ99+GiRmqCMEULEXzEuYeMXAMWfuQD65uq/r2naKd0INtGjEGCqgvwMYBaH Af7pl+dFImXOGWHtWi5Pv9WutgMSKf2mInaDNgQbQ13iynd1Iy/Kf6ccgopYtntl9V/7jVRB84pdn 54/pwMfwwtG8AQR8sjew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qbjPz-00FUGL-25; Thu, 31 Aug 2023 15:17:11 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qbjPw-00FUFY-2i for linux-arm-kernel@lists.infradead.org; Thu, 31 Aug 2023 15:17:10 +0000 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 F3AA0C15; Thu, 31 Aug 2023 08:17:46 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 5470D3F64C; Thu, 31 Aug 2023 08:17:04 -0700 (PDT) From: James Clark <james.clark@arm.com> To: linux-perf-users@vger.kernel.org, irogers@google.com Cc: James Clark <james.clark@arm.com>, John Garry <john.g.garry@oracle.com>, Will Deacon <will@kernel.org>, Mike Leach <mike.leach@linaro.org>, Leo Yan <leo.yan@linaro.org>, Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org>, Adrian Hunter <adrian.hunter@intel.com>, Kan Liang <kan.liang@linux.intel.com>, Jing Zhang <renyu.zj@linux.alibaba.com>, Haixin Yu <yuhaixin.yhx@linux.alibaba.com>, Kajol Jain <kjain@linux.ibm.com>, Ravi Bangoria <ravi.bangoria@amd.com>, Yang Jihong <yangjihong1@huawei.com>, Eduard Zingerman <eddyz87@gmail.com>, Miguel Ojeda <ojeda@kernel.org>, Liam Howlett <liam.howlett@oracle.com>, Chen Zhongjin <chenzhongjin@huawei.com>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/7] perf test: Check result of has_event(cycles) test Date: Thu, 31 Aug 2023 16:16:12 +0100 Message-Id: <20230831151632.124985-2-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230831151632.124985-1-james.clark@arm.com> References: <20230831151632.124985-1-james.clark@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230831_081708_930410_FE7B2142 X-CRM114-Status: GOOD ( 12.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
perf: strcmp_cpuid_str() expression fixups
|
expand
|
diff --git a/tools/perf/tests/expr.c b/tools/perf/tests/expr.c index 81229fa4f1e9..39be7f3b3a53 100644 --- a/tools/perf/tests/expr.c +++ b/tools/perf/tests/expr.c @@ -263,7 +263,7 @@ static int test__expr(struct test_suite *t __maybe_unused, int subtest __maybe_u expr__ctx_free(ctx); - return 0; + return ret; } DEFINE_SUITE("Simple expression parser", expr);
Currently the function always returns 0, so even when the has_event() test fails, the test still passes. Fix it by returning ret instead. Signed-off-by: James Clark <james.clark@arm.com> --- tools/perf/tests/expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)