Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dtrace support for FreeBSD #282

Open
dch opened this issue Nov 29, 2019 · 1 comment
Open

dtrace support for FreeBSD #282

dch opened this issue Nov 29, 2019 · 1 comment

Comments

@dch
Copy link

dch commented Nov 29, 2019

h2o relies on picotls for dtrace detection in a CMake macro
and #241 mentions a possible
object relinking step that might make this possible. Can you
suggest anything to help implement this for picotls & h2o
on FreeBSD?

@kazuho
Copy link
Member

kazuho commented Nov 29, 2019

Thank you for looking into the possibility.

IIRC, as stated on that issue, we need to pre-link the object files. MySQL used to do that (they recently dropped dtrace support, but...), and the code can be found at places like https://github.com/twitter-forks/mysql/blob/master/cmake/dtrace.cmake#L103-L119. I vaguely recall that it can be done slightly simpler, but anyways I think checking what MySQL does (did) would be a good starting point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants