-
Notifications
You must be signed in to change notification settings - Fork 82
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
Add Error String to Call Logging Exit #25
Comments
@trbauer I have a prototype of this in a branch, here: https://github.com/bashbaug/opencl-intercept-layer/tree/call_logging_error_status Some example output is:
and:
I'm still not sure if I prefer "created" or "returned" for the APIs that create something. I originally had e.g. "returned CL_SUCCESS" and didn't like the double return for the creation APIs so I switched to a different verb, but after switching to the arrow "->" syntax I think I could switch it back now. Let me know if you have a preference one way or the other. It's relatively easy to switch to a different syntax now that the plumbing is in place. |
I don't have a strong position on this at the moment. In the other issue (syntactic consistency), I suggested the symbol " => ". I was a bit torn on "returned " 100% vs "created" for APIs that are allocating things (introducing names into the stream). I could go either way. If ERROR_LOGGING implies CALL_LOGGING we could retire that feature since it's sort of redundant. Maybe keep it but move it out of the core set of controls (have an extended set for deprecated or obscure things). |
Observed Behavior
CallLogging currently doesn't log any error information. If ErrorLogging is enabled, it will log when an error occurs, but on a separate line:
Desired Behavior
Consider logging the error information as part of CallLogging when the function exist. Something like:
It could be useful to print the error information even if there were no errors, for example:
Steps to Reproduce
Set CallLogging and ErrorLogging and run a program that generates an error.
The text was updated successfully, but these errors were encountered: