<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p style="color: #777777;">
<a href="https://gitlab.com/dueno">Daiki Ueno</a>
commented on a
<a href="https://gitlab.com/gnutls/gnutls/-/merge_requests/1340#note_423164138">discussion</a>:
</p>
<div style="">
<p dir="auto"><a href="https://gitlab.com/simo5" data-user="2918402" data-reference-type="user" data-container="body" data-placement="top" class="gfm gfm-project_member js-user-link" title="Simo Sorce">@simo5</a> I don't get what you are asking for (i.e., code example for what). If you are looking for the code that "uses" those traces, then there shouldn't be any difference: you can use your favorite tracing tool that supports USDT e.g. systemtap. The GNOME documentation for that is:</p>
<blockquote dir="auto">
<p>GLib ships with a file libglib-2.0.so.<em>.stp which defines a set of probe points, which you can hook into with custom SystemTap scripts. See the files libglib-2.0.so.</em>.stp, libgobject-2.0.so.<em>.stp and libgio-2.0.so.</em>.stp which are in your shared SystemTap scripts directory.</p>
</blockquote>
<p dir="auto">If you are looking for the code that "defines" those "traces" everything is linked from the above NSS comment.</p>
<p dir="auto">In short, pre-processing <code>.d</code> files (rather than post-processing the resulting ELF binary with Perl... script) allows the USDT to be defined in a declarative way (and thus prevents misuses) and serves documentation.</p>
<p dir="auto">The same pattern is also used in sssd, which you must be familiar with:
<a href="https://github.com/SSSD/sssd/blob/master/src/systemtap/sssd_probes.d" rel="nofollow noreferrer noopener" target="_blank">https://github.com/SSSD/sssd/blob/master/src/systemtap/sssd_probes.d</a></p>
</div>


</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/merge_requests/1340#note_423164138">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/-/sent_notifications/675692d8b9eaf4e0648751c3036beb09/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Merge request","url":"https://gitlab.com/gnutls/gnutls/-/merge_requests/1340#note_423164138"}}</script>


</p>
</div>
</body>
</html>