aws / aws/repro-collection

Passing invalid perf arguments

Open
#2 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Description

I'm trying to run repro-mysql-EEVDF-regression, and I'm running into a slight issue.
To try to be as close to your report, I'm running this on Ubuntu 22.04
```
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.5 LTS"
```

The version of perf that gets created against a 6.5 kernel doesn't support the --output argument that you're relying on as part of your test
```
$ which perf
/usr/local/bin/perf
$ uname -r
6.5.0-2dde18cd1d8f
$ perf --version
perf version 6.5.g2dde18cd1d8f
$ sudo perf sched stats record --help

Usage: perf sched [] {record|latency|map|replay|script|timehist}

-D, --dump-raw-trace dump raw trace in ASCII
-f, --force don't complain, do it
-i, --input input file name
-v, --verbose be more verbose (show symbol address, etc)
```

This causes the test to hang on the SUT as the expected file isn't created:
```
[20250520.201633] [DEBUG] Running command: sudo perf sched stats record --output=perf-k6.5.0-default.data -- sleep 600
[20250520.201633] [WARN]
[20250520.201633] [WARN] Usage: perf sched [] {record|latency|map|replay|script|timehist}
[20250520.201633] [WARN]
[20250520.201633] [WARN] -D, --dump-raw-trace dump raw trace in ASCII
[20250520.201633] [WARN] -f, --force don't complain, do it
[20250520.201633] [WARN] -i, --input input file name
[20250520.201633] [WARN] -v, --verbose be more verbose (show symbol address, etc)
[20250520.201633] [WARN]
[20250520.201633] [ERROR] Command returned 129
[20250520.201633] [DEBUG] Running command: sudo bash -c 'echo 0 >/proc/sys/kernel/sched_schedstats'
[20250520.201633] [INFO] Command returned 0
[20250520.201633] [WARN] chown: cannot access 'perf-k6.5.0-default.data': No such file or directory
[20250520.201633] [WARN]
[20250520.201633] [DEBUG] Running command: sed -n "/CPU 0/q;p" "perf-${label}.report"
[20250520.201633] [WARN] Usage: perf sched [] {record|latency|map|replay|script|timehist}
[20250520.201633] [WARN]
[20250520.201633] [WARN] -D, --dump-raw-trace dump raw trace in ASCII
[20250520.201633] [INFO] Command returned 0
[20250520.201633] [WARN] -f, --force don't complain, do it
[20250520.201633] [WARN] -i, --input input file name
[20250520.201633] [WARN] -v, --verbose be more verbose (show symbol address, etc)
[20250520.201633] [WARN]
```

Contributor guide

Open the contributing guide

Research direction

Locate repro-mysql-EEVDF-regression and trace where it runs `sudo perf sched stats record`; compare that invocation with the `perf` help output shown for the 6.5 kernel. Confirm the expected perf data file is created and the test no longer hangs when the command is unsupported.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, shell, ubuntu
Domain
performance, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.