Skip to content

Instantly share code, notes, and snippets.

@brendangregg
Created March 12, 2013 22:58
Show Gist options
  • Save brendangregg/5147879 to your computer and use it in GitHub Desktop.
Save brendangregg/5147879 to your computer and use it in GitHub Desktop.
inter-zone ping TX
# dtrace -Fn 'fbt::mac_tx_send:entry /execname == "ping"/ { self->in = 1; } fbt::mac_tx_send:return { exit(0); } fbt:mac:: { trace(timestamp); }'
dtrace: description 'fbt::mac_tx_send:entry ' matched 1410 probes
CPU FUNCTION
8 -> mac_tx 13822389790096059
8 -> mac_protect_check 13822389790102650
8 -> mac_protect_check_one 13822389790104778
8 -> mac_vlan_header_info 13822389790106716
8 -> mac_header_info 13822389790107876
8 <- mac_header_info 13822389790108803
8 <- mac_vlan_header_info 13822389790110092
8 -> ipnospoof_check 13822389790112370
8 -> get_l3_info 13822389790113949
8 <- get_l3_info 13822389790115528
8 -> ipnospoof_check_v4 13822389790117465
8 <- ipnospoof_check_v4 13822389790118678
8 -> intercept_dhcpv4_outbound 13822389790120919
8 -> get_dhcpv4_info 13822389790122513
8 <- get_dhcpv4_info 13822389790123588
8 <- intercept_dhcpv4_outbound 13822389790124909
8 <- ipnospoof_check 13822389790126423
8 -> dhcpnospoof_check 13822389790130810
8 -> get_l3_info 13822389790131291
8 <- get_l3_info 13822389790131747
8 -> dhcpnospoof_check_v4 13822389790132751
8 -> get_dhcpv4_info 13822389790133261
8 <- get_dhcpv4_info 13822389790133772
8 <- dhcpnospoof_check_v4 13822389790134699
8 <- dhcpnospoof_check 13822389790135630
8 <- mac_protect_check_one 13822389790136602
8 <- mac_protect_check 13822389790137897
8 -> mac_tx_single_ring_mode 13822389790139241
8 -> mac_tx_send 13822389790145897
8 -> mac_tx_classify 13822389790146721
8 -> mac_flow_lookup 13822389790147802
8 -> flow_ether_accept 13822389790148710
8 <- flow_ether_accept 13822389790149191
8 -> flow_ether_hash 13822389790149829
8 <- flow_ether_hash 13822389790150452
8 -> flow_l2_match 13822389790152357
8 <- flow_l2_match 13822389790153436
8 <- mac_flow_lookup 13822389790154041
8 <- mac_tx_classify 13822389790155231
8 -> mac_flow_get_client_cookie 13822389790156526
8 <- mac_flow_get_client_cookie 13822389790157477
8 -> mac_promisc_dispatch 13822389790158123
8 -> mac_is_mcast 13822389790158783
8 -> mac_header_info 13822389790159244
8 <- mac_header_info 13822389790159732
8 <- mac_is_mcast 13822389790160255
8 <- mac_promisc_dispatch 13822389790161154
8 -> mac_fix_cksum 13822389790163107
8 <- mac_fix_cksum 13822389790164914
8 -> mac_rx_srs_process 13822389790166439
8 <- mac_rx_srs_process 13822389790170184
8 <- mac_tx_send
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment