Skip to content

Instantly share code, notes, and snippets.

@kerneltoast
Created December 3, 2020 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kerneltoast/64834e272251a4eab228e3287939c436 to your computer and use it in GitHub Desktop.
Save kerneltoast/64834e272251a4eab228e3287939c436 to your computer and use it in GitHub Desktop.
--- a/tapset-timers.cxx
+++ b/tapset-timers.cxx
@@ -391,11 +391,11 @@ hrtimer_derived_probe_group::emit_module_refresh (systemtap_session& s)
s.op->newline(+1) << "struct stap_hrtimer_probe* stp = &stap_hrtimer_probes[i];";
// timer disabled, but condition says enabled?
s.op->newline( 0) << "if (!stp->enabled && stp->probe->cond_enabled) {";
- s.op->newline(+1) << "dbug_otf(\"enabling (hrtimer) pidx %zu\\n\", stp->probe->index);";
+ s.op->newline(+1) << "//dbug_otf(\"enabling (hrtimer) pidx %zu\\n\", stp->probe->index);";
s.op->newline( 0) << "_stp_hrtimer_start(stp);";
// timer enabled, but condition says disabled?
s.op->newline(-1) << "} else if (stp->enabled && !stp->probe->cond_enabled) {";
- s.op->newline(+1) << "dbug_otf(\"disabling (hrtimer) pidx %zu\\n\", stp->probe->index);";
+ s.op->newline(+1) << "//dbug_otf(\"disabling (hrtimer) pidx %zu\\n\", stp->probe->index);";
s.op->newline( 0) << "_stp_hrtimer_cancel(stp);";
s.op->newline(-1) << "}";
s.op->newline( 0) << "stp->enabled = stp->probe->cond_enabled;";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment