]> sourceware.org Git - systemtap.git/commitdiff
tracepoints build fix
authorFrank Ch. Eigler <fche@redhat.com>
Sat, 9 Jan 2010 18:48:11 +0000 (13:48 -0500)
committerFrank Ch. Eigler <fche@elastic.org>
Sat, 9 Jan 2010 18:48:11 +0000 (13:48 -0500)
* tapsets.cxx (emit_module_decls): #undef TRACE_INCLUDE_FILE
  in front of each #include'd trace/event header, to prevent
  macro redefinition.
  (init_dw): Respect pending_interrupts in traceprobe module
  compilation loop.

tapsets.cxx

index 4c15c5ac9596a90c5a96bc8b05aa70120a733f7d..a5717d16c679a996116c4d058f679fa02c7bd061 100644 (file)
@@ -6105,6 +6105,7 @@ tracepoint_derived_probe_group::emit_module_decls (systemtap_session& s)
 
       // emit a separate entry function for each probe, since tracepoints
       // don't provide any sort of context pointer.
+      s.op->newline() << "#undef TRACE_INCLUDE_FILE";
       s.op->newline() << "#include <" << p->header << ">";
       s.op->newline() << "static void enter_tracepoint_probe_" << i << "(";
       if (p->args.size() == 0)
@@ -6431,6 +6432,8 @@ tracepoint_builder::init_dw(systemtap_session& s)
     // Otherwise try to do them one at a time (PR10424)
     for (size_t i = 0; i < system_headers.size(); ++i)
       {
+        if (pending_interrupts) return false;
+
         vector<string> one_header(1, system_headers[i]);
         tracequery_path = get_tracequery_module(s, one_header);
         if (get_file_size(tracequery_path))
This page took 0.044393 seconds and 5 git commands to generate.