| 2421 | } |
| 2422 | |
| 2423 | static void* CL_API_CALL EnqueueMapBuffer(cl_command_queue command_queue, cl_mem buffer, |
| 2424 | cl_bool blocking_map, cl_map_flags map_flags, |
| 2425 | size_t offset, size_t cb, cl_uint num_events_in_wait_list, |
| 2426 | const cl_event* event_wait_list, cl_event* event, |
| 2427 | cl_int* errcode_ret) { |
| 2428 | std::ostringstream ss; |
| 2429 | Rec r(&ss); |
| 2430 | |
| 2431 | ss << "clEnqueueMapBuffer(" << command_queue << ','; |
| 2432 | ss << buffer << ',' << getBoolString(blocking_map) << ','; |
| 2433 | ss << getMapFlagsString(map_flags) << ','; |
| 2434 | ss << offset << ',' << cb << ','; |
| 2435 | ss << num_events_in_wait_list << ','; |
| 2436 | ss << getHandlesString(event_wait_list, num_events_in_wait_list) << ','; |
| 2437 | |
| 2438 | addRec(&r); |
| 2439 | void* ret = original_dispatch.EnqueueMapBuffer(command_queue, buffer, blocking_map, map_flags, |
| 2440 | offset, cb, num_events_in_wait_list, |
| 2441 | event_wait_list, event, errcode_ret); |
| 2442 | delRec(&r); |
| 2443 | |
| 2444 | ss << getHexString(event) << ',' << getErrorString(errcode_ret); |
| 2445 | ss << ") = " << ret; |
| 2446 | ss << std::endl; |
| 2447 | std::cerr << ss.str(); |
| 2448 | return ret; |
| 2449 | } |
| 2450 | |
| 2451 | static void* CL_API_CALL EnqueueMapImage(cl_command_queue command_queue, cl_mem image, |
| 2452 | cl_bool blocking_map, cl_map_flags map_flags, |
nothing calls this directly
no test coverage detected