[CI] Fix code coverage and thread sanitizer workflows (#378)

* Fix code coverage workflow

* Relocate rocprofv3 conversion test script + rename tests

- these are rocprofv3 tests and were not properly located and not properly named

* Fix thread sanitizer

---------

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
此提交包含在:
Madsen, Jonathan
2025-04-28 10:19:04 -05:00
提交者 GitHub
父節點 032c06db9a
當前提交 4f03ebc360
共有 9 個檔案被更改,包括 21 行新增10 行删除
+11
查看文件
@@ -25,6 +25,14 @@
#define ROCPROFV3_PUBLIC_API __attribute__((visibility("default")));
#define ROCPROFV3_INTERNAL_API __attribute__((visibility("internal")));
#if defined(__has_feature)
# if __has_feature(thread_sanitizer)
# define ROCPROFV3_THREAD_SANITIZER 1
# endif
#elif defined(__SANITIZE_THREAD__)
# define ROCPROFV3_THREAD_SANITIZER 1
#endif
#include <dlfcn.h>
#include <signal.h>
#include <stdbool.h>
@@ -65,10 +73,13 @@ __libc_start_main(int (*)(int, char**, char**),
sighandler_t
signal(int signum, sighandler_t handler) ROCPROFV3_PUBLIC_API;
#if !defined(ROCPROFV3_THREAD_SANITIZER)
// breaks thread sanitizer
int
sigaction(int signum,
const struct sigaction* restrict act,
struct sigaction* restrict oldact) ROCPROFV3_PUBLIC_API;
#endif
extern void
rocprofv3_set_main(main_func_t main_func) ROCPROFV3_INTERNAL_API;