Strings in DTrace

In DTrace, strings are stored as fixed-length character arrays. You can use the dtrace_getopt() function to determine the string size. The strsize option specifies the value of the size.

Note:

In DTrace, a string is not necessarily a null terminated value. If one of the characters in the array is a NUL, the array can be treated as a C-style string. If the character array is not null terminated, the consumer must create a null terminated string.