@@ -409,7 +409,8 @@ enum hip_api_id_t {
409409 HIP_API_ID_hipTexRefGetArray = 389,
410410 HIP_API_ID_hipTexRefGetBorderColor = 390,
411411 HIP_API_ID_hipStreamBeginCaptureToGraph = 391,
412- HIP_API_ID_LAST = 391,
412+ HIP_API_ID_hipGetFuncBySymbol = 392,
413+ HIP_API_ID_LAST = 392,
413414
414415 HIP_API_ID_hipChooseDevice = HIP_API_ID_CONCAT(HIP_API_ID_,hipChooseDevice),
415416 HIP_API_ID_hipGetDeviceProperties = HIP_API_ID_CONCAT(HIP_API_ID_,hipGetDeviceProperties),
@@ -563,6 +564,7 @@ static inline const char* hip_api_name(const uint32_t id) {
563564 case HIP_API_ID_hipGetDevicePropertiesR0000: return "hipGetDevicePropertiesR0000";
564565 case HIP_API_ID_hipGetDevicePropertiesR0600: return "hipGetDevicePropertiesR0600";
565566 case HIP_API_ID_hipGetErrorString: return "hipGetErrorString";
567+ case HIP_API_ID_hipGetFuncBySymbol: return "hipGetFuncBySymbol";
566568 case HIP_API_ID_hipGetLastError: return "hipGetLastError";
567569 case HIP_API_ID_hipGetMipmappedArrayLevel: return "hipGetMipmappedArrayLevel";
568570 case HIP_API_ID_hipGetProcAddress: return "hipGetProcAddress";
@@ -957,6 +959,7 @@ static inline uint32_t hipApiIdByName(const char* name) {
957959 if (strcmp("hipGetDevicePropertiesR0000", name) == 0) return HIP_API_ID_hipGetDevicePropertiesR0000;
958960 if (strcmp("hipGetDevicePropertiesR0600", name) == 0) return HIP_API_ID_hipGetDevicePropertiesR0600;
959961 if (strcmp("hipGetErrorString", name) == 0) return HIP_API_ID_hipGetErrorString;
962+ if (strcmp("hipGetFuncBySymbol", name) == 0) return HIP_API_ID_hipGetFuncBySymbol;
960963 if (strcmp("hipGetLastError", name) == 0) return HIP_API_ID_hipGetLastError;
961964 if (strcmp("hipGetMipmappedArrayLevel", name) == 0) return HIP_API_ID_hipGetMipmappedArrayLevel;
962965 if (strcmp("hipGetProcAddress", name) == 0) return HIP_API_ID_hipGetProcAddress;
@@ -1786,6 +1789,11 @@ typedef struct hip_api_data_s {
17861789 hipDeviceProp_tR0600 prop__val;
17871790 int deviceId;
17881791 } hipGetDevicePropertiesR0600;
1792+ struct {
1793+ hipFunction_t* functionPtr;
1794+ hipFunction_t functionPtr__val;
1795+ const void* symbolPtr;
1796+ } hipGetFuncBySymbol;
17891797 struct {
17901798 hipArray_t* levelArray;
17911799 hipArray_t levelArray__val;
@@ -4093,6 +4101,11 @@ typedef struct hip_api_data_s {
40934101// hipGetErrorString[]
40944102#define INIT_hipGetErrorString_CB_ARGS_DATA(cb_data) { \
40954103};
4104+ // hipGetFuncBySymbol[('hipFunction_t*', 'functionPtr'), ('const void*', 'symbolPtr')]
4105+ #define INIT_hipGetFuncBySymbol_CB_ARGS_DATA(cb_data) { \
4106+ cb_data.args.hipGetFuncBySymbol.functionPtr = (hipFunction_t*)functionPtr; \
4107+ cb_data.args.hipGetFuncBySymbol.symbolPtr = (const void*)symbolPtr; \
4108+ };
40964109// hipGetLastError[]
40974110#define INIT_hipGetLastError_CB_ARGS_DATA(cb_data) { \
40984111};
@@ -6344,6 +6357,10 @@ static inline void hipApiArgsInit(hip_api_id_t id, hip_api_data_t* data) {
63446357// hipGetErrorString[]
63456358 case HIP_API_ID_hipGetErrorString:
63466359 break;
6360+ // hipGetFuncBySymbol[('hipFunction_t*', 'functionPtr'), ('const void*', 'symbolPtr')]
6361+ case HIP_API_ID_hipGetFuncBySymbol:
6362+ if (data->args.hipGetFuncBySymbol.functionPtr) data->args.hipGetFuncBySymbol.functionPtr__val = *(data->args.hipGetFuncBySymbol.functionPtr);
6363+ break;
63476364// hipGetLastError[]
63486365 case HIP_API_ID_hipGetLastError:
63496366 break;
@@ -8225,6 +8242,13 @@ static inline const char* hipApiString(hip_api_id_t id, const hip_api_data_t* da
82258242 oss << "hipGetErrorString(";
82268243 oss << ")";
82278244 break;
8245+ case HIP_API_ID_hipGetFuncBySymbol:
8246+ oss << "hipGetFuncBySymbol(";
8247+ if (data->args.hipGetFuncBySymbol.functionPtr == NULL) oss << "functionPtr=NULL";
8248+ else { oss << "functionPtr="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGetFuncBySymbol.functionPtr__val); }
8249+ oss << ", symbolPtr="; roctracer::hip_support::detail::operator<<(oss, data->args.hipGetFuncBySymbol.symbolPtr);
8250+ oss << ")";
8251+ break;
82288252 case HIP_API_ID_hipGetLastError:
82298253 oss << "hipGetLastError(";
82308254 oss << ")";
0 commit comments