summaryrefslogtreecommitdiffstats
path: root/buildrun.cxx
diff options
context:
space:
mode:
authorJosh Stone <joshua.i.stone@intel.com>2008-05-23 20:35:55 -0700
committerJosh Stone <joshua.i.stone@intel.com>2008-05-27 16:19:03 -0700
commit2cda5f46cba978e19590efd7fee0b3075f8eb8df (patch)
treed613226eb1fe124643018b5e4c45f7019df635ea /buildrun.cxx
parenta2eab6ee228991f3ebfa5f628857ec6c703c85d1 (diff)
downloadsystemtap-steved-2cda5f46cba978e19590efd7fee0b3075f8eb8df.tar.gz
systemtap-steved-2cda5f46cba978e19590efd7fee0b3075f8eb8df.tar.xz
systemtap-steved-2cda5f46cba978e19590efd7fee0b3075f8eb8df.zip
Add prototypes for using the 2.6.26 probe_kernel_* functions.
For now, the autoconf for the new code is disabled, because it shows poorer performance than our existing dereferencing functions. This is probably because ours get inlined and optimized. The code is being committed so that we may re-evaluate its usefulness in the future. This addresses bugzilla 6432.
Diffstat (limited to 'buildrun.cxx')
-rw-r--r--buildrun.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/buildrun.cxx b/buildrun.cxx
index 76efe7c0..a39f2b63 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -96,6 +96,12 @@ compile_pass (systemtap_session& s)
o << module_cflags << " += $(call stap_check_build, $(SYSTEMTAP_RUNTIME)/autoconf-nameidata.c, -DSTAPCONF_NAMEIDATA_CLEANUP,)" << endl;
o << module_cflags << " += $(call stap_check_build, $(SYSTEMTAP_RUNTIME)/autoconf-unregister-kprobes.c, -DSTAPCONF_UNREGISTER_KPROBES,)" << endl;
o << module_cflags << " += $(call stap_check_build, $(SYSTEMTAP_RUNTIME)/autoconf-module-nsections.c, -DSTAPCONF_MODULE_NSECTIONS,)" << endl;
+#if 0
+ /* NB: For now, the performance hit of probe_kernel_read/write (vs. our
+ * homegrown safe-access functions) is deemed undesireable, so we'll skip
+ * this autoconf. */
+ o << module_cflags << " += $(call stap_check_build, $(SYSTEMTAP_RUNTIME)/autoconf-probe-kernel.c, -DSTAPCONF_PROBE_KERNEL,)" << endl;
+#endif
for (unsigned i=0; i<s.macros.size(); i++)
o << "EXTRA_CFLAGS += -D " << lex_cast_qstring(s.macros[i]) << endl;