Commit be32540e authored by Brice Videau's avatar Brice Videau
Browse files

Don't profile unsuccessful enqueues.

parent 2c1a3fff
Pipeline #11615 canceled with stage
......@@ -1265,8 +1265,10 @@ register_extension_callbacks.call("clGetExtensionFunctionAddressForPlatform")
EOF
c.epilogues.push <<EOF
if (_event_profiling) {
int _set_retval = #{OPENCL_POINTER_NAMES[$clSetEventCallback]}(*event, CL_COMPLETE, event_notify, NULL);
do_tracepoint(lttng_ust_opencl_profiling, event_profiling, _set_retval, *event);
if (_retval == CL_SUCCESS) {
int _set_retval = #{OPENCL_POINTER_NAMES[$clSetEventCallback]}(*event, CL_COMPLETE, event_notify, NULL);
do_tracepoint(lttng_ust_opencl_profiling, event_profiling, _set_retval, *event);
}
if(_profile_release_event) {
#{OPENCL_POINTER_NAMES[$clReleaseEvent]}(*event);
event = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment