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

Will you add support for perf record logs ? #643

Open
ampresent opened this issue May 6, 2019 · 2 comments
Open

Will you add support for perf record logs ? #643

ampresent opened this issue May 6, 2019 · 2 comments
Labels

Comments

@ampresent
Copy link

A sample:

swapper     0 [002] 269487.939345:   63788766 cycles:                                                                                                                                                                                                                      ┤
            7fff810bcda8 set_next_entity ([kernel.kallsyms])                                                                                                                                                                                                               ┤
            7fff810c1d97 pick_next_task_fair ([kernel.kallsyms])                                                                                                                                                                                                           ┤
            7fff8164481b __schedule ([kernel.kallsyms])                                                                                                                                                                                                                    ┤
            7fff81646329 schedule_preempt_disabled ([kernel.kallsyms])                                                                                                                                                                                                     ┤
            7fff810d8554 cpu_startup_entry ([kernel.kallsyms])                                                                                                                                                                                                             ┤
            7fff8104a40a start_secondary ([kernel.kallsyms])                                                                                                                                                                                                               ┤
                                                                                                                                                                                                                                                                           ┤
netperf 78892 [000] 269487.956142:   55073703 cycles:                                                                                                                                                                                                                      ┤
            7fff81172788 get_pageblock_flags_group ([kernel.kallsyms])                                                                                                                                                                                                     ┤
            7fff81173ca8 __free_pages_ok.part.60 ([kernel.kallsyms])                                                                                                                                                                                                       ┤
            7fff81173d28 free_compound_page ([kernel.kallsyms])                                                                                                                                                                                                            ┤
            7fff811799cf __put_compound_page ([kernel.kallsyms])                                                                                                                                                                                                           ┤
            7fff81179a41 put_compound_page ([kernel.kallsyms])                                                                                                                                                                                                             ┤
            7fff81179bac put_page ([kernel.kallsyms])                                                                                                                                                                                                                      ┤
            7fff815237e8 skb_release_data ([kernel.kallsyms])                                                                                                                                                                                                              ┤
            7fff81523894 skb_release_all ([kernel.kallsyms])                                                                                                                                                                                                               ┤
            7fff815238b2 __kfree_skb ([kernel.kallsyms])                                                                                                                                                                                                                   ┤
            7fff81588d8c tcp_ack ([kernel.kallsyms])                                                                                                                                                                                                                       ┤
            7fff81589f98 tcp_rcv_established ([kernel.kallsyms])                                                                                                                                                                                                           ┤
            7fff8159497a tcp_v4_do_rcv ([kernel.kallsyms])                                                                                                                                                                                                                 ┤
            7fff8151e901 release_sock ([kernel.kallsyms])                                                                                                                                                                                                                  ┤
            7fff81580c66 tcp_sendmsg ([kernel.kallsyms])                                                                                                                                                                                                                   ┤
            7fff815ab1e4 inet_sendmsg ([kernel.kallsyms])                                                                                                                                                                                                                  ┤
            7fff8151a340 sock_sendmsg ([kernel.kallsyms])                                                                                                                                                                                                                  ┤
            7fff8151a8b1 SYSC_sendto ([kernel.kallsyms])                                                                                                                                                                                                                   ┤
            7fff8151b33e sys_sendto ([kernel.kallsyms])                                                                                                                                                                                                                    ┤
            7fff81650289 system_call_fastpath ([kernel.kallsyms])                                                                                                                                                                                                          ┤
                   ffb6d __libc_send (/usr/lib64/libc-2.17.so)                                                                                                                                                                                                             ┤
                   1a41f send_omni_inner (/home/yihao.wyh/netperf/bin/netperf)                                                                                                                                                                                             ┤
                   1cd85 send_tcp_stream (/home/yihao.wyh/netperf/bin/netperf)                                                                                                                                                                                             ┤
                    2522 main (/home/yihao.wyh/netperf/bin/netperf)                                                                                                                                                                                                        ┤
                   22445 __libc_start_main (/usr/lib64/libc-2.17.so)                                                                                                                                                                                                       ┤
@tstack
Copy link
Owner

tstack commented May 7, 2019

Can you point me at a detailed description of the format? I can't quite tell what's what at the moment.

For example, is "269487.939345" a timestamp? Is it seconds from boot time?

@ampresent
Copy link
Author

Yes, "269487.939345" is uptime.

I find that lnav don't recognize uptime well. Since that, I think adding interface for users to help lnav recognize time with regex or something might be useful too.

Another thing comes to me is that, in the sample I give, there are call stacks. How do I do some analyzation over the call stacks ? Maybe this logging isn't so structured so we'd better not take it as a log file in the first place ?

Thanks!

@tstack tstack added the format label Sep 26, 2020
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