commit | a6ebe1314c656c8c6f6b26d2fd2006f6e89479b8 | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Wed Jul 24 22:59:23 2019 +0100 |
committer | Primiano Tucci <primiano@google.com> | Wed Jul 24 22:59:23 2019 +0100 |
tree | c32e11df340aef9b6e6639d3b831d201804b9501 | |
parent | 9ed18595b3833892775a9e875801a6a69de7f34a [diff] |
Don't dlclose libperfetto_android_internal.so once loaded Prior to this CL: 1) the internal .so was lazily loaded the first time a process needed to access a non-NDK function. 2) It was unloaded once done 2 turns out to be particularly problematic because causes all sorts of FD leaks. Most libraries don't handle dlcose() proprely. This CL cleans up a bit the dlopn mechanism, centralizing it in one place and never dlcloses the opened library once loaded. Test: manual (using android.power) Bug: 137280403 Change-Id: I21006ebafb35a063c0ca5c9c2d370c049fb27eb8
Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.
See www.perfetto.dev for docs.