Darren Reed
2005-Oct-28 07:04 UTC
[dtrace-discuss] dtrace and printing cookies in the kernel
There are some cookie values in the kernel for which it would be nice to be able to get a meaningful name about - for example zoneid''s. I''d like to be able to convert a zoneid into a zone name for output with dtrace scripts. Is this possible? If not, who should own this RFE? and/or should it be part of a larger RFE to enable dtrace to print out meaningful names for other cookies passed around inside the kernel? I''m sure there are other magical cookie id''s that would be useful to have a friendly string representation for printing out with dtrace :) This message posted from opensolaris.org
Alan Hargreaves
2005-Oct-28 08:11 UTC
[dtrace-discuss] dtrace and printing cookies in the kernel
Darren Reed wrote:> There are some cookie values in the kernel for which it would be nice to be able to get a meaningful name about - for example zoneid''s. > > I''d like to be able to convert a zoneid into a zone name for output with dtrace scripts. > > Is this possible? > > If not, who should own this RFE? > > and/or should it be part of a larger RFE to enable dtrace to print out meaningful names for other cookies passed around inside the kernel? > > I''m sure there are other magical cookie id''s that would be useful to have a friendly string representation for printing out with dtrace :) > This message posted from opensolaris.org > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.orgInteresting that you should mention that. One of the things that we discussed with bmc while he was out was printing out stuff like signal names, errno names and various other things. Such a suggestion may end up in his current wad as well if you ask him nicely ;) alan. -- Alan Hargreaves - http://blogs.sun.com/tpenta Staff Engineer (Kernel/VOSJEC/Performance) Product Technical Support (APAC) Sun Microsystems
Jonathan Adams
2005-Oct-28 15:41 UTC
[dtrace-discuss] dtrace and printing cookies in the kernel
On Fri, Oct 28, 2005 at 12:04:41AM -0700, Darren Reed wrote:> There are some cookie values in the kernel for which it would be nice to be able to get a meaningful name about - for example zoneid''s. > > I''d like to be able to convert a zoneid into a zone name for output > with dtrace scripts.Uh, there is the "zonename" variable: # dtrace -n ''BEGIN{trace(zonename)}'' dtrace: description ''BEGIN'' matched 1 probe CPU ID FUNCTION:NAME 0 1 :BEGIN global ^C But for things like args[0]->pr_zoneid, there''s no good way. File an RFE (kernel/dtrace or library/libdtrace). Cheers, - jonathan -- Jonathan Adams, Solaris Kernel Development