diff options
author | Josh Stone <jistone@redhat.com> | 2010-03-17 18:41:21 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2010-03-17 18:41:21 -0700 |
commit | 61cbdef4a69f73155b2d1e2934729f6cc8338511 (patch) | |
tree | 788d66dc86d89304d2cfcd78fa6598267325a084 /tapset-perfmon.cxx | |
parent | 02b9ddf11631a095eb3362f44f1570446d8f4921 (diff) | |
download | systemtap-steved-61cbdef4a69f73155b2d1e2934729f6cc8338511.tar.gz systemtap-steved-61cbdef4a69f73155b2d1e2934729f6cc8338511.tar.xz systemtap-steved-61cbdef4a69f73155b2d1e2934729f6cc8338511.zip |
Assign the perf probe_point on registration failure
Diffstat (limited to 'tapset-perfmon.cxx')
-rw-r--r-- | tapset-perfmon.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tapset-perfmon.cxx b/tapset-perfmon.cxx index d8339fde..05a2bcd8 100644 --- a/tapset-perfmon.cxx +++ b/tapset-perfmon.cxx @@ -154,6 +154,7 @@ perf_derived_probe_group::emit_module_init (systemtap_session& s) s.op->newline() << "stp->perf = _stp_perf_init(&stp->attr, stp->cb, stp->pp, stp->ph);"; s.op->newline() << "if (stp->perf == NULL) {"; s.op->newline(1) << "rc = -EINVAL;"; + s.op->newline() << "probe_point = stp->pp;"; s.op->newline() << "for (j=0; j<i; j++) {"; s.op->newline(1) << "stp = & stap_perf_probes [j];"; s.op->newline() << "_stp_perf_del(stp->perf);"; |