Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: add test to run json events #2773

Merged
merged 1 commit into from
May 20, 2024

Conversation

disgoel
Copy link
Contributor

@disgoel disgoel commented Mar 15, 2024

This patch adds a new test case to run all the perf pmu events. Also compares the event list and event code between perf command and json files from kernel source.

Result on RH8.x
avocado run --max-parallel-tasks=1 perf_json.py
JOB ID : afb342cdee4ec378bcd801445c82977563930073
JOB LOG : /home/avocado-fvt-wrapper/results/job-2024-03-15T03.09-afb342c/job.log
(1/2) perf_json.py:perf_json.test_pmu_events: STARTED
(1/2) perf_json.py:perf_json.test_pmu_events: PASS (2755.50 s)
(2/2) perf_json.py:perf_json.test_compare: STARTED
(2/2) perf_json.py:perf_json.test_compare: PASS (2738.79 s)
RESULTS : PASS 2 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /home/avocado-fvt-wrapper/results/job-2024-03-15T03.09-afb342c/results.html
JOB TIME : 5505.32 s

Result on S15 SPx
avocado run --max-parallel-tasks=1 perf_json.py
JOB ID : 72648f662566c1f901c2d477babe786c4344a07d
JOB LOG : /home/avocado-fvt-wrapper/results/job-2024-02-29T18.42-72648f6/job.log
(1/2) perf_json.py:perf_json.test_pmu_events: STARTED
(1/2) perf_json.py:perf_json.test_pmu_events: PASS (734.48 s)
(2/2) perf_json.py:perf_json.test_compare: STARTED
(2/2) perf_json.py:perf_json.test_compare: PASS (652.49 s)
RESULTS : PASS 2 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /home/avocado-fvt-wrapper/results/job-2024-02-29T18.42-72648f6/results.html
JOB TIME : 1556.65 s

json debug2.log
json debug1.log

@PraveenPenguin PraveenPenguin self-assigned this Mar 28, 2024
perf/perf_json.py Show resolved Hide resolved
@disgoel disgoel force-pushed the json branch 2 times, most recently from 622f7a9 to f2ffe7f Compare April 24, 2024 06:41
@disgoel
Copy link
Contributor Author

disgoel commented Apr 24, 2024

avocado run --max-parallel-tasks=1 perf_json.py -m perf_json.py.data/perf_json.yaml
Fetching asset from perf_json.py:perf_json.test_pmu_events
Fetching asset from perf_json.py:perf_json.test_compare
JOB ID     : 774a6d5c797027cc58debb9600c6f00a0de8e40c
JOB LOG    : /home/avocado-fvt-wrapper/results/job-2024-04-23T14.24-774a6d5/job.log
 (1/4) perf_json.py:perf_json.test_pmu_events;run-run_type-distro-8228: STARTED
 (1/4) perf_json.py:perf_json.test_pmu_events;run-run_type-distro-8228:  PASS (2778.61 s)
 (2/4) perf_json.py:perf_json.test_pmu_events;run-run_type-upstream-3987: STARTED
 (2/4) perf_json.py:perf_json.test_pmu_events;run-run_type-upstream-3987:  PASS (694.42 s)
 (3/4) perf_json.py:perf_json.test_compare;run-run_type-distro-8228: STARTED
 (3/4) perf_json.py:perf_json.test_compare;run-run_type-distro-8228:  PASS (2779.07 s)
 (4/4) perf_json.py:perf_json.test_compare;run-run_type-upstream-3987: STARTED
 (4/4) perf_json.py:perf_json.test_compare;run-run_type-upstream-3987:  PASS (695.99 s)
RESULTS    : PASS 4 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /home/avocado-fvt-wrapper/results/job-2024-04-23T14.24-774a6d5/results.html
JOB TIME   : 6972.54 s

@disgoel
Copy link
Contributor Author

disgoel commented Apr 25, 2024

@kjain101 @athira-rajeev can you please review

@abdhaleegit
Copy link
Collaborator

Is this good to merge ?

perf/perf_json.py Outdated Show resolved Hide resolved
perf/perf_json.py Outdated Show resolved Hide resolved
perf/perf_json.py Outdated Show resolved Hide resolved
perf/perf_json.py Outdated Show resolved Hide resolved
This patch adds a new test case to run all the perf pmu events.
Also compares the event list and event code between perf
command and json files from kernel source.
Also added upstream as a target so the test can be
run on a host booted with upstream kernel.

Signed-off-by: Disha Goel <[email protected]>
@kjain101
Copy link
Contributor

Looks fine to me.

@PraveenPenguin PraveenPenguin merged commit 8544571 into avocado-framework-tests:master May 20, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants