lisa icon indicating copy to clipboard operation
lisa copied to clipboard

how to recompile systemtap scripts

Open firmianay opened this issue 5 years ago • 3 comments

Hi, great work!

I want to write my own systemtap scripts and how I can recompile it to insert in the qemu images?

thanks.

firmianay avatar Feb 24 '20 01:02 firmianay

Hi,

For cross-compiling systemtap scripts you need:

  • cross-compiler
  • kernel build tree of the image you're compiling your scripts for - LiSa's images are prepared using buildroot. Buildroot outputs kernel build tree to output/build/linux-{version}

I prepared docker image for compiling systemtap scripts, so you can use this project, or just follow similar setup as in the repo.

LiSa's images are currently uploaded here (these are only compressed images). If you have an idea where I could upload those images, including kernel build tree - so you can use them for compiling your scripts, I'd be happy to do that.

You can copy built systemtap modules using e2cp to copy file inside ext2/ext3 filesystem.

danielpoliakov avatar Feb 25 '20 14:02 danielpoliakov

Thanks for your reply.

Buildroot seems a good tool to build embedded Linux, but I have not used it before. Please give me some advices about which configuration options I need to set or anything else, then I can make a LiSa-like image myself.

Maybe you can upload those files to Google Drive (free 15GB), and share the link to others.

firmianay avatar Feb 26 '20 06:02 firmianay

Thanks for your reply.

Buildroot seems a good tool to build embedded Linux, but I have not used it before. Please give me some advices about which configuration options I need to set or anything else, then I can make a LiSa-like image myself.

Maybe you can upload those files to Google Drive (free 15GB), and share the link to others.

Hi

Have you found the way to recompile ? I wanna build an PowerPC Linux kernel image containing Systemtap but I have no idea about how to do it. Plz let me know if you already got the answer.

Thanks

a798047815 avatar May 15 '21 07:05 a798047815