Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DTrace and C++ function



You can't use a colon in a name, but you can use a regular expression. You can also add a string compare as one of the constraints on pthe probe firing (in the /<predicate>/).

-- Terry

On Dec 21, 2007, at 7:14 AM, Dmitry Markman wrote:
Hi, is it possible to trace C++ function?

I was able to create prob for c++ function
::foo_cpp
that was called from c function foo_c

I created 2 probs one for foo_c and another for ::foo_cpp

but I was able to see events only for foo_c prob
(and I can see ::foo_cpp in stack)
and none for ::foo_cpp prob
I think it's wrong, because
foo_c is called ONLY from ::foo_cpp

Dmitry Markman

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >DTrace and C++ function (From: Dmitry Markman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.