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 { "sctp", "__sctp_", &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 { "sctp", "send", 0, 0, "mblk_t *", "pktinfo_t *" },
948 { "sctp", "send", 1, 1, "ip_xmit_attr_t *", "csinfo_t *" },
949 { "sctp", "send", 2, 2, "void_ip_t *", "ipinfo_t *" },
950 { "sctp", "send", 3, 3, "sctp_t *", "sctpsinfo_t *" },
951 { "sctp", "send", 4, 4, "sctp_hdr_t *", "sctpinfo_t *" },
952
953 { "sysevent", "post", 0, 0, "evch_bind_t *", "syseventchaninfo_t *" },
954 { "sysevent", "post", 1, 1, "sysevent_impl_t *", "syseventinfo_t *" },
955
956 { "xpv", "add-to-physmap-end", 0, 0, "int" },
957 { "xpv", "add-to-physmap-start", 0, 0, "domid_t" },
958 { "xpv", "add-to-physmap-start", 1, 1, "uint_t" },
959 { "xpv", "add-to-physmap-start", 2, 2, "ulong_t" },
960 { "xpv", "add-to-physmap-start", 3, 3, "ulong_t" },
961 { "xpv", "decrease-reservation-end", 0, 0, "int" },
962 { "xpv", "decrease-reservation-start", 0, 0, "domid_t" },
963 { "xpv", "decrease-reservation-start", 1, 1, "ulong_t" },
964 { "xpv", "decrease-reservation-start", 2, 2, "uint_t" },
965 { "xpv", "decrease-reservation-start", 3, 3, "ulong_t *" },
966 { "xpv", "dom-create-start", 0, 0, "xen_domctl_t *" },
967 { "xpv", "dom-destroy-start", 0, 0, "domid_t" },
968 { "xpv", "dom-pause-start", 0, 0, "domid_t" },
969 { "xpv", "dom-unpause-start", 0, 0, "domid_t" },
970 { "xpv", "dom-create-end", 0, 0, "int" },
971 { "xpv", "dom-destroy-end", 0, 0, "int" },
972 { "xpv", "dom-pause-end", 0, 0, "int" },
|