Arun
2006-Dec-14 05:04 UTC
[dtrace-discuss] How to use DTrace to find out List of modules accessed by an application
HI, I need to develop an application that finds out the number of modules accessed by an application, or the number of applications accessing a module usin DTrace. I request help in regard to this... thanks and regards, Arun DK This message posted from opensolaris.org
Rayson Ho
2006-Dec-14 05:09 UTC
[dtrace-discuss] How to use DTrace to find out List of modules accessed by an application
By "modules", you mean dynamic libraries or kernel modules?? Rayson On 12/14/06, Arun <dkarun at gmail.com> wrote:> HI, > I need to develop an application that finds out the number of modules accessed by an application, or the number of applications accessing a module usin DTrace. > I request help in regard to this... > > thanks and regards, > Arun DK > > > This message posted from opensolaris.org > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org >
Adam Leventhal
2006-Dec-14 05:13 UTC
[dtrace-discuss] How to use DTrace to find out List of modules accessed by an application
Let me see if I understand correctly: you''d like to be able to tell what shared objects a process is actively using (rather than those to which it''s linked), _and_ you''d like to see what processes are actively calling functions in a given shared object (and not just which applications link to it). Is that right? Adam On Wed, Dec 13, 2006 at 09:04:40PM -0800, Arun wrote:> HI, > I need to develop an application that finds out the number of modules accessed by an application, or the number of applications accessing a module usin DTrace. > I request help in regard to this... > > thanks and regards, > Arun DK > > > This message posted from opensolaris.org > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl
Arun
2006-Dec-14 05:22 UTC
[dtrace-discuss] Re: How to use DTrace to find out List of modules
Exactly, take an example as a Perl Module, so the need is to find out the applications accessing a particular perl module, and the Perl modules accessed by a particular application... This message posted from opensolaris.org
Arun
2006-Dec-14 05:22 UTC
[dtrace-discuss] Re: How to use DTrace to find out List of modules
I meant shared modules... This message posted from opensolaris.org
Adam Leventhal
2006-Dec-14 05:56 UTC
[dtrace-discuss] Re: How to use DTrace to find out List of modules
Do you actually need to know what processes are making calls to functions in the shared object or would it be sufficient to know which processes had the shared object open in their address spaces? Adam On Wed, Dec 13, 2006 at 09:22:07PM -0800, Arun wrote:> Exactly, take an example as a Perl Module, so the need is to find out the applications accessing a particular perl module, and the Perl modules accessed by a particular application... > > > This message posted from opensolaris.org > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl
Arun
2006-Dec-14 06:33 UTC
[dtrace-discuss] Re: Re: How to use DTrace to find out List of modules
I need to know what processes are making calls to functions in the shared object... This message posted from opensolaris.org
Adam Leventhal
2006-Dec-14 06:38 UTC
[dtrace-discuss] Re: Re: How to use DTrace to find out List of modules
At present, DTrace can help you figure out the modules that a process is using: # dtrace -n ''pid123:::entry{ @[probemod] = count(); }'' But I can''t think of a simple way to tell what processes are using a give shared object using DTrace. I''d probably put something together that uses /proc/<pid>/pagedata (see proc(4)). It wouldn''t be impossible to extend DTrace to solve this. Would you use this information for some larger purpose or is this the actual question you''re trying to answer? Adam On Wed, Dec 13, 2006 at 10:33:29PM -0800, Arun wrote:> I need to know what processes are making calls to functions > in the shared object... > > > This message posted from opensolaris.org > _______________________________________________ > dtrace-discuss mailing list > dtrace-discuss at opensolaris.org-- Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl
Arun
2006-Dec-14 06:47 UTC
[dtrace-discuss] Re: Re: Re: How to use DTrace to find out List of
Yes I wanted this question tp be answered, will explore on the second one ( processes using a module) and come back for help.. Thanks a lot for the help extended... This message posted from opensolaris.org