HomeFreeBSD

Add "jid" and "jailname" variables to DTrace.

Description

Add "jid" and "jailname" variables to DTrace.

These return the jail ID and jail name for the traced process,
respectively, and are analogous to "zonename" on Solaris/illumos.
"zonename" is now aliased to "jailname".

Also add some stress tests for the new variables.

Submitted by: Domagoj Stolfa <domagoj.stolfa@gmail.com>
Reviewed by: dteske (previous version)
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D13877

Details

Committed
markjJan 12 2018, 7:59 PM
Reviewer
dteske
Differential Revision
D13877: DTrace: Add jailname/jid builtins
Parents
rS327887: Hit Subversion over the head with a big cluestick.
Branches
Unknown
Tags
Unknown