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

Trace upload fails with 'inference error (CPU)' #13

Open
david-laight opened this issue Nov 19, 2019 · 2 comments
Open

Trace upload fails with 'inference error (CPU)' #13

david-laight opened this issue Nov 19, 2019 · 2 comments

Comments

@david-laight
Copy link

If I set the -buffer_size far too small for the -capture seconds timeout then the trace upload fails because the call to resolveConflict() in checkCPUs() (in sched_thread_inferrer.go) returns 'Fail'.

My suspicion is the problem happens because the trace files for the different cpus start at different times.

The reason I'm doing this is because I want to leave the trace running and stop it when the application sees an unexpected scheduling delay. This might take hours, but I only want the last 20ms of trace.

@ilhamster
Copy link
Collaborator

ilhamster commented Nov 19, 2019 via email

@david-laight
Copy link
Author

Thanks. I was reading trace.sh and realised it would be relatively easy to start/stop the trace from other software. Building the tar file is then a 'simple' matter of running a suitable script.

One question - do I need to flush out old trace before the 'echo 1 >trace_on' or can I just repeatedly turn the trace on and off and then collect the last buffer full?

Oh - trace.sh probably ought to output the 'started' trace before actually starting the trace.
If I trace for 30ms (plently for what I'm looking at) the trace is filled with the shell and xorg.

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

No branches or pull requests

2 participants