dtracing static symbols
Daniel O'Connor
doconnor at gsoft.com.au
Wed Mar 12 12:28:55 UTC 2014
On 12 Mar 2014, at 15:26, Mark Johnston <markj at freebsd.org> wrote:
> On Wed, Mar 12, 2014 at 12:53 AM, Daniel O'Connor <doconnor at gsoft.com.au> wrote:
>>
>> On 12 Mar 2014, at 15:22, Mark Johnston <markj at freebsd.org> wrote:
>>> On Wed, Mar 12, 2014 at 12:50 AM, Daniel O'Connor <doconnor at gsoft.com.au> wrote:
>>>>
>>>> On 12 Mar 2014, at 15:15, Prashanth Kumar <pra_udupi at yahoo.co.in> wrote:
>>>>> If you run
>>>>> # env DTRACE_DEBUG=1 dtrace -Ppid\$target -l -c ./static
>>>>> you will notice that lot of probe creation will fail, also no probes are created for instruction offsets.
>>>>> you will have to update the libproc library and fasttrap code to trace all the
>>>>> functions.
>>>>
>>>> I don't really care about the function offsets, just static functions.
>>>>
>>>> Or are you suggesting updating libproc and the fasttrap code will allow that (as well as instruction offsets)?
>>>
>>> I'd suggest updating to 9-STABLE. There have been quite a few fixes to
>>> fasttrap and libproc since 9.2.
>>
>> OK, I'll give it a try.
>>
>> Have things change substantially in 10? Updating to that is probably going to be as easy (famous last words :)
>
> No, STABLE-9 and STABLE-10 should be more or less identical as far as
> userland DTrace is concerned. There are some extra changes on CURRENT,
> but I don't think they'd affect the behaviour you're seeing.
OK, I upgraded to r263061 and I can now see static variables, thanks!
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-dtrace/attachments/20140312/3138b54c/attachment.sig>
More information about the freebsd-dtrace
mailing list