openresty/openresty-systemtap-toolkit

freebsd support

rkearsley opened this issue · 2 comments

Hi Yichun
Thought I'd try this on my lua code to find if I could improve anything as it's getting to be quite a few LOC now, but came to a stop pretty early as I'm using freebsd.

What are the obstacles with freebsd - would it be possible to run it with some work or is it just a no-go?

Thanks as always
Richard

Hello!

Systemtap is specific to Linux. So you will never run any of the tools in the Nginx Systemtap Toolkit on other operating systems (unless systemtap is ported to those systems, which is pretty unlikely).

Fortuantely FreeBSD has dtrace, which is similar to systemtap (so do Solaris and Mac OS X). Maybe we can start an nginx-dtrace-toolkit project at some point ;) Or will you contribute to this project?

Quite a few tools in nginx-systemtap-toolkit can be easily ported over to dtrace but some should be really tricky to port due to various limitations in dtrace (like lack of DWARF automatic inspection support in user land probing and lack of control flow statements like "if" and "for"/"while"). I think we can just start by porting those "easy" tools first :)

Best regards,
-agentzh

Hey
Sure, let's do it :)