linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix session topology test for powerpc and add utility function to get cpuinfo entries
@ 2022-04-28 15:08 Athira Rajeev
  2022-04-28 15:08 ` [PATCH 1/2] tools/perf: Add utility function to read /proc/cpuinfo for any field Athira Rajeev
  2022-04-28 15:08 ` [PATCH 2/2] tools/perf/tests: Fix session topology test to skip the test in guest environment Athira Rajeev
  0 siblings, 2 replies; 5+ messages in thread
From: Athira Rajeev @ 2022-04-28 15:08 UTC (permalink / raw)
  To: acme, jolsa, disgoel
  Cc: mpe, linux-perf-users, linuxppc-dev, maddy, rnsastry, kjain,
	irogers

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 environment
like virtualized platform. Hence this test needs to be
skipped in pSeries platform for powerpc. The information
about 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 testcase
fix needs value from "platform" entry, making this as a
generic function to return value for any entry from the
/proc/cpuinfo file which can be used commonly in future
usecases.

Patch 2 uses the newly added utility function to look for
platform 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

 tools/perf/tests/topology.c | 17 ++++++++++++
 tools/perf/util/header.c    | 54 +++++++++++++++++++++++++++++++++++++
 tools/perf/util/header.h    |  1 +
 3 files changed, 72 insertions(+)

-- 
2.35.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-05-04 14:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-28 15:08 [PATCH 0/2] Fix session topology test for powerpc and add utility function to get cpuinfo entries Athira Rajeev
2022-04-28 15:08 ` [PATCH 1/2] tools/perf: Add utility function to read /proc/cpuinfo for any field Athira Rajeev
2022-05-04 13:46   ` kajoljain
2022-05-04 14:29     ` Athira Rajeev
2022-04-28 15:08 ` [PATCH 2/2] tools/perf/tests: Fix session topology test to skip the test in guest environment Athira Rajeev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).