cadets / freebsd-old

FreeBSD src tree http://www.FreeBSD.org/
Other
12 stars 7 forks source link

Automatically detect host/guest in `dtraced` #130

Closed dstolfa closed 2 years ago

dstolfa commented 2 years ago

Instead of having to specify -O or -m every time in dtraced, we can automatically detect which mode we are running as in the current way HyperTrace operates. On the host, we want implicit overlord mode, while on the guest we want implicit minion mode. -O and -m can be used to override it, as one might want to run dtraced in a nested virtualization environment for debugging purposes.