oracle / bpftune

bpftune uses BPF to auto-tune Linux systems
Other
685 stars 59 forks source link

bpftune: expose strategy_id to tuner bpf programs #58

Closed alan-maguire closed 1 year ago

alan-maguire commented 1 year ago

tuners that share bpf programs across strategies may want to have different behaviours depending on which strategy is active; assign strategy ids when strategies are added to tuner and expose to bpf progs via strategy_id variable; it is set as part of bpftune_bpf_open().