[PATCH] D43278: Add Xray instrumentation support to FreeBSD

Kamil Rytarowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 14 09:43:23 PST 2018


krytarowski added inline comments.


================
Comment at: lib/xray/xray_utils.cc:101
+#else
+  tid = reinterpret_cast<uint64_t>(pthread_self());
+#endif
----------------
Shouldn't this be something like:

```
long lwpid;
thr_self(&lwpid);
```

with a FreeBSD specific include `<sys/thr.h>`?


https://reviews.llvm.org/D43278





More information about the llvm-commits mailing list