[prev in list] [next in list] [prev in thread] [next in thread]
List: opensolaris-dtrace-discuss
Subject: Re: [dtrace-discuss] Can't print stack traces if printa has a
From: Ryan Johnson <ryanjohn () ece ! cmu ! edu>
Date: 2009-07-13 17:00:10
Message-ID: 4A5B681A.2000301 () ece ! cmu ! edu
[Download RAW message or body]
Ryan Johnson wrote:
> Is there a way to print stack traces as part of an aggregation key in
> dtrace? I'm trying to count occurrences of different stack traces, but
> my program has lots of indirect function calls and the output of
> stack() often doesn't contain the current function. Aggregating on
> @who[caller,stack()] should fix this in theory, but I can't get the
> printing to work right.
Ah! Turns out this question was already asked in 2005, and the answer is
"%k"
> On a related note, it seems that "%A" can translate user-level
> addresses to symbols in a printf/printa, which is not documented
> AFAICT and has caused me pain in the past (see
> http://kr.sun.com/developers/solaris/techdocs/dtrace_tips_public.pdf)
I've updated the printf/printa wiki page to mention both %A and %k.
Ryan
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic