1 1.1 christos /* 2 1.1 christos * Generated by dtrace(1M). 3 1.1 christos */ 4 1.1 christos 5 1.1 christos #ifndef _PROBES_H 6 1.1 christos #define _PROBES_H 7 1.1 christos 8 1.1 christos #include <unistd.h> 9 1.1 christos 10 1.1 christos #ifdef __cplusplus 11 1.1 christos extern "C" { 12 1.1 christos #endif 13 1.1 christos 14 1.1 christos #include <sys/sdt.h> 15 1.1 christos 16 1.3 christos #if defined(DTRACE) && _DTRACE_VERSION 17 1.1 christos 18 1.1 christos #define LIBISC_JOB_CB_AFTER(arg0, arg1, arg2) \ 19 1.1 christos __dtrace_libisc___job_cb_after(arg0, arg1, arg2) 20 1.1 christos #ifndef __sparc 21 1.1 christos #define LIBISC_JOB_CB_AFTER_ENABLED() \ 22 1.1 christos __dtraceenabled_libisc___job_cb_after() 23 1.1 christos #else 24 1.1 christos #define LIBISC_JOB_CB_AFTER_ENABLED() \ 25 1.1 christos __dtraceenabled_libisc___job_cb_after(0) 26 1.1 christos #endif 27 1.1 christos #define LIBISC_JOB_CB_BEFORE(arg0, arg1, arg2) \ 28 1.1 christos __dtrace_libisc___job_cb_before(arg0, arg1, arg2) 29 1.1 christos #ifndef __sparc 30 1.1 christos #define LIBISC_JOB_CB_BEFORE_ENABLED() \ 31 1.1 christos __dtraceenabled_libisc___job_cb_before() 32 1.1 christos #else 33 1.1 christos #define LIBISC_JOB_CB_BEFORE_ENABLED() \ 34 1.1 christos __dtraceenabled_libisc___job_cb_before(0) 35 1.1 christos #endif 36 1.1 christos #define LIBISC_RWLOCK_DESTROY(arg0) \ 37 1.1 christos __dtrace_libisc___rwlock_destroy(arg0) 38 1.1 christos #ifndef __sparc 39 1.1 christos #define LIBISC_RWLOCK_DESTROY_ENABLED() \ 40 1.1 christos __dtraceenabled_libisc___rwlock_destroy() 41 1.1 christos #else 42 1.1 christos #define LIBISC_RWLOCK_DESTROY_ENABLED() \ 43 1.1 christos __dtraceenabled_libisc___rwlock_destroy(0) 44 1.1 christos #endif 45 1.1 christos #define LIBISC_RWLOCK_DOWNGRADE(arg0) \ 46 1.1 christos __dtrace_libisc___rwlock_downgrade(arg0) 47 1.1 christos #ifndef __sparc 48 1.1 christos #define LIBISC_RWLOCK_DOWNGRADE_ENABLED() \ 49 1.1 christos __dtraceenabled_libisc___rwlock_downgrade() 50 1.1 christos #else 51 1.1 christos #define LIBISC_RWLOCK_DOWNGRADE_ENABLED() \ 52 1.1 christos __dtraceenabled_libisc___rwlock_downgrade(0) 53 1.1 christos #endif 54 1.1 christos #define LIBISC_RWLOCK_INIT(arg0) \ 55 1.1 christos __dtrace_libisc___rwlock_init(arg0) 56 1.1 christos #ifndef __sparc 57 1.1 christos #define LIBISC_RWLOCK_INIT_ENABLED() \ 58 1.1 christos __dtraceenabled_libisc___rwlock_init() 59 1.1 christos #else 60 1.1 christos #define LIBISC_RWLOCK_INIT_ENABLED() \ 61 1.1 christos __dtraceenabled_libisc___rwlock_init(0) 62 1.1 christos #endif 63 1.1 christos #define LIBISC_RWLOCK_RDLOCK_ACQ(arg0) \ 64 1.1 christos __dtrace_libisc___rwlock_rdlock_acq(arg0) 65 1.1 christos #ifndef __sparc 66 1.1 christos #define LIBISC_RWLOCK_RDLOCK_ACQ_ENABLED() \ 67 1.1 christos __dtraceenabled_libisc___rwlock_rdlock_acq() 68 1.1 christos #else 69 1.1 christos #define LIBISC_RWLOCK_RDLOCK_ACQ_ENABLED() \ 70 1.1 christos __dtraceenabled_libisc___rwlock_rdlock_acq(0) 71 1.1 christos #endif 72 1.1 christos #define LIBISC_RWLOCK_RDLOCK_REQ(arg0) \ 73 1.1 christos __dtrace_libisc___rwlock_rdlock_req(arg0) 74 1.1 christos #ifndef __sparc 75 1.1 christos #define LIBISC_RWLOCK_RDLOCK_REQ_ENABLED() \ 76 1.1 christos __dtraceenabled_libisc___rwlock_rdlock_req() 77 1.1 christos #else 78 1.1 christos #define LIBISC_RWLOCK_RDLOCK_REQ_ENABLED() \ 79 1.1 christos __dtraceenabled_libisc___rwlock_rdlock_req(0) 80 1.1 christos #endif 81 1.1 christos #define LIBISC_RWLOCK_RDUNLOCK(arg0) \ 82 1.1 christos __dtrace_libisc___rwlock_rdunlock(arg0) 83 1.1 christos #ifndef __sparc 84 1.1 christos #define LIBISC_RWLOCK_RDUNLOCK_ENABLED() \ 85 1.1 christos __dtraceenabled_libisc___rwlock_rdunlock() 86 1.1 christos #else 87 1.1 christos #define LIBISC_RWLOCK_RDUNLOCK_ENABLED() \ 88 1.1 christos __dtraceenabled_libisc___rwlock_rdunlock(0) 89 1.1 christos #endif 90 1.1 christos #define LIBISC_RWLOCK_TRYRDLOCK(arg0, arg1) \ 91 1.1 christos __dtrace_libisc___rwlock_tryrdlock(arg0, arg1) 92 1.1 christos #ifndef __sparc 93 1.1 christos #define LIBISC_RWLOCK_TRYRDLOCK_ENABLED() \ 94 1.1 christos __dtraceenabled_libisc___rwlock_tryrdlock() 95 1.1 christos #else 96 1.1 christos #define LIBISC_RWLOCK_TRYRDLOCK_ENABLED() \ 97 1.1 christos __dtraceenabled_libisc___rwlock_tryrdlock(0) 98 1.1 christos #endif 99 1.1 christos #define LIBISC_RWLOCK_TRYUPGRADE(arg0, arg1) \ 100 1.1 christos __dtrace_libisc___rwlock_tryupgrade(arg0, arg1) 101 1.1 christos #ifndef __sparc 102 1.1 christos #define LIBISC_RWLOCK_TRYUPGRADE_ENABLED() \ 103 1.1 christos __dtraceenabled_libisc___rwlock_tryupgrade() 104 1.1 christos #else 105 1.1 christos #define LIBISC_RWLOCK_TRYUPGRADE_ENABLED() \ 106 1.1 christos __dtraceenabled_libisc___rwlock_tryupgrade(0) 107 1.1 christos #endif 108 1.1 christos #define LIBISC_RWLOCK_TRYWRLOCK(arg0, arg1) \ 109 1.1 christos __dtrace_libisc___rwlock_trywrlock(arg0, arg1) 110 1.1 christos #ifndef __sparc 111 1.1 christos #define LIBISC_RWLOCK_TRYWRLOCK_ENABLED() \ 112 1.1 christos __dtraceenabled_libisc___rwlock_trywrlock() 113 1.1 christos #else 114 1.1 christos #define LIBISC_RWLOCK_TRYWRLOCK_ENABLED() \ 115 1.1 christos __dtraceenabled_libisc___rwlock_trywrlock(0) 116 1.1 christos #endif 117 1.1 christos #define LIBISC_RWLOCK_WRLOCK_ACQ(arg0) \ 118 1.1 christos __dtrace_libisc___rwlock_wrlock_acq(arg0) 119 1.1 christos #ifndef __sparc 120 1.1 christos #define LIBISC_RWLOCK_WRLOCK_ACQ_ENABLED() \ 121 1.1 christos __dtraceenabled_libisc___rwlock_wrlock_acq() 122 1.1 christos #else 123 1.1 christos #define LIBISC_RWLOCK_WRLOCK_ACQ_ENABLED() \ 124 1.1 christos __dtraceenabled_libisc___rwlock_wrlock_acq(0) 125 1.1 christos #endif 126 1.1 christos #define LIBISC_RWLOCK_WRLOCK_REQ(arg0) \ 127 1.1 christos __dtrace_libisc___rwlock_wrlock_req(arg0) 128 1.1 christos #ifndef __sparc 129 1.1 christos #define LIBISC_RWLOCK_WRLOCK_REQ_ENABLED() \ 130 1.1 christos __dtraceenabled_libisc___rwlock_wrlock_req() 131 1.1 christos #else 132 1.1 christos #define LIBISC_RWLOCK_WRLOCK_REQ_ENABLED() \ 133 1.1 christos __dtraceenabled_libisc___rwlock_wrlock_req(0) 134 1.1 christos #endif 135 1.1 christos #define LIBISC_RWLOCK_WRUNLOCK(arg0) \ 136 1.1 christos __dtrace_libisc___rwlock_wrunlock(arg0) 137 1.1 christos #ifndef __sparc 138 1.1 christos #define LIBISC_RWLOCK_WRUNLOCK_ENABLED() \ 139 1.1 christos __dtraceenabled_libisc___rwlock_wrunlock() 140 1.1 christos #else 141 1.1 christos #define LIBISC_RWLOCK_WRUNLOCK_ENABLED() \ 142 1.1 christos __dtraceenabled_libisc___rwlock_wrunlock(0) 143 1.1 christos #endif 144 1.1 christos 145 1.1 christos 146 1.1 christos extern void __dtrace_libisc___job_cb_after(void *, void *, void *); 147 1.1 christos #ifndef __sparc 148 1.1 christos extern int __dtraceenabled_libisc___job_cb_after(void); 149 1.1 christos #else 150 1.1 christos extern int __dtraceenabled_libisc___job_cb_after(long); 151 1.1 christos #endif 152 1.1 christos extern void __dtrace_libisc___job_cb_before(void *, void *, void *); 153 1.1 christos #ifndef __sparc 154 1.1 christos extern int __dtraceenabled_libisc___job_cb_before(void); 155 1.1 christos #else 156 1.1 christos extern int __dtraceenabled_libisc___job_cb_before(long); 157 1.1 christos #endif 158 1.1 christos extern void __dtrace_libisc___rwlock_destroy(void *); 159 1.1 christos #ifndef __sparc 160 1.1 christos extern int __dtraceenabled_libisc___rwlock_destroy(void); 161 1.1 christos #else 162 1.1 christos extern int __dtraceenabled_libisc___rwlock_destroy(long); 163 1.1 christos #endif 164 1.1 christos extern void __dtrace_libisc___rwlock_downgrade(void *); 165 1.1 christos #ifndef __sparc 166 1.1 christos extern int __dtraceenabled_libisc___rwlock_downgrade(void); 167 1.1 christos #else 168 1.1 christos extern int __dtraceenabled_libisc___rwlock_downgrade(long); 169 1.1 christos #endif 170 1.1 christos extern void __dtrace_libisc___rwlock_init(void *); 171 1.1 christos #ifndef __sparc 172 1.1 christos extern int __dtraceenabled_libisc___rwlock_init(void); 173 1.1 christos #else 174 1.1 christos extern int __dtraceenabled_libisc___rwlock_init(long); 175 1.1 christos #endif 176 1.1 christos extern void __dtrace_libisc___rwlock_rdlock_acq(void *); 177 1.1 christos #ifndef __sparc 178 1.1 christos extern int __dtraceenabled_libisc___rwlock_rdlock_acq(void); 179 1.1 christos #else 180 1.1 christos extern int __dtraceenabled_libisc___rwlock_rdlock_acq(long); 181 1.1 christos #endif 182 1.1 christos extern void __dtrace_libisc___rwlock_rdlock_req(void *); 183 1.1 christos #ifndef __sparc 184 1.1 christos extern int __dtraceenabled_libisc___rwlock_rdlock_req(void); 185 1.1 christos #else 186 1.1 christos extern int __dtraceenabled_libisc___rwlock_rdlock_req(long); 187 1.1 christos #endif 188 1.1 christos extern void __dtrace_libisc___rwlock_rdunlock(void *); 189 1.1 christos #ifndef __sparc 190 1.1 christos extern int __dtraceenabled_libisc___rwlock_rdunlock(void); 191 1.1 christos #else 192 1.1 christos extern int __dtraceenabled_libisc___rwlock_rdunlock(long); 193 1.1 christos #endif 194 1.1 christos extern void __dtrace_libisc___rwlock_tryrdlock(void *, int); 195 1.1 christos #ifndef __sparc 196 1.1 christos extern int __dtraceenabled_libisc___rwlock_tryrdlock(void); 197 1.1 christos #else 198 1.1 christos extern int __dtraceenabled_libisc___rwlock_tryrdlock(long); 199 1.1 christos #endif 200 1.1 christos extern void __dtrace_libisc___rwlock_tryupgrade(void *, int); 201 1.1 christos #ifndef __sparc 202 1.1 christos extern int __dtraceenabled_libisc___rwlock_tryupgrade(void); 203 1.1 christos #else 204 1.1 christos extern int __dtraceenabled_libisc___rwlock_tryupgrade(long); 205 1.1 christos #endif 206 1.1 christos extern void __dtrace_libisc___rwlock_trywrlock(void *, int); 207 1.1 christos #ifndef __sparc 208 1.1 christos extern int __dtraceenabled_libisc___rwlock_trywrlock(void); 209 1.1 christos #else 210 1.1 christos extern int __dtraceenabled_libisc___rwlock_trywrlock(long); 211 1.1 christos #endif 212 1.1 christos extern void __dtrace_libisc___rwlock_wrlock_acq(void *); 213 1.1 christos #ifndef __sparc 214 1.1 christos extern int __dtraceenabled_libisc___rwlock_wrlock_acq(void); 215 1.1 christos #else 216 1.1 christos extern int __dtraceenabled_libisc___rwlock_wrlock_acq(long); 217 1.1 christos #endif 218 1.1 christos extern void __dtrace_libisc___rwlock_wrlock_req(void *); 219 1.1 christos #ifndef __sparc 220 1.1 christos extern int __dtraceenabled_libisc___rwlock_wrlock_req(void); 221 1.1 christos #else 222 1.1 christos extern int __dtraceenabled_libisc___rwlock_wrlock_req(long); 223 1.1 christos #endif 224 1.1 christos extern void __dtrace_libisc___rwlock_wrunlock(void *); 225 1.1 christos #ifndef __sparc 226 1.1 christos extern int __dtraceenabled_libisc___rwlock_wrunlock(void); 227 1.1 christos #else 228 1.1 christos extern int __dtraceenabled_libisc___rwlock_wrunlock(long); 229 1.1 christos #endif 230 1.1 christos 231 1.1 christos #else 232 1.1 christos 233 1.1 christos #define LIBISC_JOB_CB_AFTER(arg0, arg1, arg2) 234 1.1 christos #define LIBISC_JOB_CB_AFTER_ENABLED() (0) 235 1.1 christos #define LIBISC_JOB_CB_BEFORE(arg0, arg1, arg2) 236 1.1 christos #define LIBISC_JOB_CB_BEFORE_ENABLED() (0) 237 1.1 christos #define LIBISC_RWLOCK_DESTROY(arg0) 238 1.1 christos #define LIBISC_RWLOCK_DESTROY_ENABLED() (0) 239 1.1 christos #define LIBISC_RWLOCK_DOWNGRADE(arg0) 240 1.1 christos #define LIBISC_RWLOCK_DOWNGRADE_ENABLED() (0) 241 1.1 christos #define LIBISC_RWLOCK_INIT(arg0) 242 1.1 christos #define LIBISC_RWLOCK_INIT_ENABLED() (0) 243 1.1 christos #define LIBISC_RWLOCK_RDLOCK_ACQ(arg0) 244 1.1 christos #define LIBISC_RWLOCK_RDLOCK_ACQ_ENABLED() (0) 245 1.1 christos #define LIBISC_RWLOCK_RDLOCK_REQ(arg0) 246 1.1 christos #define LIBISC_RWLOCK_RDLOCK_REQ_ENABLED() (0) 247 1.1 christos #define LIBISC_RWLOCK_RDUNLOCK(arg0) 248 1.1 christos #define LIBISC_RWLOCK_RDUNLOCK_ENABLED() (0) 249 1.1 christos #define LIBISC_RWLOCK_TRYRDLOCK(arg0, arg1) 250 1.1 christos #define LIBISC_RWLOCK_TRYRDLOCK_ENABLED() (0) 251 1.1 christos #define LIBISC_RWLOCK_TRYUPGRADE(arg0, arg1) 252 1.1 christos #define LIBISC_RWLOCK_TRYUPGRADE_ENABLED() (0) 253 1.1 christos #define LIBISC_RWLOCK_TRYWRLOCK(arg0, arg1) 254 1.1 christos #define LIBISC_RWLOCK_TRYWRLOCK_ENABLED() (0) 255 1.1 christos #define LIBISC_RWLOCK_WRLOCK_ACQ(arg0) 256 1.1 christos #define LIBISC_RWLOCK_WRLOCK_ACQ_ENABLED() (0) 257 1.1 christos #define LIBISC_RWLOCK_WRLOCK_REQ(arg0) 258 1.1 christos #define LIBISC_RWLOCK_WRLOCK_REQ_ENABLED() (0) 259 1.1 christos #define LIBISC_RWLOCK_WRUNLOCK(arg0) 260 1.1 christos #define LIBISC_RWLOCK_WRUNLOCK_ENABLED() (0) 261 1.1 christos 262 1.1 christos #endif 263 1.1 christos 264 1.1 christos 265 1.1 christos #ifdef __cplusplus 266 1.1 christos } 267 1.1 christos #endif 268 1.1 christos 269 1.1 christos #endif /* _PROBES_H */ 270