A set of six patches were published for Mesa on Friday that allow for profiling support with Gallium3D's "Clover" state tracker for OpenCL support.
The Clover profiling support patches were done by Niels Ole Salscheider and implement clGetEventProfilingInfo() with the other necessary changes to this Gallium3D compute state tracker. There's also related changes to the AMD "RadeonSI" Gallium3D hardware driver that are part of this patch set.
Per the Khronos.org registry
, clGetEventProfilingInfo is to return profiling information for the command associated with the event when profiling is enabled.
The current OpenCL/Clover profiling patches can be found on the Mesa-dev list