forked from iovisor/bcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for global variable arguments in USDT probes
I previously thought it wouldn't be possible to probe arbitrary user-mode addresses, but it turns out that it is. This was required to support global variable arguments in USDT probes. For example, there are a few probes in libpthread whose arguments refer to the mp_ global variable. These are now supported. Additionally, refactored process-related utils into a ProcUtils class in procstat.py, and implemented a version of `which` (`ProcUtils.which`) that is as portable as possible -- it only relies on traversing the PATH environment variable.
- Loading branch information
Showing
5 changed files
with
170 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.