Get kernel name from CUFunction

So I have a function that returns the kernel as CUFunction entity, how can get the name of the kernel from this entity?

There is no CUDA API to query the kernel name from the CUfunction pointer.

On a related note, CUPTI callback APIs can be used to query the kernel name from the launch callback. Field ‘symbolName’ of the struct CUpti_CallbackData contains the kernel name. CUPTI sample callback_timestamp can be referred.