Skip to content

Instantly share code, notes, and snippets.

@mandarjog
Created April 12, 2023 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mandarjog/df08d8f3bd795090b4f81299e0423433 to your computer and use it in GitHub Desktop.
Save mandarjog/df08d8f3bd795090b4f81299e0423433 to your computer and use it in GitHub Desktop.
Flow_dissector_with_UDP
1) | irq_exit_rcu() {
1) | __do_softirq() {
1) | net_rx_action() {
1) 0.128 us | __usecs_to_jiffies();
1) | __napi_poll() {
1) | e1000_clean [e1000]() {
1) 0.880 us | e1000_clean_tx_irq [e1000]();
1) | e1000_clean_rx_irq [e1000]() {
1) | __napi_alloc_skb() {
1) | __alloc_skb() {
1) 0.198 us | napi_skb_cache_get();
1) | kmalloc_reserve() {
1) | __kmalloc_node_track_caller() {
1) 0.220 us | kmalloc_slab();
1) 0.129 us | should_failslab();
1) 1.709 us | }
1) 2.124 us | }
1) | ksize() {
1) 0.214 us | kfence_ksize();
1) 0.575 us | __ksize();
1) 1.420 us | }
1) 0.135 us | __build_skb_around();
1) 5.044 us | }
1) 5.374 us | }
1) 0.680 us | dma_sync_single_for_cpu();
1) 0.188 us | skb_put();
1) 0.146 us | skb_trim();
1) 0.516 us | eth_type_trans();
1) | napi_gro_receive() {
1) | dev_gro_receive() {
1) 0.139 us | gro_list_prepare();
1) 0.132 us | __rcu_read_lock();
1) | inet_gro_receive() {
1) | udp4_gro_receive() {
1) | __skb_gro_checksum_complete() {
1) | skb_checksum() {
1) | __skb_checksum() {
1) 0.167 us | csum_partial();
1) 0.523 us | }
1) 0.854 us | }
1) 1.450 us | }
1) | __udp4_lib_lookup() {
1) 0.269 us | udp4_lib_lookup2();
1) 0.546 us | udp4_lib_lookup2();
1) 1.580 us | }
1) | udp_gro_receive() {
1) 0.155 us | csum_partial();
1) | fou_gro_receive [fou]() {
1) | ipip_gro_receive() {
1) 0.216 us | inet_gro_receive();
1) 0.475 us | }
1) 1.121 us | }
1) 2.422 us | }
1) 6.250 us | }
1) 7.350 us | }
1) 0.131 us | __rcu_read_unlock();
1) 8.918 us | }
1) 9.334 us | }
1) 3.287 us | e1000_alloc_rx_buffers [e1000]();
1) + 22.176 us | }
1) | napi_complete_done() {
1) | netif_receive_skb_list_internal() {
1) 0.647 us | ktime_get_with_offset();
1) 0.217 us | skb_defer_rx_timestamp();
1) 0.135 us | __rcu_read_lock();
1) | get_rps_cpu() {
1) | __skb_get_hash() {
1) | __skb_flow_dissect() {
1) 0.133 us | __rcu_read_lock();
1) | bpf_flow_dissect() {
1) 0.201 us | migrate_disable();
1) 0.493 us | bpf_bprintf_prepare();
1) 0.276 us | _raw_spin_lock_irqsave();
1) 0.147 us | _raw_spin_unlock_irqrestore();
1) 0.132 us | bpf_bprintf_cleanup();
1) 0.197 us | bpf_bprintf_prepare();
1) 0.138 us | _raw_spin_lock_irqsave();
1) 0.135 us | _raw_spin_unlock_irqrestore();
1) 0.133 us | bpf_bprintf_cleanup();
1) 0.132 us | bpf_bprintf_cleanup();
1) 0.345 us | migrate_enable();
1) + 13.013 us | }
1) 0.167 us | __skb_flow_bpf_to_target();
1) 0.146 us | __rcu_read_unlock();
1) + 14.941 us | }
1) + 15.488 us | }
1) + 16.328 us | }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment