Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | PR10177: init/kill time in sleepy context only | Josh Stone | 2009-05-20 | 1 | -0/+13 |
Previously, _stp_init_time and _stp_kill_time were being called from begin/end/error probes, which will run with preemption disabled. The BUG reported on RT kernels showed that cpufreq_unregister_notifier can end up sleeping, which violates our preemption block. This patch moves the init/kill into systemtap_module_init/exit, where it is safe to sleep. The code maintains a new predicate with the define STAP_NEED_GETTIMEOFDAY, so we don't still incur any timer overhead if it's not used. |