提交 23f144b4 编写于 作者: A Athira Rajeev 提交者: Yang Yingliang

selftests/powerpc: Fix "no_handler" EBB selftest

stable inclusion
from linux-4.19.198
commit 1b0912599f13e3bb477853d4d1ae9f8df5566c99

--------------------------------

[ Upstream commit 45677c9a ]

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: NShirisha Ganta <shirisha.ganta1@ibm.com>
Signed-off-by: NAthira Rajeev <atrajeev@linux.vnet.ibm.com>
Tested-by: NNageswara R Sastry &lt;rnsastry@linux.ibm.com <mailto:rnsastry@linux.ibm.com&gt;>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1621950703-1532-2-git-send-email-atrajeev@linux.vnet.ibm.comSigned-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 5fce6747
...@@ -50,8 +50,6 @@ static int no_handler_test(void) ...@@ -50,8 +50,6 @@ static int no_handler_test(void)
event_close(&event); event_close(&event);
dump_ebb_state();
/* The real test is that we never took an EBB at 0x0 */ /* The real test is that we never took an EBB at 0x0 */
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册