summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok/gtod_noinit.stp
Commit message (Collapse)AuthorAgeFilesLines
* PR10177: init/kill time in sleepy context onlyJosh Stone2009-05-201-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.