ltrace ltrace The library calls sni er The library calls sni er Attaching to an already running process Running directly a process $ ltrace -p $ ltrace
Tips and Tricks Tips and Tricks dump full trace into a le and lter/analyze later use -s to show longer parts of string use -f to attach to child processes use -c to display a summary of call count and time use -y to display the path associated to the le descriptor use -T to display the time spent on each call
Take aways about Take aways about strace/ltrace strace/ltrace strace and ltrace give great insights on the program behavior Often allow a rst and fast diagnostic They are complementary tools to your existing toolbox