Skip to content

Commit

Permalink
tools/trace: Document DSO tracing in tools/trace_example.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
ShelbyFrances authored and ShelbyFrances committed Feb 13, 2017
1 parent 6e1fac4 commit 86cd535
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tools/trace_example.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,16 @@ TIME PID COMM FUNC -
In the previous invocation, arg1 and arg2 are the class name and method name
for the Ruby method being invoked.

You can also trace exported functions from shared libraries, or an imported
function on the actual executable:

# sudo ./trace.py 'r:/usr/lib64/libtinfo.so:curses_version "Version=%s", retval'
# tput -V

PID TID COMM FUNC -
21720 21720 tput curses_version Version=ncurses 6.0.20160709
^C


Occasionally, it can be useful to filter specific strings. For example, you
might be interested in open() calls that open a specific file:
Expand Down

0 comments on commit 86cd535

Please sign in to comment.