You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
R-dyntrace provides fine-grained hooks and injectr provides coarse-grained hooks. instrumentr should be a common front-end to both backends. R-dyntrace should export the hook symbols from libR.so. These should be scanned by instrumentr automatically on load. If no hook symbols are found, then instrumentr should fall back to injectr backend. Otherwise, it should attach callbacks to R-dyntrace hooks. However, the hook symbol exported by R-dyntrace cannot be modified by instrumentr. For this to work, the hook symbols exported by R-dyntrace should do indirection. Instead of directly pointing to the callback, a hook symbol should point to a memory address that will point to the callback. This memory location should be initialized to NULL. On loading, instrumentr should modify this location to point to the callbacks which it implements. This means that the interface for attaching callbacks to R-dyntrace hooks can be eliminated resulting in fewer changes to R.
The text was updated successfully, but these errors were encountered:
R-dyntrace
provides fine-grained hooks andinjectr
provides coarse-grained hooks.instrumentr
should be a common front-end to both backends.R-dyntrace
should export the hook symbols fromlibR.so
. These should be scanned byinstrumentr
automatically on load. If no hook symbols are found, theninstrumentr
should fall back toinjectr
backend. Otherwise, it should attach callbacks toR-dyntrace
hooks. However, the hook symbol exported by R-dyntrace cannot be modified byinstrumentr
. For this to work, the hook symbols exported byR-dyntrace
should do indirection. Instead of directly pointing to the callback, a hook symbol should point to a memory address that will point to the callback. This memory location should be initialized to NULL. On loading,instrumentr
should modify this location to point to the callbacks which it implements. This means that the interface for attaching callbacks to R-dyntrace hooks can be eliminated resulting in fewer changes toR
.The text was updated successfully, but these errors were encountered: