[lttng-dev] Removing timing overhead with tracepoint() <-- query dropped by mailing list
Mark E. Dawson, Jr.
medawsonjr at yahoo.com
Thu Nov 17 21:47:14 UTC 2016
Ah, so there's more than just the one way I suggested in my original query. Perfect! Thanks, Mathieu!
From: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
To: "Mark E. Dawson, Jr." <medawsonjr at yahoo.com>
Cc: lttng-dev <lttng-dev at lists.lttng.org>; Michael Jeanson <mjeanson at efficios.com>
Sent: Thursday, November 17, 2016 2:47 PM
Subject: Re: Removing timing overhead with tracepoint() <-- query dropped by mailing list
#yiv8877469080 filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv8877469080 filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}#yiv8877469080 filtered {font-family:Verdana;panose-1:2 11 6 4 3 5 4 4 2 4;}#yiv8877469080 p.yiv8877469080MsoNormal, #yiv8877469080 li.yiv8877469080MsoNormal, #yiv8877469080 div.yiv8877469080MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;}#yiv8877469080 a:link, #yiv8877469080 span.yiv8877469080MsoHyperlink {color:blue;text-decoration:underline;}#yiv8877469080 a:visited, #yiv8877469080 span.yiv8877469080MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv8877469080 p.yiv8877469080MsoAcetate, #yiv8877469080 li.yiv8877469080MsoAcetate, #yiv8877469080 div.yiv8877469080MsoAcetate {margin:0in;margin-bottom:.0001pt;font-size:8.0pt;}#yiv8877469080 span.yiv8877469080BalloonTextChar {}#yiv8877469080 span.yiv8877469080EmailStyle19 {color:windowtext;font-weight:normal;font-style:normal;text-decoration:none none;}#yiv8877469080 span.yiv8877469080EmailStyle20 {color:#1F497D;font-weight:normal;font-style:normal;text-decoration:none none;}#yiv8877469080 .yiv8877469080MsoChpDefault {font-size:10.0pt;}#yiv8877469080 filtered {margin:1.0in 1.0in 1.0in 1.0in;}#yiv8877469080 div.yiv8877469080WordSection1 {}#yiv8877469080
----- On Nov 17, 2016, at 12:21 PM, Mark E. Dawson, Jr. <medawsonjr at yahoo.com> wrote:
Mathieu,
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.
Hi Mark,
Not sure why the mailing list would have dropped your email. Everything looks fine in theadmin interface. Adding it in CC. (Michael, can you check if lttng-dev has issues with emailsfrom yahoo domains ?)
Anyway, my question is as follows:
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?
You can take a few approaches there:
1) Use if (tracepoint_enabled()) { ..read tsc... do_tracepoint(...); }
2) do this function call or static inline invocation as an argument of tracepoint().
3) do the function call/static inline invocation within the tracepoint probe provider
(TRACEPOINT_EVENT() code).
Let me know if I somehow misunderstood the intent of your question.
Thanks,
Mathieu
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20161117/5af929a7/attachment.html>
More information about the lttng-dev
mailing list