public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Josh Stone <jistone@redhat.com>
To: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Nils Carlson <nils.carlson@ericsson.com>,
	       "ltt-dev@lists.casi.polymtl.ca"
	<ltt-dev@lists.casi.polymtl.ca>,
	       Steven Rostedt <srostedt@redhat.com>,
	       Steven Rostedt <rostedt@goodmis.org>,
	       "systemtap@sources.redhat.com"
	<systemtap@sources.redhat.com>
Subject: Re: [UST PATCH] Tracepoints: add wrapper tracepoint() macro
Date: Mon, 11 Apr 2011 21:21:00 -0000	[thread overview]
Message-ID: <4DA370BA.2050307@redhat.com> (raw)
In-Reply-To: <20110411141423.GA10639@Krystal>

On 04/11/2011 07:14 AM, Mathieu Desnoyers wrote:
> * Nils Carlson (nils.carlson@ericsson.com) wrote:
>> Hi,
>>
>> Again, looks good, but maybe we should prefix with ust_ ?
> 
> This is a very important question. The goal of this tracepoint
> instrumentation is to replace the Dtrace instrumentation, which is
> somewhat implementation-driven (fixed number of u32 values AFAIK) by
> something more generic that allows a variable number of arguments.
> Mapping from a generic "tracepoint()" macro to DTrace macros could then
> be done in a compatibility header layer.

I'm not certain about DTrace's implementation, but I doubt that they
limit the args so much.  In SystemTap, we permit 0-10 pointers and
integers up to 64-bit, with size and signed-ness maintained.

> So although it makes sense to use a ust_ prefix for all the UST-specific
> APIs, including e.g. probe registration to tracepoints, I'm really not
> convinced that the prefix would be appropriate for the instrumentation
> macros that will be called from the instrumented code.
> 
> tracepoint() seems less likely to clash with other namespaces than
> "trace()", while still being generic enough.
> 
> I'm open to comments, and especially interested to know what the
> SystemTAP team think about this issue.

I think in most projects where we have added SDT, they use wrapper
macros in their own namespace anyway, e.g. PYTHON_FUNCTION_ENTRY(),
perhaps so they can more easily be defined empty on other platforms.  So
IMO it really only matters that your definitions don't conflict, and the
rest will probably be abstracted.

Josh

      reply	other threads:[~2011-04-11 21:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-10 23:18 Mathieu Desnoyers
2011-04-11 12:04 ` Nils Carlson
2011-04-11 14:14   ` Mathieu Desnoyers
2011-04-11 21:21     ` Josh Stone [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DA370BA.2050307@redhat.com \
    --to=jistone@redhat.com \
    --cc=ltt-dev@lists.casi.polymtl.ca \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=nils.carlson@ericsson.com \
    --cc=rostedt@goodmis.org \
    --cc=srostedt@redhat.com \
    --cc=systemtap@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).