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

Bug#944138: ITP: libtraceevent -- The libtraceevent library provides APIs to access kernel tracepoint events



On Fri, Nov 08, 2019 at 07:56:55PM +0000, Ben Hutchings wrote:
> On Mon, 2019-11-04 at 21:44 +0000, Sudip Mukherjee wrote:
> [...]
> > The code for libtracevent lives in the kernel tree at
> > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git in tools/lib/traceevent folder.
> > And so, it will be great if kernel team will like to package and maintain it, if not, then I will
> > be happy to do it. But, if I am doing it then I will need a sponsor to upload it.
> 
> If kernel.org's kernel source repository is the canonical location for
> this code, not just a convenience copy, then the binary package should
> be built from src:linux and not a separate source package.
> 
> I think src:linux already builds the library, but only as a static
> library that's linked into perf.
> 
> I don't know exactly what changes you would need to make, but they
> should be roughly along these lines:
> 
<snip>
> 
> 4. Generate the debian/libtraceevent<soversion>.symbols file recording
>    the shared library's exported symbols.

Thanks for your reply Ben.
I will try these steps and see how it goes.

> 
> 5. (Not sure if this is needed.)  Modify
>    debian/rules.d/tools/perf/Makefile to make perf use the shared
>    library.  Add libtraceevent<soversion> to the dependencies of
>    linux-perf-<version> in debian/templates/control.tools-versioned.in.

This should not be needed as perf does not yet depend on libtraceevent.
The libtraceevent that perf is creating is only having the plugins.


--
Regards
Sudip


Reply to: