Forrest logo
back to context overview

ltrace

List of commands for ltrace:

  • ltrace:tldr:17711 ltrace: Trace calls to malloc and free, omit those done by libc.
    $ ltrace -e malloc+free-@libc.so* ${path-to-program}
    try on your machine
    explain this command
  • ltrace:tldr:956d8 ltrace: Count library calls. Print a handy summary at the bottom.
    $ ltrace -c ${path-to-program}
    try on your machine
    explain this command
  • ltrace:tldr:baf37 ltrace: Write to file instead of terminal.
    $ ltrace -o ${file} ${path-to-program}
    try on your machine
    explain this command
  • ltrace:tldr:cd6a0 ltrace: Print (trace) library calls of a program binary.
    $ ltrace ./${program}
    try on your machine
    explain this command
back to context overview