Streamline doesn't show Linux kernel source in code section

Hi Streamline team,

I'm trying to use Streamline to analyze a userspace program and a driver in the Linux kernel which is used by the userspace one.

I managed to get a capture with some of the functions I added to the Linux kernel but when I double click on the function it doesn't show anything in the code section (just empty table). When I attached my userspace program it worked fine and I could see the source code in the code section.

While creating the capture, I attached a debug vmlinux file as mentioned in "streamline/gator/README.md" file.

$ file vmlinux
vmlinux: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), statically linked, BuildID[sha1]=4a2c0d4f1853fda4b1b6f86f2f68c0fb437ac585, with debug_info, not stripped

I'm analyzing a system running on Raspberry Pi 3 B+ with a custom Linux image based on Buildroot. I'm adding below some screenshots for my capture.

Note that the function "cv_neon_read" is part of the code I added to the linux kernel but when I double click on it, it doesn't show in code

Is there something I need to do to enabled the kernel code to be visible in the code section?

Thanks,
KJ Yang

Parents
  • Hi KJ Yang,

    Thanks for the info you provided. The kernel configuration file you attached contains all the necessary configs.

    I have another couple questions to ask:

    • Can you specify the DWARF version of your vmlinux image?
      • To know that you can run the following code
        readelf --debug-dump=info vmlinux | grep "Version:" | tail -n 1


    • When you right-click on the capture and choose Analyze, do you see the vmlinux image in the Program Images list?
      if yes, is the image detected as "Debug Info" image?
      • For reference, it should look something like that:

    Kind Regards,
    Yahya

Reply
  • Hi KJ Yang,

    Thanks for the info you provided. The kernel configuration file you attached contains all the necessary configs.

    I have another couple questions to ask:

    • Can you specify the DWARF version of your vmlinux image?
      • To know that you can run the following code
        readelf --debug-dump=info vmlinux | grep "Version:" | tail -n 1


    • When you right-click on the capture and choose Analyze, do you see the vmlinux image in the Program Images list?
      if yes, is the image detected as "Debug Info" image?
      • For reference, it should look something like that:

    Kind Regards,
    Yahya

Children