Skip to content

Commit 19522b3

Browse files
Use tid argument vs drhook_oml_get_thread_num()
1 parent 652ca48 commit 19522b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fiat/drhook/drhook.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2938,7 +2938,7 @@ getkey(int tid, const char *name, int name_len,
29382938
}
29392939
#if defined(DR_HOOK_HAVE_NVTX)
29402940
// Helps filter out wrapper calls that may be noise
2941-
if (opt_nvtx && drhook_oml_get_thread_num() == 1){
2941+
if (opt_nvtx && tid == 1){
29422942
if (keyptr->calls > opt_nvtx_SCC && keyptr->delta_wall_all < opt_nvtx_SWT) {
29432943
if (!opt_silent)
29442944
fprintf(stderr,"DRHOOK:NVTX: Skipping opening of region %s\n", keyptr->name);

0 commit comments

Comments
 (0)