Re: finding the full path of the program which ran.
- From: "Prasad" <prasadjoshi124@xxxxxxxxx>
- Date: 21 Dec 2006 23:05:18 -0800
Hi All,
Thanks a lot for giving reply.
Let me tell u why I need it...
We have an application on LINUX (developed by us), now we want to
generate the call graphs of it, the call graphs should be dynamic.
So, what I did is, used BFD library to open the executable and used
instrument-functions (functions called automatically whenever any
function is called). To these instrument functions a pointer to
function which will be called is passed). Using this pointer and bfd
library I could map the pointer to it's name. Along with it I am also
loging some other information like current time etc.
Now, BFD library need full path of the executable to open it. So, I
need that full path in my library. This library will just be used for
generating call graphs along with to log more information like time
taken by each funtion etc. So, this library will not be shipped to
customer.
Hence, I need to find the full path of the program to which my library
is linked.
Thanks and regards,
Prasad.
ellis@xxxxxxx wrote:
In article <1166719239.949245.70760@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Prasad <prasadjoshi124@xxxxxxxxx> wrote:
I m building a library which requires the full path of the program to
which it is linked. How could I do it?
If you really need that information, you're probably doing something
very wrong.
.
- References:
- Prev by Date: Re: If pipe excellent?
- Next by Date: can we change maximum transfer unit of the excisting ethernet card
- Previous by thread: Re: finding the full path of the program which ran.
- Next by thread: PCI device driver question
- Index(es):
Relevant Pages
|