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

kernel output with all fails to generate the output profile #35

Open
rNoz opened this issue Mar 10, 2020 · 1 comment
Open

kernel output with all fails to generate the output profile #35

rNoz opened this issue Mar 10, 2020 · 1 comment

Comments

@rNoz
Copy link

rNoz commented Mar 10, 2020

I don't know if this is the expected behavior, but in Windows, when running -k all, it fails: Failed to generate profile result.

I need to write -k cl or leave that option empty to be able to generate the profile data.

Since it fails, CodeXL has also this bug because it executes rcprof-x64.exe with that option forced.

@rNoz
Copy link
Author

rNoz commented Mar 11, 2020

Some background for those that need to run CodeXL but it fails:

To get the parameters that the CodeXL is executing, I used ProcMon from Windows (Sysinternals Suite). It was a bit tricky, but I found the "Process Create", monitoring both "CodeXL" and "conhost" when I launched the Perf Counters. Then, I did manual tests with that specific arguments and rcprof-x64, finding that the error was the -k all.

Then, temporarily, to bypass this bug with -k all, I created a script (e.g. python, then converted to rcprof-x64.exe) that parses the arguments and removes the -k all. Then, it launches a subprocess, calling the original rcprof-x64.exe (eg. renamed to rcprof-x64.real.exe). Although it is a bit slower, it can work directly from CodeXL.

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

1 participant