Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel function graph trace symbol lost #1991

Closed
kernel-cyrus opened this issue Jan 21, 2025 · 3 comments
Closed

Kernel function graph trace symbol lost #1991

kernel-cyrus opened this issue Jan 21, 2025 · 3 comments
Labels

Comments

@kernel-cyrus
Copy link

When tracing for kernel, seeing a lot of "__compound_literal.1", seems some symbols get lost.

Command:

$ gcc -pg test.c -o test
$ sudo uftrace record -k -K 30 test
$ uftrace graph

Output:

    750.055 ms :  +-(1) main
    9.057 us :     +-(1) getpid
    7.521 us :     | (2) __compound_literal.1
    6.145 us :     | (1) __compound_literal.1
    5.025 us :     | (1) __compound_literal.1
    3.905 us :     | (1) __compound_literal.1
    2.753 us :     | (1) __compound_literal.1
    1.057 us :     | (2) __compound_literal.1
             :     | 
    1.778 ms :     +-(5) printf
    1.742 ms :     | (12) __compound_literal.1
    1.736 ms :     | (6) __compound_literal.1
    1.729 ms :     | (6) __compound_literal.1
  192.577 us :     |  +-(1) __arm64_sys_newfstatat
  156.001 us :     |  |  +-(1) vfs_statx
   97.281 us :     |  |  |  +-(1) user_path_at_empty
   40.320 us :     |  |  |  |  +-(1) getname_flags
   33.376 us :     |  |  |  |  |  +-(1) kmem_cache_alloc
   29.760 us :     |  |  |  |  |  |  +-(1) fs_reclaim_acquire
   27.200 us :     |  |  |  |  |  |  | (1) __compound_literal.1
   26.592 us :     |  |  |  |  |  |  | (1) __compound_literal.1
   25.760 us :     |  |  |  |  |  |  | (1) __compound_literal.1
   22.720 us :     |  |  |  |  |  |  | (4) __compound_literal.1
   16.704 us :     |  |  |  |  |  |  |  +-(7) __compound_literal.1
   12.640 us :     |  |  |  |  |  |  |  | (4) __compound_literal.1
   10.528 us :     |  |  |  |  |  |  |  | (2) __compound_literal.1
@honggyukim
Copy link
Collaborator

That's weird. It would be helpful if you could share more system info. At least, the kernel version with uname -r is needed.

@kernel-cyrus
Copy link
Author

kernel-cyrus commented Jan 22, 2025

I finally solved this problem by disabling KGDB in the kernel config.

My platform is Nvidia AGX Orin, and the kernel is Nvidia Tegra kernel 5.15.

For some debug reason, I enabled the KGDB, and the problem finnally got solved by just disabling it.

Hope this information could help somebody else.

@honggyukim
Copy link
Collaborator

That's good to hear that you found the solution. Thanks for the info.

This kind of question and answer are always helpful for the later reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants