diff options
author | David Smith <dsmith@redhat.com> | 2008-08-25 14:13:38 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2008-08-25 14:13:38 -0500 |
commit | 278def1009fff72da4e4ea3949e6b722cc541c07 (patch) | |
tree | e986529c9655cd9d5b3e704a28422f206adae75c /tapsets.cxx | |
parent | e396cf0c479e491ad6624f2c523f444a9f941f42 (diff) | |
download | systemtap-steved-278def1009fff72da4e4ea3949e6b722cc541c07.tar.gz systemtap-steved-278def1009fff72da4e4ea3949e6b722cc541c07.tar.xz systemtap-steved-278def1009fff72da4e4ea3949e6b722cc541c07.zip |
2008-08-25 David Smith <dsmith@redhat.com>
* tapsets.cxx (utrace_derived_probe_group::emit_module_init): Make
sure we count the number of utrace probes correctly.
(utrace_derived_probe_group::emit_module_exit): Ditto.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index b924f1fc..289c5fac 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -6480,8 +6480,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);"; @@ -6511,7 +6510,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];"; |