Repository navigation
Conversation
| if [ -n "$share_cpu" ]; then | ||
| n=1 | ||
| while [ "$n" -le "$SHARE_SESSIONS" ]; do | ||
| ( |
There was a problem hiding this comment.
This can pass without exercising concurrent event sharing. Each background job starts its own short workload immediately, and the verdict only checks that every CSV has a positive count, so a fast target can finish one session before the later sessions start and still report sharing PASS. Add a start gate or a shared long-running workload, then verify the sessions overlapped before accepting the counts.
There was a problem hiding this comment.
Fixed in 8012261. Sessions are held at a start gate until all are running, then each streams memory for --share-seconds (default 3). The test records start/end times and fails unless the latest start is before the earliest end.
There was a problem hiding this comment.
Verified against the current head, the start gate and timestamp check now require real session overlap before reporting the sharing PASS. No further action is needed on this thread.
| fi | ||
| ;; | ||
| 2|3) | ||
| test_result_record FAIL "$dev/$EVENT_NAME/ is exposed in sysfs but cannot be counted, see $out" |
There was a problem hiding this comment.
Perf failures leave the decisive error only in target-local CSV files, while the YAML publishes only the .res file. Replay the saved perf output with the existing log_file_with_label helper after preserving the command status, and apply the same pattern to the discovery perf-list failure and the L3D shared and grouped failures.
There was a problem hiding this comment.
Verified against the current head, the retained perf output is replayed before the affected discovery, per-PMU, shared-session and grouped failures are recorded. No further action is needed on this thread.
Add Runner/utils/lib_pmu.sh with helpers to discover armv8_pmuv3 PMU instances from sysfs and to run bounded, optionally CPU-pinned perf stat measurements. Add the PMU_Discovery suite that validates the perf type id, event format, named and architected events, CPU coverage and perf hardware event listing. Signed-off-by: Vamsee Narapareddi <vnarapar@qti.qualcomm.com>
Validate the armv8_pmuv3 l3d_cache_wb event: encoding, counting, concurrent event sharing across perf sessions and grouping with cycles. Signed-off-by: Vamsee Narapareddi <vnarapar@qti.qualcomm.com>
ad887e5 to
8012261
Compare
Summary
Adds the
PMU_L3D_Cache_WBsuite (PR 5 of 5 PMU validation PRs):run.sh, LAVA YAML and README underRunner/suites/Kernel/Baseport/PMU_L3D_Cache_WB.l3d_cache_wbencodes asevent=0x2c, counts on each PMU instance exposing it, counts in N concurrent perf sessions (event sharing), and groups withcycles. SKIPs when no PMU exposes the event.Merge order
Depends on #727 - merge #727 first. This suite uses
Runner/utils/lib_pmu.shintroduced there. This branch is based on #727, so until it merges the diff also shows its commit. Once #727 is merged, only this suite's commit remains. PRs 2-5 are independent of each other and can merge in any order after #727.Validation
-s sh -e SC1091,SC2230,SC3043): clean.sh -nsyntax check: clean. Git modes:run.sh100755, YAML and README 100644.