HomeFreeBSD

libproc: Cache ELF handles for loaded objects.

Description

libproc: Cache ELF handles for loaded objects.

libproc previously created a new handle for each symbol lookup, which
gives rather egregious performance for DTrace's ustack() action. With
this change libproc will cache the libelf descriptor upon access, making
lookups much faster in the common case.

Details

Provenance
markjAuthored on
Parents
rS309593: libproc: Improve .gnu_debuglink support.
Branches
Unknown
Tags
Unknown