Path of UDP packet in linux kernel

前端 未结 3 1070
夕颜
夕颜 2020-12-12 23:32

I want to find the path of a UDP packet in the Linux kernel. For this, I want to read up on some documentation ( I have this so far, which is for TCP) and then have some pri

3条回答
  •  萌比男神i
    2020-12-12 23:51

    If you prefer a more visual way, try flame-grahps. Here is an example of UDP transmit flow (using netperf to transmit UDP packets):

    And here is the same graph zoomed-in on udp_send_skb:

    You can do the same for any relevant flow in the kernel. You can also search for specific functions or key-words and zoom in/out. This also gives you an idea of the heavier functions in the flow.

    Hope this helps.

提交回复
热议问题