Bryan Cantrill
2011-07-12 06:33:15 UTC
All,
With my apologies for having been somewhat on a tear through old
DTrace RFEs, another that has been annoying as of late is that
tracemem() does not take a dynamic size. Of course, EPIDs must
correspond to a static size, so the fix is not to make the size
entirely dynamic, but rather to add an optional third argument to
tracemem() that is a D expression that captures the dynamic size --
provided that it is no greater than the static size (still) provided
as the second argument. A patch that implements this is attached for
your review and consideration; as with our other work, this will be
showing up at http://github.com/joyent/illumos-joyent in the near
future (our ticket for this is OS-481, "DTrace tracemem() action
should take a dynamic size argument"). Note the fix for another
long-standing falls out of this: if you tracemem() something that is
a string, it will show up as a proper hex dump instead of being
interpreted as a string. Please let me know if you have any questions
or comments!
Thanks,
Bryan
With my apologies for having been somewhat on a tear through old
DTrace RFEs, another that has been annoying as of late is that
tracemem() does not take a dynamic size. Of course, EPIDs must
correspond to a static size, so the fix is not to make the size
entirely dynamic, but rather to add an optional third argument to
tracemem() that is a D expression that captures the dynamic size --
provided that it is no greater than the static size (still) provided
as the second argument. A patch that implements this is attached for
your review and consideration; as with our other work, this will be
showing up at http://github.com/joyent/illumos-joyent in the near
future (our ticket for this is OS-481, "DTrace tracemem() action
should take a dynamic size argument"). Note the fix for another
long-standing falls out of this: if you tracemem() something that is
a string, it will show up as a proper hex dump instead of being
interpreted as a string. Please let me know if you have any questions
or comments!
Thanks,
Bryan