diff options
author | 2025-01-03 15:41:22 +0000 | |
---|---|---|
committer | 2025-01-21 08:51:00 +0000 | |
commit | e088b65415a5b766374d08d3dbbbf493dd810b57 (patch) | |
tree | 31d902d31a7257ff8a6fc3535235e5d4de021b04 /resources/libraries/robot | |
parent | 4c4d9c232cc3951d3242095c7b39b8cf8f8d61e0 (diff) |
fix(telemetry): fix perf stat issue on Arm
VPP CSIT utilises perf stat command to monitor the perf events defined
in perf_stat_runtime.yaml file. However, the raw event specification
format(cpu/event=0xXXX,umask=0xXXX/u) is specific to x86
platforms(Intel/AMD). On ARM platforms, we stick to the symbolic names
of the perf events.
Signed-off-by: Jay Wang <jay.wang2@arm.com>
Change-Id: I967bc4bddf5fc9ffbe61c276efdd95d69f7c4412
Diffstat (limited to 'resources/libraries/robot')
-rw-r--r-- | resources/libraries/robot/performance/performance_actions.robot | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/resources/libraries/robot/performance/performance_actions.robot b/resources/libraries/robot/performance/performance_actions.robot index df520e0757..de7c63200a 100644 --- a/resources/libraries/robot/performance/performance_actions.robot +++ b/resources/libraries/robot/performance/performance_actions.robot @@ -187,6 +187,9 @@ | | ${transaction_scale} = | Get Transaction Scale | | ${transaction_type} = | Get Transaction Type | | ${use_latency} = | Get Use Latency +| | ${node_arch} = | Get Node Arch | ${nodes[u'DUT1']} +| | ${profile} = | Set Variable If | "${node_arch}" == "aarch64" +| | ... | perf_stat_runtime_arm.yaml | perf_stat_runtime.yaml | | Send traffic on tg | | ... | duration=${-1} | | ... | rate=${runtime_rate} @@ -203,7 +206,7 @@ | | ... | ramp_up_duration=${ramp_up_duration} | | ... | ramp_up_rate=${ramp_up_rate} | | Run Telemetry On All DUTs -| | ... | ${nodes} | profile=perf_stat_runtime.yaml +| | ... | ${nodes} | profile=${profile} | | ... | rate=${telemetry_rate} | export=${False} | | Stop traffic on tg |