Skip to content

Conversation

@afernandez90
Copy link

Redirecting stderr to stdout causes perf errors to be redirected to awk as normal stdin input. Then, awk silently discards them. This makes it hard to troubleshoot issues like unavailable counters or system configuration.

I had to remove '2>&1' manually from all scripts to troubleshoot silent termination with no errors. Turns out one metric was not available for my system and that causes 'perf stat' to terminate immediately. I think there's no reason to silence errors. When the script works fine, there's no error output and it works equally well.

@baonq-me
Copy link

baonq-me commented Aug 6, 2024

Great PRs. I found the error by removing this

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.

2 participants