]> Git Repo - linux.git/commit
perf test session topology: Fix test to skip the test in guest environment
authorAthira Rajeev <[email protected]>
Wed, 11 May 2022 11:49:59 +0000 (17:19 +0530)
committerArnaldo Carvalho de Melo <[email protected]>
Sat, 21 May 2022 17:52:33 +0000 (14:52 -0300)
commitcfd7092c31aed7288725cb922bc10d9d52eac302
treef4f0338186cb85689335913be60fa1cd321d5845
parentf8ac1c478424a9a14669b8cef7389b1e14e5229d
perf test session topology: Fix test to skip the test in guest environment

The session topology test fails in powerpc pSeries platform.

Test logs:

  <<>>
  Session topology : FAILED!
  <<>>

This testcases tests cpu topology by checking the core_id and socket_id
stored in perf_env from perf session. The data from perf session is
compared with the cpu topology information from
"/sys/devices/system/cpu/cpuX/topology" like core_id,
physical_package_id.

In case of virtual environment, detail like physical_package_id is
restricted to be exposed. Hence physical_package_id is set to -1. The
testcase fails on such platforms since socket_id can't be fetched from
topology info.

Skip the testcase in powerpc if physical_package_id returns -1.

Reviewed-by: Kajol Jain <[email protected]>
Signed-off-by: Athira Rajeev <[email protected]>---
Tested-by: Disha Goel <[email protected]>
Acked-by: Ian Rogers <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Madhavan Srinivasan <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Nageswara R Sastry <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/tests/topology.c
This page took 0.055601 seconds and 4 git commands to generate.