linux-usdt / libstapsdt

Create Systemtap's USDT probes at runtime
MIT License
126 stars 13 forks source link

Unload/destroy provider #3

Closed mmarchini closed 7 years ago

mmarchini commented 7 years ago

Sometimes probes may be used only during a short period of time, for a specific context. In that case, there's no reason to keep the entire provider/shared library alive after its lifetime ended, so there must be a way to unload it.

Unloading a provider should unload the shared library (dlclose()), delete its file and free all related structures.

Related: mmarchini/libstapsdt#2