This discussion is archived
0 Replies Latest reply: Feb 28, 2013 11:57 AM by 994057 RSS

dtrace to differentiate exec run by ldd

994057 Newbie
Currently Being Moderated

Hi alll ,

We want to use dtrace to mintor exec. For example , say when we run 'ldd cat' , ldd will exec cat to check what library that prog is using. It is an exec but stops when libraries are loaded , as ldd exports LD_TRACE_LOADED_OBJECTS_E env variable , if this var is defined, exec will stop when lib loaded no further execution. So, from our view, that is not an exec, is there a way we can we use dtrace to separate real exec and exec with LD_TRACE_LOADED_OBJECTS_E env variable set?

Any help is apprecaited.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points