From 61cbdef4a69f73155b2d1e2934729f6cc8338511 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 17 Mar 2010 18:41:21 -0700 Subject: Assign the perf probe_point on registration failure --- tapset-perfmon.cxx | 1 + 1 file changed, 1 insertion(+) 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; jnewline(1) << "stp = & stap_perf_probes [j];"; s.op->newline() << "_stp_perf_del(stp->perf);"; -- cgit