1. 程式人生 > 實用技巧 >協議棧丟包

協議棧丟包

  perf record -g -a -e skb:kfree_skb
  perf report -g -i  perf.data
 perf script

[root@bogon ~]# perf script
swapper     0 [040] 5492213.051842: skb:kfree_skb: skbaddr=0xffff809fc51e3300 protocol=34525 location=0xffff000008
        ffff0000086d7468 kfree_skb+0xd0 ([kernel.kallsyms])
        ffff0000086d7468 kfree_skb+0xd0
([kernel.kallsyms]) ffff0000087c01b8 ipv6_rcv+0x194 ([kernel.kallsyms]) ffff0000086e9e94 __netif_receive_skb_core+0x320 ([kernel.kallsyms]) ffff0000086ecedc __netif_receive_skb+0x34 ([kernel.kallsyms]) ffff0000086f0594 netif_receive_skb_internal+0x78 ([kernel.kallsyms]) ffff0000086f12a0 napi_gro_receive
+0xcc ([kernel.kallsyms]) ffff000001081158 hns_nic_rx_up_pro+0x38 ([kernel.kallsyms]) ffff0000010828a8 hns_nic_rx_poll_one+0x258 ([kernel.kallsyms]) ffff0000010811bc hns_nic_common_poll+0x58 ([kernel.kallsyms]) ffff0000086f0c58 net_rx_action+0x314 ([kernel.kallsyms]) ffff000008081a7c __softirqentry_text_start
+0x11c ([kernel.kallsyms]) ffff0000080db130 irq_exit+0x120 ([kernel.kallsyms]) ffff00000813c09c __handle_domain_irq+0x78 ([kernel.kallsyms]) ffff000008081848 gic_handle_irq+0xa0 ([kernel.kallsyms]) ffff0000080830b0 el1_irq+0xb0 ([kernel.kallsyms]) ffff00000808580c arch_cpu_idle+0x44 ([kernel.kallsyms]) ffff000008836ac0 default_idle_call+0x20 ([kernel.kallsyms]) ffff000008120b84 do_idle+0x158 ([kernel.kallsyms]) ffff000008120d98 cpu_startup_entry+0x2c ([kernel.kallsyms]) ffff000008091068 secondary_start_kernel+0x150 ([kernel.kallsyms])