summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index 809792a4..fc341a1b 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -6494,8 +6494,7 @@ utrace_derived_probe_group::emit_module_init (systemtap_session& s)
s.op->newline();
s.op->newline() << "/* ---- utrace probes ---- */";
-
- s.op->newline() << "for (i=0; i<" << num_probes << "; i++) {";
+ s.op->newline() << "for (i=0; i<ARRAY_SIZE(stap_utrace_probes); i++) {";
s.op->indent(1);
s.op->newline() << "struct stap_utrace_probe *p = &stap_utrace_probes[i];";
s.op->newline() << "rc = stap_register_task_finder_target(&p->tgt);";
@@ -6525,7 +6524,7 @@ utrace_derived_probe_group::emit_module_exit (systemtap_session& s)
s.op->newline();
s.op->newline() << "/* ---- utrace probes ---- */";
- s.op->newline() << "for (i=0; i<" << num_probes << "; i++) {";
+ s.op->newline() << "for (i=0; i<ARRAY_SIZE(stap_utrace_probes); i++) {";
s.op->indent(1);
s.op->newline() << "struct stap_utrace_probe *p = &stap_utrace_probes[i];";