Print this page
dccp: basic dtrace


  90 
  91 static dtrace_pattr_t iscsi_attr = {
  92 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
  93 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
  94 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
  95 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_ISA },
  96 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
  97 };
  98 
  99 sdt_provider_t sdt_providers[] = {
 100         { "vtrace", "__vtrace_", &vtrace_attr, 0 },
 101         { "sysinfo", "__cpu_sysinfo_", &info_attr, 0 },
 102         { "vminfo", "__cpu_vminfo_", &info_attr, 0 },
 103         { "fpuinfo", "__fpuinfo_", &fpu_attr, 0 },
 104         { "sched", "__sched_", &stab_attr, 0 },
 105         { "proc", "__proc_", &stab_attr, 0 },
 106         { "io", "__io_", &stab_attr, 0 },
 107         { "ip", "__ip_", &stab_attr, 0 },
 108         { "tcp", "__tcp_", &stab_attr, 0 },
 109         { "udp", "__udp_", &stab_attr, 0 },

 110         { "mib", "__mib_", &stab_attr, 0 },
 111         { "fsinfo", "__fsinfo_", &fsinfo_attr, 0 },
 112         { "iscsi", "__iscsi_", &iscsi_attr, 0 },
 113         { "nfsv3", "__nfsv3_", &stab_attr, 0 },
 114         { "nfsv4", "__nfsv4_", &stab_attr, 0 },
 115         { "xpv", "__xpv_", &xpv_attr, 0 },
 116         { "fc", "__fc_", &fc_attr, 0 },
 117         { "srp", "__srp_", &fc_attr, 0 },
 118         { "sysevent", "__sysevent_", &stab_attr, 0 },
 119         { "sdt", NULL, &sdt_attr, 0 },
 120         { NULL }
 121 };
 122 
 123 sdt_argdesc_t sdt_args[] = {
 124         { "sched", "wakeup", 0, 0, "kthread_t *", "lwpsinfo_t *" },
 125         { "sched", "wakeup", 1, 0, "kthread_t *", "psinfo_t *" },
 126         { "sched", "dequeue", 0, 0, "kthread_t *", "lwpsinfo_t *" },
 127         { "sched", "dequeue", 1, 0, "kthread_t *", "psinfo_t *" },
 128         { "sched", "dequeue", 2, 1, "disp_t *", "cpuinfo_t *" },
 129         { "sched", "enqueue", 0, 0, "kthread_t *", "lwpsinfo_t *" },


 926         { "tcp", "send", 2, 2, "__dtrace_tcp_void_ip_t *", "ipinfo_t *" },
 927         { "tcp", "send", 3, 3, "tcp_t *", "tcpsinfo_t *" },
 928         { "tcp", "send", 4, 4, "__dtrace_tcp_tcph_t *", "tcpinfo_t *" },
 929         { "tcp", "receive", 0, 0, "mblk_t *", "pktinfo_t *" },
 930         { "tcp", "receive", 1, 1, "ip_xmit_attr_t *", "csinfo_t *" },
 931         { "tcp", "receive", 2, 2, "__dtrace_tcp_void_ip_t *", "ipinfo_t *" },
 932         { "tcp", "receive", 3, 3, "tcp_t *", "tcpsinfo_t *" },
 933         { "tcp", "receive", 4, 4, "__dtrace_tcp_tcph_t *", "tcpinfo_t *" },
 934 
 935         { "udp", "send", 0, 0, "mblk_t *", "pktinfo_t *" },
 936         { "udp", "send", 1, 1, "ip_xmit_attr_t *", "csinfo_t *" },
 937         { "udp", "send", 2, 2, "void_ip_t *", "ipinfo_t *" },
 938         { "udp", "send", 3, 3, "udp_t *", "udpsinfo_t *" },
 939         { "udp", "send", 4, 4, "udpha_t *", "udpinfo_t *" },
 940         { "udp", "receive", 0, 0, "mblk_t *", "pktinfo_t *" },
 941         { "udp", "receive", 1, 1, "ip_xmit_attr_t *", "csinfo_t *" },
 942         { "udp", "receive", 2, 2, "void_ip_t *", "ipinfo_t *" },
 943         { "udp", "receive", 3, 3, "udp_t *", "udpsinfo_t *" },
 944         { "udp", "receive", 4, 4, "udpha_t *", "udpinfo_t *" },
 945 











































 946         { "sysevent", "post", 0, 0, "evch_bind_t *", "syseventchaninfo_t *" },
 947         { "sysevent", "post", 1, 1, "sysevent_impl_t *", "syseventinfo_t *" },
 948 
 949         { "xpv", "add-to-physmap-end", 0, 0, "int" },
 950         { "xpv", "add-to-physmap-start", 0, 0, "domid_t" },
 951         { "xpv", "add-to-physmap-start", 1, 1, "uint_t" },
 952         { "xpv", "add-to-physmap-start", 2, 2, "ulong_t" },
 953         { "xpv", "add-to-physmap-start", 3, 3, "ulong_t" },
 954         { "xpv", "decrease-reservation-end", 0, 0, "int" },
 955         { "xpv", "decrease-reservation-start", 0, 0, "domid_t" },
 956         { "xpv", "decrease-reservation-start", 1, 1, "ulong_t" },
 957         { "xpv", "decrease-reservation-start", 2, 2, "uint_t" },
 958         { "xpv", "decrease-reservation-start", 3, 3, "ulong_t *" },
 959         { "xpv", "dom-create-start", 0, 0, "xen_domctl_t *" },
 960         { "xpv", "dom-destroy-start", 0, 0, "domid_t" },
 961         { "xpv", "dom-pause-start", 0, 0, "domid_t" },
 962         { "xpv", "dom-unpause-start", 0, 0, "domid_t" },
 963         { "xpv", "dom-create-end", 0, 0, "int" },
 964         { "xpv", "dom-destroy-end", 0, 0, "int" },
 965         { "xpv", "dom-pause-end", 0, 0, "int" },




  90 
  91 static dtrace_pattr_t iscsi_attr = {
  92 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
  93 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
  94 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_UNKNOWN },
  95 { DTRACE_STABILITY_PRIVATE, DTRACE_STABILITY_PRIVATE, DTRACE_CLASS_ISA },
  96 { DTRACE_STABILITY_EVOLVING, DTRACE_STABILITY_EVOLVING, DTRACE_CLASS_ISA },
  97 };
  98 
  99 sdt_provider_t sdt_providers[] = {
 100         { "vtrace", "__vtrace_", &vtrace_attr, 0 },
 101         { "sysinfo", "__cpu_sysinfo_", &info_attr, 0 },
 102         { "vminfo", "__cpu_vminfo_", &info_attr, 0 },
 103         { "fpuinfo", "__fpuinfo_", &fpu_attr, 0 },
 104         { "sched", "__sched_", &stab_attr, 0 },
 105         { "proc", "__proc_", &stab_attr, 0 },
 106         { "io", "__io_", &stab_attr, 0 },
 107         { "ip", "__ip_", &stab_attr, 0 },
 108         { "tcp", "__tcp_", &stab_attr, 0 },
 109         { "udp", "__udp_", &stab_attr, 0 },
 110         { "dccp", "__dccp_", &stab_attr, 0 },
 111         { "mib", "__mib_", &stab_attr, 0 },
 112         { "fsinfo", "__fsinfo_", &fsinfo_attr, 0 },
 113         { "iscsi", "__iscsi_", &iscsi_attr, 0 },
 114         { "nfsv3", "__nfsv3_", &stab_attr, 0 },
 115         { "nfsv4", "__nfsv4_", &stab_attr, 0 },
 116         { "xpv", "__xpv_", &xpv_attr, 0 },
 117         { "fc", "__fc_", &fc_attr, 0 },
 118         { "srp", "__srp_", &fc_attr, 0 },
 119         { "sysevent", "__sysevent_", &stab_attr, 0 },
 120         { "sdt", NULL, &sdt_attr, 0 },
 121         { NULL }
 122 };
 123 
 124 sdt_argdesc_t sdt_args[] = {
 125         { "sched", "wakeup", 0, 0, "kthread_t *", "lwpsinfo_t *" },
 126         { "sched", "wakeup", 1, 0, "kthread_t *", "psinfo_t *" },
 127         { "sched", "dequeue", 0, 0, "kthread_t *", "lwpsinfo_t *" },
 128         { "sched", "dequeue", 1, 0, "kthread_t *", "psinfo_t *" },
 129         { "sched", "dequeue", 2, 1, "disp_t *", "cpuinfo_t *" },
 130         { "sched", "enqueue", 0, 0, "kthread_t *", "lwpsinfo_t *" },


 927         { "tcp", "send", 2, 2, "__dtrace_tcp_void_ip_t *", "ipinfo_t *" },
 928         { "tcp", "send", 3, 3, "tcp_t *", "tcpsinfo_t *" },
 929         { "tcp", "send", 4, 4, "__dtrace_tcp_tcph_t *", "tcpinfo_t *" },
 930         { "tcp", "receive", 0, 0, "mblk_t *", "pktinfo_t *" },
 931         { "tcp", "receive", 1, 1, "ip_xmit_attr_t *", "csinfo_t *" },
 932         { "tcp", "receive", 2, 2, "__dtrace_tcp_void_ip_t *", "ipinfo_t *" },
 933         { "tcp", "receive", 3, 3, "tcp_t *", "tcpsinfo_t *" },
 934         { "tcp", "receive", 4, 4, "__dtrace_tcp_tcph_t *", "tcpinfo_t *" },
 935 
 936         { "udp", "send", 0, 0, "mblk_t *", "pktinfo_t *" },
 937         { "udp", "send", 1, 1, "ip_xmit_attr_t *", "csinfo_t *" },
 938         { "udp", "send", 2, 2, "void_ip_t *", "ipinfo_t *" },
 939         { "udp", "send", 3, 3, "udp_t *", "udpsinfo_t *" },
 940         { "udp", "send", 4, 4, "udpha_t *", "udpinfo_t *" },
 941         { "udp", "receive", 0, 0, "mblk_t *", "pktinfo_t *" },
 942         { "udp", "receive", 1, 1, "ip_xmit_attr_t *", "csinfo_t *" },
 943         { "udp", "receive", 2, 2, "void_ip_t *", "ipinfo_t *" },
 944         { "udp", "receive", 3, 3, "udp_t *", "udpsinfo_t *" },
 945         { "udp", "receive", 4, 4, "udpha_t *", "udpinfo_t *" },
 946 
 947         { "dccp", "connect-established", 0, 0, "mblk_t *", "pktinfo_t *" },
 948         { "dccp", "connect-established", 1, 1, "ip_xmit_attr_t *",
 949             "csinfo_t *" },
 950         { "dccp", "connect-established", 2, 2, "void_ip_t *", "ipinfo_t *" },
 951         { "dccp", "connect-established", 3, 3, "dccp_t *", "dccpsinfo_t *" },
 952         { "dccp", "connect-established", 4, 4, "dccph_t *", "dccpinfo_t *" },
 953         { "dccp", "connect-refused", 0, 0, "mblk_t *", "pktinfo_t *" },
 954         { "dccp", "connect-refused", 1, 1, "ip_xmit_attr_t *", "csinfo_t *" },
 955         { "dccp", "connect-refused", 2, 2, "void_ip_t *", "ipinfo_t *" },
 956         { "dccp", "connect-refused", 3, 3, "dccp_t *", "dccpsinfo_t *" },
 957         { "dccp", "connect-refused", 4, 4, "dccph_t *", "dccpinfo_t *" },
 958         { "dccp", "connect-request", 0, 0, "mblk_t *", "pktinfo_t *" },
 959         { "dccp", "connect-request", 1, 1, "ip_xmit_attr_t *", "csinfo_t *" },
 960         { "dccp", "connect-request", 2, 2, "void_ip_t *", "ipinfo_t *" },
 961         { "dccp", "connect-request", 3, 3, "dccp_t *", "dccpsinfo_t *" },
 962         { "dccp", "connect-request", 4, 4, "dccph_t *", "dccpinfo_t *" },
 963         { "dccp", "accept-established", 0, 0, "mblk_t *", "pktinfo_t *" },
 964         { "dccp", "accept-established", 1, 1, "ip_xmit_attr_t *", "csinfo_t *" },
 965         { "dccp", "accept-established", 2, 2, "void_ip_t *", "ipinfo_t *" },
 966         { "dccp", "accept-established", 3, 3, "dccp_t *", "dccpsinfo_t *" },
 967         { "dccp", "accept-established", 4, 4, "dccph_t *", "dccpinfo_t *" },
 968         { "dccp", "accept-refused", 0, 0, "mblk_t *", "pktinfo_t *" },
 969         { "dccp", "accept-refused", 1, 1, "ip_xmit_attr_t *", "csinfo_t *" },
 970         { "dccp", "accept-refused", 2, 2, "void_ip_t *", "ipinfo_t *" },
 971         { "dccp", "accept-refused", 3, 3, "dccp_t *", "dccpsinfo_t *" },
 972         { "dccp", "accept-refused", 4, 4, "dccph_t *", "dccpinfo_t *" },
 973         { "dccp", "state-change", 0, 0, "void", "void" },
 974         { "dccp", "state-change", 1, 1, "ip_xmit_attr_t *", "csinfo_t *" },
 975         { "dccp", "state-change", 2, 2, "void", "void" },
 976         { "dccp", "state-change", 3, 3, "dccp_t *", "dccpsinfo_t *" },
 977         { "dccp", "state-change", 4, 4, "void", "void" },
 978         { "dccp", "state-change", 5, 5, "int32_t", "dccplsinfo_t *" },
 979         { "dccp", "send", 0, 0, "mblk_t *", "pktinfo_t *" },
 980         { "dccp", "send", 1, 1, "ip_xmit_attr_t *", "csinfo_t *" },
 981         { "dccp", "send", 2, 2, "__dtrace_dccp_void_ip_t *", "ipinfo_t *" },
 982         { "dccp", "send", 3, 3, "dccp_t *", "dccpsinfo_t *" },
 983         { "dccp", "send", 4, 4, "__dtrace_dccp_dccph_t *", "dccpinfo_t *" },
 984         { "dccp", "receive", 0, 0, "mblk_t *", "pktinfo_t *" },
 985         { "dccp", "receive", 1, 1, "ip_xmit_attr_t *", "csinfo_t *" },
 986         { "dccp", "receive", 2, 2, "__dtrace_dccp_void_ip_t *", "ipinfo_t *" },
 987         { "dccp", "receive", 3, 3, "dccp_t *", "dccpsinfo_t *" },
 988         { "dccp", "receive", 4, 4, "__dtrace_dccp_dccph_t *", "dccpinfo_t *" },
 989 
 990         { "sysevent", "post", 0, 0, "evch_bind_t *", "syseventchaninfo_t *" },
 991         { "sysevent", "post", 1, 1, "sysevent_impl_t *", "syseventinfo_t *" },
 992 
 993         { "xpv", "add-to-physmap-end", 0, 0, "int" },
 994         { "xpv", "add-to-physmap-start", 0, 0, "domid_t" },
 995         { "xpv", "add-to-physmap-start", 1, 1, "uint_t" },
 996         { "xpv", "add-to-physmap-start", 2, 2, "ulong_t" },
 997         { "xpv", "add-to-physmap-start", 3, 3, "ulong_t" },
 998         { "xpv", "decrease-reservation-end", 0, 0, "int" },
 999         { "xpv", "decrease-reservation-start", 0, 0, "domid_t" },
1000         { "xpv", "decrease-reservation-start", 1, 1, "ulong_t" },
1001         { "xpv", "decrease-reservation-start", 2, 2, "uint_t" },
1002         { "xpv", "decrease-reservation-start", 3, 3, "ulong_t *" },
1003         { "xpv", "dom-create-start", 0, 0, "xen_domctl_t *" },
1004         { "xpv", "dom-destroy-start", 0, 0, "domid_t" },
1005         { "xpv", "dom-pause-start", 0, 0, "domid_t" },
1006         { "xpv", "dom-unpause-start", 0, 0, "domid_t" },
1007         { "xpv", "dom-create-end", 0, 0, "int" },
1008         { "xpv", "dom-destroy-end", 0, 0, "int" },
1009         { "xpv", "dom-pause-end", 0, 0, "int" },