linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: "Tzvetomir Stoyanov (VMware)" <tz.stoyanov@gmail.com>
Cc: linux-trace-devel@vger.kernel.org
Subject: Re: [PATCH 2/3] trace-cmd: Move plugin options from trace-cmd to libtraceevent.
Date: Mon, 29 Jul 2019 13:01:09 -0400	[thread overview]
Message-ID: <20190729130109.782ff3a6@gandalf.local.home> (raw)
In-Reply-To: <20190726124308.18735-3-tz.stoyanov@gmail.com>

On Fri, 26 Jul 2019 15:43:07 +0300
"Tzvetomir Stoyanov (VMware)" <tz.stoyanov@gmail.com> wrote:

> --- a/lib/trace-cmd/trace-util.c
> +++ b/lib/trace-cmd/trace-util.c
> @@ -29,18 +29,6 @@
>  int tracecmd_disable_sys_plugins;
>  int tracecmd_disable_plugins;
>  
> -static struct registered_plugin_options {
> -	struct registered_plugin_options	*next;
> -	struct tep_plugin_option			*options;
> -} *registered_options;
> -
> -static struct trace_plugin_options {
> -	struct trace_plugin_options	*next;
> -	char				*plugin;
> -	char				*option;
> -	char				*value;
> -} *trace_plugin_options;

Hmm, so this is identical to what's in lib/traceevent/event-plugin.c.

This doesn't affect this patch (and I may just take this patch as is),
but I'm thinking that we should make the plugins part of the tep
handler. That way, if you have two different tep handlers, each one
will need to register its own set of plugins.

We'll have to look to see if that's possible, because we will need to
do that for the application as a whole. Or perhaps we can add a
"tep_clone_plugin" option that allows a single "plugin" to be
registered to multiple tep handlers.

Again, this is a conversation not to really do with this patch, but
something to think about before releasing the libtraceevent library to
the wild.

-- Steve

  reply	other threads:[~2019-07-29 17:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-26 12:43 [PATCH 0/3] Remove redundant trace-cmd plugin handling logic Tzvetomir Stoyanov (VMware)
2019-07-26 12:43 ` [PATCH 1/3] trace-cmd: Move kernel_stack event handler to "function" plugin Tzvetomir Stoyanov (VMware)
2019-07-26 12:43 ` [PATCH 2/3] trace-cmd: Move plugin options from trace-cmd to libtraceevent Tzvetomir Stoyanov (VMware)
2019-07-29 17:01   ` Steven Rostedt [this message]
2019-07-26 12:43 ` [PATCH 3/3] trace-cmd: Remove trace-cmd plugin handling routines Tzvetomir Stoyanov (VMware)

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=20190729130109.782ff3a6@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=linux-trace-devel@vger.kernel.org \
    --cc=tz.stoyanov@gmail.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 NNTP newsgroup(s).