-
Notifications
You must be signed in to change notification settings - Fork 246
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
WIP: Try to get the pthreads idle example running under docker #401
base: main
Are you sure you want to change the base?
Conversation
I'm trying to build the To do so, in the Here's what the output looks like at the moment:
The problem line seems to be the following:
I have no idea what's causing this, and I'm not sure how to diagnose further. |
Hi @jlfwong! Found this issue by chance while checking out speed scope and I think this might be happening due to the way the You can see this by running:
which is the output of Added a possible way of sorting this out inline |
sample/programs/cpp/perf-script.sh
Outdated
@@ -14,6 +14,14 @@ if [[ "$1" == "forks" ]]; then | |||
exit 0 | |||
fi | |||
|
|||
if [[ "$1" == "idle" ]]; then | |||
perf record -a -F 999 -g ./idle > perf.data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perf record -a -F 999 -g ./idle > perf.data | |
perf record -a -F 999 -g --output=perf.data ./idle |
The same applies below and above. These commands aren't printing anything yet, but perhaps it would be worth adding this flag instead as if in the future they print something, perf script
and related tooling will break and it will be a bit confusing 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I needed to do something very slightly fancier here, because the stdout of perf-script.sh
is used directly to generate the output files in the Makefile
, but this --output
switch was still a helpful key
@javierhonduco Ahhh thanks for the catch! I now have it generating a valid profile. Thank you! |
Working towards fixing #393