Re: [PATCH] trace-cmd: Add support for built-in plugins

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Vincent,

On Thu,  7 Nov 2019 11:35:32 +0000
vincent.donnefort@xxxxxxx wrote:

> From: Vincent Donnefort <vincent.donnefort@xxxxxxx>
> 
> 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
libary).

Thoughts?

-- Steve





[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux