tracemem
Action
void tracemem(address, size_t nbytes) void tracemem(address, size_t nbytes, size_t dbytes)
The tracemem
action takes a D expression as its first argument, address, and a constant as its second argument, nbytes. tracemem
copies the memory from the address specified by address into the directed buffer for the length specified by nbytes. If only two arguments are provided, dtrace
will dump the entire contents of the buffer.
In the second format, the tracemem
action takes an additional third argument, dbytes
, which is a D expression that is computed dynamically; the result is used to limit the number of bytes that are displayed to the user. If the result is less than zero or greater than nbytes
, the result is ignored and tracemem
will behave as though it is called using the two argument form. Otherwise, dtrace
will dump only dbytes
bytes of the directed buffer.