egeberkaygulcan / dstest

2 stars 1 forks source link

[FEATURE] use `LD_PRELOAD` to intercept timers and offer them to the scheduler #9

Open joaomlneto opened 2 months ago

joaomlneto commented 2 months ago

LD_PRELOAD in *nix systems allows us to override symbols (functions/libraries) at runtime and execute (almost) arbitrary code.

In my prev work I've used it to intercept memory allocations, but libfaketime shows it can also be used to intercept time-related things.

In theory we could intercept timeouts without instrumenting applications and allow the scheduler to schedule these just like regular messages.

Just food for thought. We're nowhere near close to scheduling this to be implemented.