Linux-Trace-Devel Archive on
 help / color / Atom feed
From: Steven Rostedt <>
Subject: Re: [PATCH] trace-cmd: Add support for built-in plugins
Date: Mon, 11 Nov 2019 18:02:24 -0500
Message-ID: <20191111180224.2992867b@gandalf.local.home> (raw)
In-Reply-To: <>

Hi Vincent,

On Thu,  7 Nov 2019 11:35:32 +0000 wrote:

> From: Vincent Donnefort <>
> When building trace-cmd with the -static option, plugins might not work, if
> the shared version for the Glibc is not available on the system. To still
> give a chance to have plugins, a new built-in mechanism is introduced.
> The built-in build support for a plugin can be easily enabled with the
> declaration:
>  TEP_PLUGIN(plugin_name)
>  {
>          plugin_init()
>  }
>  /* optional */
>  TEP_PLUGIN(plugin_name)
>  {
>          plugin_exit()
>  }
> Enabling as a first step, blk and sched_switch plugins as built-in.

I don't have a problem with the idea of this patch. My concern is that
the code in lib/traceevent will soon be obsoleted by using the
libtraceevent library in the Linux kernel under tools/lib/traceevent.

That means when we transition to the libtraceevent library, this work
will be lost.

Instead, could this be added to tools/lib/traceevent in the Linux
kernel somehow, and instead of building it into the executable, perhaps
make it part of the libtraceevent.a file (the static version of the


-- Steve

      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-07 11:35 vincent.donnefort
2019-11-11 23:02 ` Steven Rostedt [this message]

Reply instructions:

You may reply publically 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:

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

  git send-email \
    --in-reply-to=20191111180224.2992867b@gandalf.local.home \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-Trace-Devel Archive on

Archives are clonable:
	git clone --mirror linux-trace-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-trace-devel linux-trace-devel/ \
	public-inbox-index linux-trace-devel

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone