[PATCH 0/2] Fix session topology test for powerpc and add utility function to get cpuinfo entries

Disha Goel disgoel at linux.vnet.ibm.com
Sat Apr 30 03:35:12 AEST 2022



-----Original Message-----
From: Athira Rajeev <atrajeev at linux.vnet.ibm.com>
To: acme at kernel.org, jolsa at kernel.org, disgoel at linux.vnet.ibm.com
Cc: mpe at ellerman.id.au, linux-perf-users at vger.kernel.org, 
linuxppc-dev at lists.ozlabs.org, maddy at linux.vnet.ibm.com, 
rnsastry at linux.ibm.com, kjain at linux.ibm.com, irogers at google.com
Subject: [PATCH 0/2] Fix session topology test for powerpc and add
utility function to get cpuinfo entries
Date: Thu, 28 Apr 2022 20:38:27 +0530

The session topology test fails in powerpc pSeries platform.Test
logs:<<>>Session topology : FAILED!<<>>
This test uses cpu topology information and in powerpc,some of the
topology info is restricted in environmentlike virtualized platform.
Hence this test needs to beskipped in pSeries platform for powerpc. The
informationabout platform is available in /proc/cpuinfo.
Patch 1 adds generic utility function in "util/header.c"to read
/proc/cpuinfo for any entry. Though the testcasefix needs value from
"platform" entry, making this as ageneric function to return value for
any entry from the/proc/cpuinfo file which can be used commonly in
futureusecases.
Patch 2 uses the newly added utility function to look forplatform and
skip the test in pSeries platform for powerpc.
Athira Rajeev (2):  tools/perf: Add utility function to read
/proc/cpuinfo for any field  tools/perf/tests: Fix session topology
test to skip the test in guest    environment
Tested the patches on powerpc and powernv, verified perf test session
topology test with the patch set.Tested-by: Disha Goel <
disgoel at linux.vnet.ibm.com>
 tools/perf/tests/topology.c | 17 ++++++++++++
tools/perf/util/header.c    | 54 +++++++++++++++++++++++++++++++++++++
tools/perf/util/header.h    |  1 + 3 files changed, 72 insertions(+)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20220429/42a440f2/attachment-0001.htm>


More information about the Linuxppc-dev mailing list