Where Online Learning is simpler!
The C and C++ Include Header Files
/usr/include/ntirpc/lttng/xprt.h
$ cat -n /usr/include/ntirpc/lttng/xprt.h 1 /* 2 * vim:noexpandtab:shiftwidth=8:tabstop=8: 3 * 4 * Copyright 2018-2019 Red Hat, Inc. and/or its affiliates. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are met: 9 * - Redistributions of source code must retain the above copyright notice, 10 * this list of conditions and the following disclaimer. 11 * - Redistributions in binary form must reproduce the above copyright notice, 12 * this list of conditions and the following disclaimer in the documentation 13 * and/or other materials provided with the distribution. 14 * - Neither the name of Sun Microsystems, Inc. nor the names of its 15 * contributors may be used to endorse or promote products derived 16 * from this software without specific prior written permission. 17 * 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 22 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * POSSIBILITY OF SUCH DAMAGE. 29 */ 30 31 #include "config.h" 32 #include
33 34 #undef TRACEPOINT_PROVIDER 35 #define TRACEPOINT_PROVIDER xprt 36 37 #if !defined(GANESHA_LTTNG_XPRT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ) 38 #define GANESHA_LTTNG_XPRT_TP_H 39 40 #include
41 42 TRACEPOINT_EVENT( 43 xprt, 44 ref, 45 TP_ARGS(const char *, function, 46 unsigned int, line, 47 void *, xprt, 48 uint32_t, count), 49 TP_FIELDS( 50 ctf_string(fnc, function) 51 ctf_integer(unsigned int, line, line) 52 ctf_integer_hex(void *, xprt, xprt) 53 ctf_integer(uint32_t, count, count) 54 ) 55 ) 56 57 TRACEPOINT_LOGLEVEL( 58 xprt, 59 ref, 60 TRACE_INFO) 61 62 TRACEPOINT_EVENT( 63 xprt, 64 unref, 65 TP_ARGS(const char *, function, 66 unsigned int, line, 67 void *, xprt, 68 uint32_t, count), 69 TP_FIELDS( 70 ctf_string(fnc, function) 71 ctf_integer(unsigned int, line, line) 72 ctf_integer_hex(void *, xprt, xprt) 73 ctf_integer(uint32_t, count, count) 74 ) 75 ) 76 77 TRACEPOINT_LOGLEVEL( 78 xprt, 79 unref, 80 TRACE_INFO) 81 82 TRACEPOINT_EVENT( 83 xprt, 84 destroy, 85 TP_ARGS(const char *, function, 86 unsigned int, line, 87 void *, xprt, 88 uint16_t, flags), 89 TP_FIELDS( 90 ctf_string(fnc, function) 91 ctf_integer(unsigned int, line, line) 92 ctf_integer_hex(void *, xprt, xprt) 93 ctf_integer_hex(uint16_t, flags, flags) 94 ) 95 ) 96 97 TRACEPOINT_LOGLEVEL( 98 xprt, 99 destroy, 100 TRACE_INFO) 101 102 TRACEPOINT_EVENT( 103 xprt, 104 unhook, 105 TP_ARGS(const char *, function, 106 unsigned int, line, 107 void *, xprt, 108 uint32_t, flags), 109 TP_FIELDS( 110 ctf_string(fnc, function) 111 ctf_integer(unsigned int, line, line) 112 ctf_integer_hex(void *, xprt, xprt) 113 ctf_integer_hex(uint32_t, flags, flags) 114 ) 115 ) 116 117 TRACEPOINT_LOGLEVEL( 118 xprt, 119 unhook, 120 TRACE_INFO) 121 122 TRACEPOINT_EVENT( 123 xprt, 124 rearm, 125 TP_ARGS(const char *, function, 126 unsigned int, line, 127 void *, xprt, 128 uint32_t, flags), 129 TP_FIELDS( 130 ctf_string(fnc, function) 131 ctf_integer(unsigned int, line, line) 132 ctf_integer_hex(void *, xprt, xprt) 133 ctf_integer_hex(uint32_t, flags, flags) 134 ) 135 ) 136 137 TRACEPOINT_LOGLEVEL( 138 xprt, 139 rearm, 140 TRACE_INFO) 141 142 TRACEPOINT_EVENT( 143 xprt, 144 hook, 145 TP_ARGS(const char *, function, 146 unsigned int, line, 147 void *, xprt, 148 uint32_t, flags), 149 TP_FIELDS( 150 ctf_string(fnc, function) 151 ctf_integer(unsigned int, line, line) 152 ctf_integer_hex(void *, xprt, xprt) 153 ctf_integer_hex(uint32_t, flags, flags) 154 ) 155 ) 156 157 TRACEPOINT_LOGLEVEL( 158 xprt, 159 hook, 160 TRACE_INFO) 161 162 TRACEPOINT_EVENT( 163 xprt, 164 event, 165 TP_ARGS(const char *, function, 166 unsigned int, line, 167 void *, xprt, 168 uint32_t, xp_flags, 169 uint32_t, ev_flag), 170 TP_FIELDS( 171 ctf_string(fnc, function) 172 ctf_integer(unsigned int, line, line) 173 ctf_integer_hex(void *, xprt, xprt) 174 ctf_integer_hex(uint32_t, xp_flags, xp_flags) 175 ctf_integer_hex(uint32_t, ev_flag, ev_flag) 176 ) 177 ) 178 179 TRACEPOINT_LOGLEVEL( 180 xprt, 181 event, 182 TRACE_INFO) 183 184 TRACEPOINT_EVENT( 185 xprt, 186 recv, 187 TP_ARGS(const char *, function, 188 unsigned int, line, 189 void *, xprt, 190 unsigned int, destroyed, 191 unsigned int, count), 192 TP_FIELDS( 193 ctf_string(fnc, function) 194 ctf_integer(unsigned int, line, line) 195 ctf_integer_hex(void *, xprt, xprt) 196 ctf_integer(unsigned int, destroyed, destroyed) 197 ctf_integer(unsigned int, count, count) 198 ) 199 ) 200 201 TRACEPOINT_LOGLEVEL( 202 xprt, 203 recv, 204 TRACE_INFO) 205 206 TRACEPOINT_EVENT( 207 xprt, 208 send, 209 TP_ARGS(const char *, function, 210 unsigned int, line, 211 void *, xprt, 212 unsigned int, destroyed, 213 unsigned int, count), 214 TP_FIELDS( 215 ctf_string(fnc, function) 216 ctf_integer(unsigned int, line, line) 217 ctf_integer_hex(void *, xprt, xprt) 218 ctf_integer(unsigned int, destroyed, destroyed) 219 ctf_integer(unsigned int, count, count) 220 ) 221 ) 222 223 TRACEPOINT_LOGLEVEL( 224 xprt, 225 send, 226 TRACE_INFO) 227 228 TRACEPOINT_EVENT( 229 xprt, 230 write_blocked, 231 TP_ARGS(const char *, function, 232 unsigned int, line, 233 void *, xprt), 234 TP_FIELDS( 235 ctf_string(fnc, function) 236 ctf_integer(unsigned int, line, line) 237 ctf_integer_hex(void *, xprt, xprt) 238 ) 239 ) 240 241 TRACEPOINT_LOGLEVEL( 242 xprt, 243 write_blocked, 244 TRACE_INFO) 245 246 TRACEPOINT_EVENT( 247 xprt, 248 write_complete, 249 TP_ARGS(const char *, function, 250 unsigned int, line, 251 void *, xprt, 252 unsigned int, has_blocked), 253 TP_FIELDS( 254 ctf_string(fnc, function) 255 ctf_integer(unsigned int, line, line) 256 ctf_integer_hex(void *, xprt, xprt) 257 ctf_integer(unsigned int, has_blocked, has_blocked) 258 ) 259 ) 260 261 TRACEPOINT_LOGLEVEL( 262 xprt, 263 write_complete, 264 TRACE_INFO) 265 266 TRACEPOINT_EVENT( 267 xprt, 268 sendmsg, 269 TP_ARGS(const char *, function, 270 unsigned int, line, 271 void *, xprt, 272 unsigned int, remaining, 273 unsigned int, frag_needed, 274 unsigned int, iov_count), 275 TP_FIELDS( 276 ctf_string(fnc, function) 277 ctf_integer(unsigned int, line, line) 278 ctf_integer_hex(void *, xprt, xprt) 279 ctf_integer(unsigned int, remaining, remaining) 280 ctf_integer(unsigned int, frag_needed, frag_needed) 281 ctf_integer(unsigned int, iov_count, iov_count) 282 ) 283 ) 284 285 TRACEPOINT_LOGLEVEL( 286 xprt, 287 sendmsg, 288 TRACE_INFO) 289 290 TRACEPOINT_EVENT( 291 xprt, 292 mutex, 293 TP_ARGS(const char *, function, 294 unsigned int, line, 295 void *, xprt), 296 TP_FIELDS( 297 ctf_string(fnc, function) 298 ctf_integer(unsigned int, line, line) 299 ctf_integer_hex(void *, xprt, xprt) 300 ) 301 ) 302 303 TRACEPOINT_LOGLEVEL( 304 xprt, 305 mutex, 306 TRACE_INFO) 307 308 TRACEPOINT_EVENT( 309 xprt, 310 funcin, 311 TP_ARGS(const char *, function, 312 unsigned int, line, 313 void *, xprt), 314 TP_FIELDS( 315 ctf_string(fnc, function) 316 ctf_integer(unsigned int, line, line) 317 ctf_integer_hex(void *, xprt, xprt) 318 ) 319 ) 320 321 TRACEPOINT_LOGLEVEL( 322 xprt, 323 funcin, 324 TRACE_INFO) 325 326 TRACEPOINT_EVENT( 327 xprt, 328 recv_frag, 329 TP_ARGS(const char *, function, 330 unsigned int, line, 331 void *, xprt, 332 int32_t, frag_len), 333 TP_FIELDS( 334 ctf_string(fnc, function) 335 ctf_integer(unsigned int, line, line) 336 ctf_integer_hex(void *, xprt, xprt) 337 ctf_integer_hex(int32_t, frag_len, frag_len) 338 ) 339 ) 340 341 TRACEPOINT_LOGLEVEL( 342 xprt, 343 recv_frag, 344 TRACE_INFO) 345 346 TRACEPOINT_EVENT( 347 xprt, 348 recv_bytes, 349 TP_ARGS(const char *, function, 350 unsigned int, line, 351 void *, xprt, 352 int32_t, frag_remain, 353 ssize_t, bytes), 354 TP_FIELDS( 355 ctf_string(fnc, function) 356 ctf_integer(unsigned int, line, line) 357 ctf_integer_hex(void *, xprt, xprt) 358 ctf_integer_hex(int32_t, frag_remain, frag_remain) 359 ctf_integer_hex(ssize_t, bytes, bytes) 360 ) 361 ) 362 363 TRACEPOINT_LOGLEVEL( 364 xprt, 365 recv_bytes, 366 TRACE_INFO) 367 368 TRACEPOINT_EVENT( 369 xprt, 370 recv_exit, 371 TP_ARGS(const char *, function, 372 unsigned int, line, 373 void *, xprt, 374 const char *, reason, 375 int, code), 376 TP_FIELDS( 377 ctf_string(fnc, function) 378 ctf_integer(unsigned int, line, line) 379 ctf_integer_hex(void *, xprt, xprt) 380 ctf_string(reason, reason) 381 ctf_integer(int, code, code) 382 ) 383 ) 384 385 TRACEPOINT_LOGLEVEL( 386 xprt, 387 recv_exit, 388 TRACE_INFO) 389 390 #endif /* GANESHA_LTTNG_XPRT_TP_H */ 391 392 #undef TRACEPOINT_INCLUDE 393 #define TRACEPOINT_INCLUDE "lttng/xprt.h" 394 395 #include
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2025 MyWebUniversity.com ™