<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><style>#yiv8954750564 #yiv8954750564 _filtered #yiv8954750564 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
_filtered #yiv8954750564 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
_filtered #yiv8954750564 {font-family:Verdana;panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv8954750564 p.yiv8954750564MsoNormal, #yiv8954750564 li.yiv8954750564MsoNormal, #yiv8954750564 div.yiv8954750564MsoNormal
{margin:0in;margin-bottom:.0001pt;font-size:11.0pt;}
#yiv8954750564 a:link, #yiv8954750564 span.yiv8954750564MsoHyperlink
{color:blue;text-decoration:underline;}
#yiv8954750564 a:visited, #yiv8954750564 span.yiv8954750564MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
#yiv8954750564 p.yiv8954750564MsoAcetate, #yiv8954750564 li.yiv8954750564MsoAcetate, #yiv8954750564 div.yiv8954750564MsoAcetate
{margin:0in;margin-bottom:.0001pt;font-size:8.0pt;}
#yiv8954750564 span.yiv8954750564BalloonTextChar
{}
#yiv8954750564 span.yiv8954750564EmailStyle19
{color:windowtext;font-weight:normal;font-style:normal;text-decoration:none none;}
#yiv8954750564 span.yiv8954750564EmailStyle20
{color:#1F497D;font-weight:normal;font-style:normal;text-decoration:none none;}
#yiv8954750564 .yiv8954750564MsoChpDefault
{font-size:10.0pt;}
_filtered #yiv8954750564 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv8954750564 div.yiv8954750564WordSection1
{}
#yiv8954750564 </style></div><div><br></div><div><br></div><div><span id="zwchr" data-marker="__DIVIDER__">----- On Nov 17, 2016, at 12:21 PM, Mark E. Dawson, Jr. <medawsonjr@yahoo.com> wrote:<br></span></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1479402851121_60364"><span>Mathieu,</span></div><div id="yui_3_16_0_ym19_1_1479402851121_60364"><span><br></span></div><div id="yui_3_16_0_ym19_1_1479402851121_60364"><span id="yui_3_16_0_ym19_1_1479402851121_60485">My query appears to be getting dropped by the mailing list, forcing me to ask you directly which I understand is both inefficient and a nuisance. We met when I spoke (along with Christoph Lameter) at the Tracing Summit a couple years back.</span></div></div></blockquote><div><br></div><div><div>Hi Mark,<br></div><div><br></div><div>Not sure why the mailing list would have dropped your email. Everything looks fine in the</div><div>admin interface. Adding it in CC. (Michael, can you check if lttng-dev has issues with emails</div><div>from yahoo domains ?)</div></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1479402851121_60364"><span>Anyway, my question is as follows:</span></div><div id="yui_3_16_0_ym19_1_1479402851121_60364"><span><br></span></div><div id="yui_3_16_0_ym19_1_1479402851121_60364" dir="ltr">If I want to remove a ton of compiled-in calls to an "rdtsc-based" C timing function and make them all conditionally-enabled based on whether or not I enable a tracing session, I can do so by adding the aforementioned "rdtsc" call as one of the arguments to tracepoint() along with our defined provider and event name, correct?</div></div></blockquote><br>You can take a few approaches there:<br><div><br data-mce-bogus="1"></div><div>1) Use if (tracepoint_enabled()) { ..read tsc... do_tracepoint(...); }<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>2) do this function call or static inline invocation as an argument of tracepoint().<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>3) do the function call/static inline invocation within the tracepoint probe provider<br data-mce-bogus="1"></div><div> (TRACEPOINT_EVENT() code).<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Let me know if I somehow misunderstood the intent of your question.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Thanks,<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Mathieu</div></div><div data-marker="__QUOTED_TEXT__"><br data-mce-bogus="1"></div><div data-marker="__SIG_POST__">-- <br></div><div>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com</div></div></body></html>