Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3901450pxv; Mon, 19 Jul 2021 11:31:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9LMAPqkB5N4I+HFWjfTOTmqCa6jM0xA0zS1P2g1RaM5yLiMxZCRMfaWC19RuJ8UGY1VNw X-Received: by 2002:a50:ce45:: with SMTP id k5mr16952791edj.168.1626719372288; Mon, 19 Jul 2021 11:29:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626719372; cv=none; d=google.com; s=arc-20160816; b=cDkshGWtx8zLndyNJ06hX2W3hpcIDRut9j56CW30N4lSphPLp+K3YHlmLRT8C3/2hY G8hqQtfRz8l2R4DF7IzxRIltR2b2cE56ixG2p1a9C5lc0JCwZBNYIywQL4Z2Ep/4DB8P A3SquUHU3f2kKwYU6szoHLu9xn8qsm56MfVsbmUlXgzhxl4t8DlxRWqz9TfJglNabP7y K/9MnNKbRsNpXZxzD7rXTndhuGLpGQQFKB9eALkz5ZDa7y3R0gvmOwpjGMn9tZVDQc7U Fv1ngIg5bSM5+bYdi4xo6Nx97BocNTAtCOBYMsrVXjvUHKZvQ4O3TJxoJtXGWoEGtXde V5Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cFlv5Aycggch8Ep8RuyBc3EQjncfA20RbTp5UOY8qXU=; b=O3wc+39COLAIIP6POxFm8L5kaDcxAZAeZ6mK4FMQ7l/2xcmbHhNxkj41plAuJQ65LM 6A0azH//+1MHKANSlwui4i+cNfDsmBoqgUrLAr96gjowtL/Qe1b2cV3Sl/rVPHm7EwuE VXWGllrnk3pITWT2PsNcu0TYhZZh9hK94lhDIQtCGCRnxhRgnC4d9yUY5N8k7dzP1ba2 TrSUqe670t9jNUWqv79eYRdnlYMJ2vWL4AOiRoAxGO7h8IANAuCNDUPy4hlOazTs9Mmz o2C32JmyNkzJkLT1VIvtxxAA8U1V0tO9QfOVjonjiEh3QDRVfm7PS13UtZId+Pg8KsYE KTyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gzOo5JyP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu15si6559375ejb.164.2021.07.19.11.29.08; Mon, 19 Jul 2021 11:29:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gzOo5JyP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382011AbhGSRi7 (ORCPT + 99 others); Mon, 19 Jul 2021 13:38:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:38148 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245300AbhGSQES (ORCPT ); Mon, 19 Jul 2021 12:04:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9F75A61006; Mon, 19 Jul 2021 16:44:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626713094; bh=nrRvggJviXFfdy9LsU0DWs5Wxc2DOv6ikzovAtFzfGs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gzOo5JyPBfoSuS9ZmFrp+lDCSYAM4ozRRuaYruoFen7OboEk47/0JafLE6t4462vO PhA/kkfNT9OM24YhfyBgVkHwd5ROSfX3eakUA5rYHGckSoB2pzgmTF9xiJVKfTOcLl 0XgB6jOlqToj0/5zNN8l6D2FAXKg1dNBJ/LZYDyw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shirisha Ganta , Athira Rajeev , Michael Ellerman , Sasha Levin Subject: [PATCH 4.9 198/245] selftests/powerpc: Fix "no_handler" EBB selftest Date: Mon, 19 Jul 2021 16:52:20 +0200 Message-Id: <20210719144946.802718731@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144940.288257948@linuxfoundation.org> References: <20210719144940.288257948@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Athira Rajeev [ Upstream commit 45677c9aebe926192e59475b35a1ff35ff2d4217 ] The "no_handler_test" in ebb selftests attempts to read the PMU registers twice via helper function "dump_ebb_state". First dump is just before closing of event and the second invocation is done after closing of the event. The original intention of second dump_ebb_state was to dump the state of registers at the end of the test when the counters are frozen. But this will be achieved with the first call itself since sample period is set to low value and PMU will be frozen by then. Hence patch removes the dump which was done before closing of the event. Reported-by: Shirisha Ganta Signed-off-by: Athira Rajeev Tested-by: Nageswara R Sastry > Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/1621950703-1532-2-git-send-email-atrajeev@linux.vnet.ibm.com Signed-off-by: Sasha Levin --- tools/testing/selftests/powerpc/pmu/ebb/no_handler_test.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/selftests/powerpc/pmu/ebb/no_handler_test.c b/tools/testing/selftests/powerpc/pmu/ebb/no_handler_test.c index 8341d7778d5e..87630d44fb4c 100644 --- a/tools/testing/selftests/powerpc/pmu/ebb/no_handler_test.c +++ b/tools/testing/selftests/powerpc/pmu/ebb/no_handler_test.c @@ -50,8 +50,6 @@ static int no_handler_test(void) event_close(&event); - dump_ebb_state(); - /* The real test is that we never took an EBB at 0x0 */ return 0; -- 2.30.2