summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorfche <fche>2006-01-03 23:15:26 +0000
committerfche <fche>2006-01-03 23:15:26 +0000
commitaf9ea5eea199993102cf4aae0bcdd83bddedca91 (patch)
treedb32c5234dc7aff1dc33123e2718ab68d7efb496 /tapsets.cxx
parent9a604face6354d63a3948a08e85613168a9dfb88 (diff)
downloadsystemtap-steved-af9ea5eea199993102cf4aae0bcdd83bddedca91.tar.gz
systemtap-steved-af9ea5eea199993102cf4aae0bcdd83bddedca91.tar.xz
systemtap-steved-af9ea5eea199993102cf4aae0bcdd83bddedca91.zip
2006-01-03 Frank Ch. Eigler <fche@redhat.com>
* tapsets.cxx (emit_deregistration): Fix bad thinko on loop nesting.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index a6c57b80..b6533a10 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -2965,32 +2965,32 @@ dwarf_derived_probe::emit_deregistrations (translator_output* o, unsigned proben
{
o->newline() << "{";
o->newline(1) << "int i;";
- o->newline() << "for (i = 0; i < " << probe_points.size() << "; i++)";
+ o->newline() << "for (i = 0; i < " << probe_points.size() << "; i++) {";
string probe_name = struct_kprobe_array_name(probenum) + "[i]";
o->indent(1);
if (has_return)
{
o->newline() << "#ifdef ARCH_SUPPORTS_KRETPROBES";
- o->newline() << "unregister_kretprobe (&(" << probe_name << "));";
o->newline() << "atomic_add ("
<< probe_name << ".kp.nmissed,"
<< "& skipped_count);";
o->newline() << "atomic_add ("
<< probe_name << ".nmissed,"
<< "& skipped_count);";
+ o->newline() << "unregister_kretprobe (&(" << probe_name << "));";
o->newline() << "#else";
o->newline() << ";";
o->newline() << "#endif";
}
else
{
- o->newline() << "unregister_kprobe (&(" << probe_name << "));";
o->newline() << "atomic_add ("
<< probe_name << ".nmissed,"
<< "& skipped_count);";
+ o->newline() << "unregister_kprobe (&(" << probe_name << "));";
}
- o->indent(-1);
+ o->newline(-1) << "}";
o->newline(-1) << "}";
}