diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-06-01 09:57:59 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-06-01 09:57:59 +0000 |
commit | 68aee1affc9e9f623b3824770f05f34d7c2fe60a (patch) | |
tree | ff6bb4ec4eab9b40d691aebff013e69dbf58683a /sbin/nfsd | |
parent | ef21a2cb5b0d81e925c90a50449ba06a311298e0 (diff) |
Introduce ltrace(1). This tool works with ld.so to inject utrace record for
each plt call, allowing to trace a binary linked against shared library at the
public function call level.
To do so, ltrace(1) sets up some environment variables to enable plt tracing
in ld.so, and invokes ktrace(2) for utrace events. ld.so will force lazy
binding and will send an utrace record in the plt resolver, without updating
the plt.
Minimal filtering capabilities are provided, inspired by Solaris' truss -u,
to limit tracing to libraries and/or symbol names. Non-traced libraries and
symbols will have the regular resolver processing, with the expected plt
update.
"Get it in" deraadt
Diffstat (limited to 'sbin/nfsd')
0 files changed, 0 insertions, 0 deletions