summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/gtod_init.exp
Commit message (Collapse)AuthorAgeFilesLines
* PR10177: init/kill time in sleepy context onlyJosh Stone2009-05-201-29/+0
| | | | | | | | | | | | 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.
* Add a testcase for gtod init/killJosh Stone2009-02-231-0/+29
This test simply checks that _gettimeofday_init and _gettimeofday_kill are pulled in when gettimeofday is used, and also that they are NOT pulled in when gettimeofday is not used.