From 8baea19df70eb7ade2dee5a039a53b47b693594c Mon Sep 17 00:00:00 2001 From: "Elwazir, Ammar" Date: Mon, 21 Apr 2025 10:22:50 -0500 Subject: [PATCH] Older Glibc doesn't have `gettid` (#349) * Older Glibc doesn't have gettid * Format fix * Using internal common get_tid --------- Co-authored-by: Ammar ELWazir --- source/lib/rocprofiler-sdk-tool/tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/rocprofiler-sdk-tool/tool.cpp b/source/lib/rocprofiler-sdk-tool/tool.cpp index bfed62fd2f..b4645ae0d0 100644 --- a/source/lib/rocprofiler-sdk-tool/tool.cpp +++ b/source/lib/rocprofiler-sdk-tool/tool.cpp @@ -2670,7 +2670,7 @@ rocprofv3_set_main(main_func_t main_func) ROCP_INFO << fmt::format("[PPID={}][PID={}][TID={}][rocprofv3] {}" MSG, \ getppid(), \ getpid(), \ - gettid(), \ + rocprofiler::common::get_tid(), \ __FUNCTION__, \ __VA_ARGS__); \ }