Skip to content

perf/perf_sdt_probe: enhance test to run all sdt events#2934

Merged
Naresh-ibm merged 1 commit intoavocado-framework-tests:masterfrom
disgoel:perf-sdt-probe
May 22, 2025
Merged

perf/perf_sdt_probe: enhance test to run all sdt events#2934
Naresh-ibm merged 1 commit intoavocado-framework-tests:masterfrom
disgoel:perf-sdt-probe

Conversation

@disgoel
Copy link
Contributor

@disgoel disgoel commented Feb 25, 2025

This patch adds logic to test all the SDT events present and later removes them.
Also increase the sleep time to avoid failure in cases where perf list is not updated after adding probe.

# avocado run perf_sdt_probe.py
JOB ID     : 4dc31fdc2089b8cad5dda2de1650e181251a571a
JOB LOG    : /home/avocado-fvt-wrapper/results/job-2025-02-25T13.52-4dc31fd/job.log
 (1/1) perf_sdt_probe.py:PerfSDT.test: STARTED
 (1/1) perf_sdt_probe.py:PerfSDT.test: PASS (247.02 s)
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

debug.log


def run_cmd(self, cmd):
if process.system(cmd, ignore_status=True, sudo=True, shell=True):
if process.system(cmd, sudo=True, shell=True):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason to ignore_status=True to removig this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If any perf sdt event fails, the test should fail. If we add ignore_status=True it will ignore the failure.

@Naresh-ibm Naresh-ibm self-assigned this Mar 16, 2025
This patch adds logic to test all the SDT events present and
later removes them. Also increase the sleep time to avoid
failure in cases where perf list is not updated after adding probe.

Signed-off-by: Disha Goel <disgoel@linux.ibm.com>
@disgoel disgoel requested a review from Naresh-ibm May 22, 2025 12:29
Copy link
Collaborator

@Naresh-ibm Naresh-ibm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@disgoel Thanks for PR
LGTM

@Naresh-ibm Naresh-ibm merged commit 138f4ad into avocado-framework-tests:master May 22, 2025
6 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.

3 participants