search for: __tsan_init

Displaying 2 results from an estimated 2 matches for "__tsan_init".

Did you mean: __asan_init
2017 Jun 27
2
Using TSAN along with custom llvm IR pass
...code file with -fsanitize=thread and -emit-llvm to get the > byte code of the file > 2. Used opt to run my custom pass on the TSAN instrumented .bc file > 3. Run the final .bc file using lli with proper inputs > > This gives me a "LLVM ERROR: Program used external function '__tsan_init' > which could not be resolved!" > > > I tried to instrument TSAN on a later step, as follows: > 1. Used -emit-llvm to get the .bc file > 2. Used opt to run my custom pass on the .bc file > 3. Used llc to compile the program to native assembly > 4. Used gcc/clang al...
2017 Jun 28
1
Using TSAN along with custom llvm IR pass
...itize=thread and -emit-llvm to get the >> byte code of the file >> 2. Used opt to run my custom pass on the TSAN instrumented .bc file >> 3. Run the final .bc file using lli with proper inputs >> >> This gives me a "LLVM ERROR: Program used external function '__tsan_init' >> which could not be resolved!" Hi, I don't know what is lli, but from the error message it seems that the problem is that you don't link in tsan runtime (tsan runtime provides __tsan_init function). I think you need to compile you instrumented file into object file firs...