public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
To: Tom Zanussi <tom.zanussi@linux.intel.com>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
	Thomas Gleixner <tglx@linutronix.de>,
	rostedt <rostedt@goodmis.org>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	Michael Jeanson <mjeanson@efficios.com>
Subject: Dynamic tracepoints in 4.11.8-rt5
Date: Wed, 12 Jul 2017 15:56:49 +0000 (UTC)	[thread overview]
Message-ID: <758517446.14680.1499875009807.JavaMail.zimbra@efficios.com> (raw)

Hi Tom,

I notice this commit appears in linux-rt-devel 4.11.8-rt5
(and it is not in upstream Linux):

003100371 tracing: Add support for dynamic tracepoints

It adds a "bool dynamic" argument to tracepoint_probe_unregister.

I'm trying to figure out why this change is introduced as a new API
"dynamic_tracepoint_probe_register()" and by adding a boolean
to tracepoint_probe_unregister().

Allowing the user of register API to mixup between dynamic
and non-dynamic boolean values for the same tracepoint instance
seems fragile.

Given that the "dynamic" nature of this new kind of tracepoint
appears to be associated with the tracepoint instance
(struct tracepoint), why can't we simply add a "bool dynamic"
field to struct tracepoint, so we can deal with this internally
within tracepoint.c without exposing this detail in the register
API ?

This would also take care of currently diverging module APIs for the
GPL-exported symbol tracepoint_unregister() between Linux upstream
and linux-rt.

Thanks,

Mathieu

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

             reply	other threads:[~2017-07-12 15:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-12 15:56 Mathieu Desnoyers [this message]
2017-07-12 16:42 ` Dynamic tracepoints in 4.11.8-rt5 Tom Zanussi

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=758517446.14680.1499875009807.JavaMail.zimbra@efficios.com \
    --to=mathieu.desnoyers@efficios.com \
    --cc=bigeasy@linutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mjeanson@efficios.com \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    --cc=tom.zanussi@linux.intel.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