summaryrefslogtreecommitdiffstats
path: root/buildrun.cxx
diff options
context:
space:
mode:
authorhiramatu <hiramatu>2008-03-15 00:02:00 +0000
committerhiramatu <hiramatu>2008-03-15 00:02:00 +0000
commit42cb22bd8d3108863152cd2a26e787f508cfae6b (patch)
tree1db48af17d84ba14243575060ad0e7a6fa7549b6 /buildrun.cxx
parentecf194547a1efcc82a6f77862a25c9327f55d011 (diff)
downloadsystemtap-steved-42cb22bd8d3108863152cd2a26e787f508cfae6b.tar.gz
systemtap-steved-42cb22bd8d3108863152cd2a26e787f508cfae6b.tar.xz
systemtap-steved-42cb22bd8d3108863152cd2a26e787f508cfae6b.zip
2008-03-14 Masami Hiramatsu <mhiramat@redhat.com>
PR 3542 * buildrun.cxx (compile_pass): Add an autoconf to check the kernel supports batch unregistration. * tapsets.cxx (dwarf_derived_probe_group::emit_module_decls): Add an array of probe pointers for batch unregistration. * tapsets.cxx (dwarf_derived_probe_group::emit_module_exit): Use unregister_k(ret)probes if it is supported. * runtime/autoconf-unregister-kprobes.c : New file.
Diffstat (limited to 'buildrun.cxx')
-rw-r--r--buildrun.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/buildrun.cxx b/buildrun.cxx
index 8504cf62..f3e72272 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -95,6 +95,7 @@ compile_pass (systemtap_session& s)
o << module_cflags << " += $(call stap_check_build, $(SYSTEMTAP_RUNTIME)/autoconf-x86-uniregs.c, -DSTAPCONF_X86_UNIREGS,)" << endl;
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;
for (unsigned i=0; i<s.macros.size(); i++)
o << "EXTRA_CFLAGS += -D " << lex_cast_qstring(s.macros[i]) << endl;