All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Statically compiling LTTNG
       [not found] <MW2PR2101MB0988D353BB406B8292BEE9018B9D0@MW2PR2101MB0988.namprd21.prod.outlook.com>
@ 2019-10-03 14:56 ` Michael Jeanson
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Jeanson @ 2019-10-03 14:56 UTC (permalink / raw)
  To: lttng-dev

On 2019-10-01 7:19 p.m., Eddie Kong via lttng-dev wrote:
> Hello,
> 
> Thank you for all the good work with LTTNG! We’d love to use LTTNG to do
> analysis in our systems 😊 We are running with a very stripped down
> version of linux (no package manager, a lot of basic functionalities
> removed etc). Was wondering if you know of a way to statically compile
> LTTNG so that we can simply unpack our initrd.img, drop the LTTNG
> binaries in, repack it, and just run LTTNG to collect diagnostic data.
> The intent is to keep the system as minimal as possible with LTTNG
> working inside it.
> 
> Thank you,
> 
> Eddie

Hi,

First it depends if you want to do kernel or userspace tracing?

For userspace, lttng-ust requires dynamic linking, so that's a no go.

On the kernel side, you will need to either build lttng-modules in your
kernel image or ship the modules in your initrd. Then you'll have to
statically build lttng-tools and all it's dependencies. I see no obvious
reasons why it wouldn't work, but it's not a scenario we do any testing for.

Cheers,

Michael
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Statically compiling LTTNG
@ 2019-10-01 23:19 Eddie Kong via lttng-dev
  0 siblings, 0 replies; 2+ messages in thread
From: Eddie Kong via lttng-dev @ 2019-10-01 23:19 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 540 bytes --]

Hello,

Thank you for all the good work with LTTNG! We’d love to use LTTNG to do analysis in our systems 😊 We are running with a very stripped down version of linux (no package manager, a lot of basic functionalities removed etc). Was wondering if you know of a way to statically compile LTTNG so that we can simply unpack our initrd.img, drop the LTTNG binaries in, repack it, and just run LTTNG to collect diagnostic data. The intent is to keep the system as minimal as possible with LTTNG working inside it.

Thank you,
Eddie

[-- Attachment #1.2: Type: text/html, Size: 2511 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-03 14:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <MW2PR2101MB0988D353BB406B8292BEE9018B9D0@MW2PR2101MB0988.namprd21.prod.outlook.com>
2019-10-03 14:56 ` Statically compiling LTTNG Michael Jeanson
2019-10-01 23:19 Eddie Kong via lttng-dev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.