add lttng to kernel build steps#18
Conversation
Signed-off-by: Evan Flynn <evanflynn.msu@gmail.com>
Signed-off-by: Evan Flynn <evanflynn.msu@gmail.com>
|
making this a draft as im still unsure if this actually works yet. need to test the generated kernel today |
|
I rebuilt it today and this time copied the prompts here: these prompts have the same names as the ones I added to the |
|
@flynneva, you can check if they are active in your |
Signed-off-by: Evan Flynn <evan.flynn@apex.ai>
Signed-off-by: Evan Flynn <evan.flynn@apex.ai>
|
I've confirmed the output when following the |
|
output of the `cat metadata` from tracing logs
|
razr
left a comment
There was a problem hiding this comment.
Does it make sense to add a few words in the README describing why do we need to add lttng support?
Dockerfile
Outdated
| # download lttng source for use later | ||
| # TODO(flynneva): make script to auto-determine which version to get? | ||
| RUN cd $HOME \ | ||
| && wget https://lttng.org/files/lttng-modules/lttng-modules-${LTTNG}.tar.bz2 \ |
There was a problem hiding this comment.
it is not better to get sources from Ubuntu directly, like
$ sudo apt-add-repository ppa:lttng/stable-2.12
$ sudo apt-get update
$ apt-get source lttng-modules-dkmsthey are patched afaics.
There was a problem hiding this comment.
@razr sure that sounds great, I was only following the build instructions from the lttng-module website
There was a problem hiding this comment.
I don't think it really changes anything in practice, but ROS 2 (well, ros2_tracing) currently targets the versions of LTTng available from the usual Ubuntu packages. So if we want to stick to that, we shouldn't use the PPA here. You can still call apt-get source without the PPA of course.
Signed-off-by: Evan Flynn <evan.flynn@apex.ai>
|
@razr i implemented your recommendations and am building the kernel again now just to confirm everything works as expected. ill follow up here once its done building and tested. |
|
would probably be good to get @christophebedard input / review here as well |
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>

this PR tries to add lttng tracer to the kernel build process as brought up in #16.
building the kernel now so there might be a few more commits to come to get it fully working.
im not 100% sure if all the CONFIG settings are needed but I've added them all and commented out a few that I dont think are necessary...feel free to chime in here if you think some should be uncommented.
with
lttngenabled, the kernel build step (make ARCH=...) prompts the user with some questions, unfortunately I wasnt fast enough this time to copy it down but will try later on. I just stuck with the "default" options (capitol letters) like M, Y or N.once merged this should close #16