summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2008-08-08 13:47:27 -0500
committerDavid Smith <dsmith@redhat.com>2008-08-08 13:47:27 -0500
commit41211ba31d863acbff6603446f7eefa28c874ddf (patch)
tree26542b2cf62a796f5e239da58001c1740611b91d /tapsets.cxx
parenta9a23c6ec198c08057989d6c3fc08b8865681bc4 (diff)
downloadsystemtap-steved-41211ba31d863acbff6603446f7eefa28c874ddf.tar.gz
systemtap-steved-41211ba31d863acbff6603446f7eefa28c874ddf.tar.xz
systemtap-steved-41211ba31d863acbff6603446f7eefa28c874ddf.zip
Moved details of utrace detach to stap_utrace_detach().
2008-08-08 David Smith <dsmith@redhat.com> * tapsets.cxx (utrace_derived_probe_group::emit_module_decls): Calls stap_utrace_detach() to perform detach. 2008-08-08 David Smith <dsmith@redhat.com> * task_finder.c (stap_utrace_detach): New function. (stap_utrace_detach_ops): Calls stap_utrace_detach(). (__stp_utrace_attach_match_filename): Ditto.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 71c92470..c5679043 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -6290,13 +6290,7 @@ utrace_derived_probe_group::emit_module_decls (systemtap_session& s)
s.op->newline() << "case UDPF_SYSCALL:";
s.op->newline() << "case UDPF_SYSCALL_RETURN:";
s.op->indent(1);
- s.op->newline() << "engine = utrace_attach(tsk, UTRACE_ATTACH_MATCH_OPS, &p->ops, 0);";
- s.op->newline() << "if (! IS_ERR(engine) && engine != NULL) {";
- s.op->indent(1);
- s.op->newline() << "utrace_detach(tsk, engine);";
- s.op->newline() << "debug_task_finder_detach();";
-
- s.op->newline(-1) << "}";
+ s.op->newline() << "stap_utrace_detach(tsk, &p->ops);";
s.op->newline() << "break;";
s.op->indent(-1);
}