diff options
author | hiramatu <hiramatu> | 2007-09-24 19:35:48 +0000 |
---|---|---|
committer | hiramatu <hiramatu> | 2007-09-24 19:35:48 +0000 |
commit | ca99ed191f42ccf1cb5a85e962ea1f5f35127d14 (patch) | |
tree | 99d0640c51200b018238d16dbf5dc99c6ad85e57 /buildrun.cxx | |
parent | 88c4fbce967fb176ade97e8b58a42ebe606cf318 (diff) | |
download | systemtap-steved-ca99ed191f42ccf1cb5a85e962ea1f5f35127d14.tar.gz systemtap-steved-ca99ed191f42ccf1cb5a85e962ea1f5f35127d14.tar.xz systemtap-steved-ca99ed191f42ccf1cb5a85e962ea1f5f35127d14.zip |
2007-09-24 Masami Hiramatsu <mhiramat@redhat.com>
PR 3916
* buildrun.cxx (compile_pass): Add new autoconf options for checking
time related APIs.
* time.c (stp_time_t): Rename cpufreq to freq.
(__stp_get_freq): Rename from __stp_estimate_cpufreq. Use tsc_khz or
cpu_khz if it is available. Use itc_freq on ia64.
(__stp_ktime_get_real_ts): New function to get current kernel time.
(__stp_time_timer_callback): Call __stp_ktime_get_real_ts to get
base time.
(__stp_init_time): Ditto.
(__stp_constant_freq): New function to check the processor has
constant frequency timestamp counter.
(_stp_kill_time): Don't use the cpufreq notifier if the processor has
constant frequency timestamp counter.
(_stp_init_time): Ditto.
* autoconf-ktime-get-real.c : New file.
* autoconf-constant-tsc.c: Ditto.
* autoconf-tsc-khz.c: Ditto.
Diffstat (limited to 'buildrun.cxx')
-rw-r--r-- | buildrun.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/buildrun.cxx b/buildrun.cxx index 2fb3439c..830255d6 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -54,6 +54,9 @@ compile_pass (systemtap_session& s) o << module_cflags << " :=" << endl; o << module_cflags << " += $(call stap_check_build, $(SYSTEMTAP_RUNTIME)/autoconf-hrtimer-rel.c, -DSTAPCONF_HRTIMER_REL,)" << endl; o << module_cflags << " += $(call stap_check_build, $(SYSTEMTAP_RUNTIME)/autoconf-inode-private.c, -DSTAPCONF_INODE_PRIVATE,)" << endl; + o << module_cflags << " += $(call stap_check_build, $(SYSTEMTAP_RUNTIME)/autoconf-constant-tsc.c, -DSTAPCONF_CONSTANT_TSC,)" << endl; + o << module_cflags << " += $(call stap_check_build, $(SYSTEMTAP_RUNTIME)/autoconf-tsc-khz.c, -DSTAPCONF_TSC_KHZ,)" << endl; + o << module_cflags << " += $(call stap_check_build, $(SYSTEMTAP_RUNTIME)/autoconf-ktime-get-real.c, -DSTAPCONF_KTIME_GET_REAL,)" << endl; for (unsigned i=0; i<s.macros.size(); i++) o << "CFLAGS += -D " << lex_cast_qstring(s.macros[i]) << endl; |