This website requires JavaScript.
Explore
Help
Register
Sign In
tequilaOS
/
platform_bionic
Watch
2
Star
0
Fork
You've already forked platform_bionic
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
389fbc14a9
platform_bionic
/
libfdtrack
/
libfdtrack.map.txt
9 lines
105 B
Text
Raw
Normal View
History
Unescape
Escape
Add a tool to track down fd leaks. Add a hook that's called upon file descriptor creation to libc, and a library that uses it to capture backtraces for file descriptor creation, to make it easier to hunt down file descriptor leaks. Currently, this doesn't capture all of the ways of creating a file descriptor, but completeness isn't required for this to be useful as long as leaked file descriptors are created with a function that is tracked. The primary unhandled case is binder, which receives file descriptors as a payload in a not-trivially-parsable byte blob, but there's a chance that the leak we're currently trying to track down isn't of a file descriptor received over binder, so leave that for later. Bug: http://b/140703823 Test: manual Change-Id: I308a14c2e234cdba4207157b634ab6b8bc539dd9 (cherry picked from commit b7eccd4b1577c101132e52d4a5313d5322dcae2d)
2019-11-06 22:15:00 +01:00
LIBFDTRACK {
global:
fdtrack_dump;
fdtrack: emit the most common stack in the abort message. Bug: http://b/181875562 Test: manual Change-Id: I2826b148d55788e932fa04dcef33c78fad8be227
2021-03-12 06:11:37 +01:00
fdtrack_dump_fatal;
fdtrack: add a test. Test: logcat -c; fdtrack_test; logcat -d | grep fdtrack Change-Id: Ie1101c9cf968299ec1f03f20097a2ed27f6e15bd
2020-01-28 22:54:00 +01:00
fdtrack_iterate;
Add a tool to track down fd leaks. Add a hook that's called upon file descriptor creation to libc, and a library that uses it to capture backtraces for file descriptor creation, to make it easier to hunt down file descriptor leaks. Currently, this doesn't capture all of the ways of creating a file descriptor, but completeness isn't required for this to be useful as long as leaked file descriptors are created with a function that is tracked. The primary unhandled case is binder, which receives file descriptors as a payload in a not-trivially-parsable byte blob, but there's a chance that the leak we're currently trying to track down isn't of a file descriptor received over binder, so leave that for later. Bug: http://b/140703823 Test: manual Change-Id: I308a14c2e234cdba4207157b634ab6b8bc539dd9 (cherry picked from commit b7eccd4b1577c101132e52d4a5313d5322dcae2d)
2019-11-06 22:15:00 +01:00
local:
*;
};
Reference in a new issue
Copy permalink