summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-04-08 23:35:21 +0200
committerMark Wielaard <mjw@redhat.com>2009-04-08 23:38:40 +0200
commit8c39e6ee099a479b3f8e25bad1272085369970a9 (patch)
tree85979e3703642b27553302884127c1756b4943e1 /tapsets.cxx
parent9b11ea1ccc742f6a594be6a9777e618bdcbfebed (diff)
downloadsystemtap-steved-8c39e6ee099a479b3f8e25bad1272085369970a9.tar.gz
systemtap-steved-8c39e6ee099a479b3f8e25bad1272085369970a9.tar.xz
systemtap-steved-8c39e6ee099a479b3f8e25bad1272085369970a9.zip
Make sure code using the vma tracker compiles again.
* runtime/runtime.h: Include task_finder.c. * runtime/sym.c: Always define task_finder callbacks for usage in tapsets. * runtime/task_finder.c: Define dummy stap_task_finder_target when ! defined(CONFIG_UTRACE). * tapsets.cxx: Never include task_finder.c directly.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx21
1 files changed, 0 insertions, 21 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 32cd8494..2316a777 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -6486,13 +6486,6 @@ itrace_derived_probe_group::emit_module_decls (systemtap_session& s)
s.op->newline();
s.op->newline() << "/* ---- itrace probes ---- */";
- // Note that we can potentially include task_finder.c multiple times
- // in the generated code. That is OK, since task_finder.c has guard
- // macros to prevent defining things multiple times. If we include
- // task_finder.c unconditionally, stap can't be used on systems
- // without utrace.
- s.op->newline() << "#include \"task_finder.c\"";
-
s.op->newline() << "struct stap_itrace_probe {";
s.op->indent(1);
s.op->newline() << "struct stap_task_finder_target tgt;";
@@ -7077,13 +7070,6 @@ utrace_derived_probe_group::emit_module_decls (systemtap_session& s)
s.op->newline();
s.op->newline() << "/* ---- utrace probes ---- */";
- // Note that we can potentially include task_finder.c multiple times
- // in the generated code. That is OK, since task_finder.c has guard
- // macros to prevent defining things multiple times. If we include
- // task_finder.c unconditionally, stap can't be used on systems
- // without utrace.
- s.op->newline() << "#include \"task_finder.c\"";
-
s.op->newline() << "enum utrace_derived_probe_flags {";
s.op->indent(1);
s.op->newline() << "UDPF_NONE,";
@@ -7592,13 +7578,6 @@ uprobe_derived_probe_group::emit_module_decls (systemtap_session& s)
s.op->newline() << "#include \"uprobes/uprobes.h\"";
s.op->newline() << "#endif";
- // Note that we can potentially include task_finder.c multiple times
- // in the generated code. That is OK, since task_finder.c has guard
- // macros to prevent defining things multiple times. If we include
- // task_finder.c unconditionally, stap can't be used on systems
- // without utrace.
- s.op->newline() << "#include \"task_finder.c\"";
-
s.op->newline() << "#ifndef MULTIPLE_UPROBES";
s.op->newline() << "#define MULTIPLE_UPROBES 256"; // maximum possible armed uprobes per process() probe point
// or apprx. max number of processes mapping a shared library