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.
Use absolute module file path when possible
Follow symlink in /proc/.../root and prepend it to module filename instead of prepending /proc/.../root. This allows the file to be found when doing symbol resolution even when the process has already exited by that time. The symlink value is stored in ProcStat::root_ and is checked for changes in ProcStat::is_stale, its change triggering reloading modules to get the correct path. If the symlink reading fails, ProcStat::root_ is set to /proc/.../root.
- Loading branch information
1 parent
12e5312
commit cc44177
Showing
2 changed files
with
33 additions
and
8 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