|
From: Yutao Z. <yt...@gm...> - 2007-12-31 20:19:25
|
Can valgrind be specified to instrument (and monitor) only user code and ignore libraries? Is there a convenient way to identify all user-defined functions? Any information is greatly appreciated... Julie |
|
From: Nicholas N. <nj...@cs...> - 2007-12-31 23:51:56
|
On Mon, 31 Dec 2007, Yutao Zhong wrote: > Can valgrind be specified to instrument (and monitor) only user code and > ignore libraries? Not really. > Is there a convenient way to identify all user-defined functions? Well, you might be able to use debug info to look up code addresses and then look at the filename/directory. It depends on how general a mechanism you want -- if you're only looking at a single program it would be easy to identify the user-defined functions, but doing it more generally might be difficult. Nick |
|
From: Yutao Z. <yt...@gm...> - 2008-01-03 14:49:19
|
Thanks, that pretty much explains things. On 12/31/07, Nicholas Nethercote <nj...@cs...> wrote: > > On Mon, 31 Dec 2007, Yutao Zhong wrote: > > > Can valgrind be specified to instrument (and monitor) only user code and > > ignore libraries? > > Not really. > > > Is there a convenient way to identify all user-defined functions? > > Well, you might be able to use debug info to look up code addresses and > then > look at the filename/directory. It depends on how general a mechanism you > want -- if you're only looking at a single program it would be easy to > identify the user-defined functions, but doing it more generally might be > difficult. > > Nick > |
|
From: Julian S. <js...@ac...> - 2008-01-02 16:47:44
|
> > Is there a convenient way to identify all user-defined functions? > > Well, you might be able to use debug info to look up code addresses and > then look at the filename/directory. It depends on how general a mechanism > you want -- if you're only looking at a single program it would be easy to > identify the user-defined functions, but doing it more generally might be > difficult. So to step back a bit, what are you trying to do? Why do you want to ignore libraries? J |
|
From: Yutao Z. <yt...@gm...> - 2008-01-03 14:53:30
|
On 1/2/08, Julian Seward <js...@ac...> wrote: > > > > > Is there a convenient way to identify all user-defined functions? > > > > Well, you might be able to use debug info to look up code addresses and > > then look at the filename/directory. It depends on how general a > mechanism > > you want -- if you're only looking at a single program it would be easy > to > > identify the user-defined functions, but doing it more generally might > be > > difficult. > > So to step back a bit, what are you trying to do? Why do you want > to ignore libraries? > > J > We are trying to monitor the memory access behavior of programs and investigate optimizations based on that. Although including libraries gives the complete picture, we probably won't be able to change them for optimizations. Julie |