GeezerVison is showing github.com — src: lint node_lttng_tp.h · nodejs/node@ca4fb08
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: Makefile -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -671,9 +671,7 @@ jslint-ci: | 671 | 671 | tools/eslint-rules tools/jslint.js | 672 | 672 |
| 673 | 673 | CPPLINT_EXCLUDE ?= | 674 | | -CPPLINT_EXCLUDE += src/node_lttng.cc | 675 | 674 | CPPLINT_EXCLUDE += src/node_root_certs.h | 676 | | -CPPLINT_EXCLUDE += src/node_lttng_tp.h | 677 | 675 | CPPLINT_EXCLUDE += src/queue.h | 678 | 676 | CPPLINT_EXCLUDE += src/tree.h | 679 | 677 | CPPLINT_EXCLUDE += src/v8abbr.h | |
Collapse file Copy file name to clipboard +21-39Lines changed: 21 additions & 39 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +#ifndef SRC_NODE_LTTNG_TP_H_ | | 2 | +#define SRC_NODE_LTTNG_TP_H_ | | 3 | + | 1 | 4 | #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | 2 | 5 |
| 3 | 6 | #undef TRACEPOINT_PROVIDER | @@ -17,57 +20,45 @@ TRACEPOINT_EVENT( | 17 | 20 | TP_ARGS( | 18 | 21 | const char*, url, | 19 | 22 | const char*, method, | 20 | | - const char*, forwardedFor | 21 | | - ), | | 23 | + const char*, forwardedFor), | 22 | 24 | TP_FIELDS( | 23 | 25 | ctf_string(url, url) | 24 | 26 | ctf_string(method, method) | 25 | | - ctf_string(forwardedFor, forwardedFor) | 26 | | - ) | 27 | | -) | | 27 | + ctf_string(forwardedFor, forwardedFor)) | 28 | 28 |
| 29 | 29 | TRACEPOINT_EVENT( | 30 | 30 | node, | 31 | 31 | http_server_response, | 32 | 32 | TP_ARGS( | 33 | 33 | int, port, | 34 | 34 | const char*, remote, | 35 | | - int, fd | 36 | | - ), | | 35 | + int, fd), | 37 | 36 | TP_FIELDS( | 38 | 37 | ctf_integer(int, port, port) | 39 | 38 | ctf_string(remote, remote) | 40 | | - ctf_integer(int, fd, fd) | 41 | | - ) | 42 | | -) | | 39 | + ctf_integer(int, fd, fd)) | 43 | 40 |
| 44 | 41 | TRACEPOINT_EVENT( | 45 | 42 | node, | 46 | 43 | http_client_request, | 47 | 44 | TP_ARGS( | 48 | 45 | const char*, url, | 49 | | - const char*, method | 50 | | - ), | | 46 | + const char*, method), | 51 | 47 | TP_FIELDS( | 52 | 48 | ctf_string(url, url) | 53 | | - ctf_string(method, method) | 54 | | - ) | 55 | | -) | | 49 | + ctf_string(method, method)) | 56 | 50 |
| 57 | 51 | TRACEPOINT_EVENT( | 58 | 52 | node, | 59 | 53 | http_client_response, | 60 | 54 | TP_ARGS( | 61 | 55 | int, port, | 62 | 56 | const char*, remote, | 63 | | - int, fd | 64 | | - ), | | 57 | + int, fd), | 65 | 58 | TP_FIELDS( | 66 | 59 | ctf_integer(int, port, port) | 67 | 60 | ctf_string(remote, remote) | 68 | | - ctf_integer(int, fd, fd) | 69 | | - ) | 70 | | -) | | 61 | + ctf_integer(int, fd, fd)) | 71 | 62 |
| 72 | 63 | TRACEPOINT_EVENT( | 73 | 64 | node, | @@ -76,59 +67,50 @@ TRACEPOINT_EVENT( | 76 | 67 | const char*, remote, | 77 | 68 | int, port, | 78 | 69 | int, fd, | 79 | | - int, buffered | 80 | | - ), | | 70 | + int, buffered), | 81 | 71 | TP_FIELDS( | 82 | 72 | ctf_string(remote, remote) | 83 | 73 | ctf_integer(int, port, port) | 84 | 74 | ctf_integer(int, fd, fd) | 85 | | - ctf_integer(int, buffered, buffered) | 86 | | - ) | 87 | | -) | | 75 | + ctf_integer(int, buffered, buffered)) | 88 | 76 |
| 89 | 77 | TRACEPOINT_EVENT( | 90 | 78 | node, | 91 | 79 | net_stream_end, | 92 | 80 | TP_ARGS( | 93 | 81 | const char*, remote, | 94 | 82 | int, port, | 95 | | - int, fd | 96 | | - ), | | 83 | + int, fd), | 97 | 84 | TP_FIELDS( | 98 | 85 | ctf_string(remote, remote) | 99 | 86 | ctf_integer(int, port, port) | 100 | | - ctf_integer(int, fd, fd) | 101 | | - ) | 102 | | -) | | 87 | + ctf_integer(int, fd, fd)) | 103 | 88 |
| 104 | 89 | TRACEPOINT_EVENT( | 105 | 90 | node, | 106 | 91 | gc_start, | 107 | 92 | TP_ARGS( | 108 | 93 | const char*, gctype, | 109 | | - const char*, gcflags | 110 | | - ), | | 94 | + const char*, gcflags), | 111 | 95 | TP_FIELDS( | 112 | 96 | ctf_string(gctype, gctype) | 113 | | - ctf_string(gcflags, gcflags) | 114 | | - ) | | 97 | + ctf_string(gcflags, gcflags)) | 115 | 98 | ) | 116 | 99 |
| 117 | 100 | TRACEPOINT_EVENT( | 118 | 101 | node, | 119 | 102 | gc_done, | 120 | 103 | TP_ARGS( | 121 | 104 | const char*, gctype, | 122 | | - const char*, gcflags | 123 | | - ), | | 105 | + const char*, gcflags), | 124 | 106 | TP_FIELDS( | 125 | 107 | ctf_string(gctype, gctype) | 126 | | - ctf_string(gcflags, gcflags) | 127 | | - ) | 128 | | -) | | 108 | + ctf_string(gcflags, gcflags)) | 129 | 109 |
| 130 | 110 | #endif /* __NODE_LTTNG_TP_H */ | 131 | 111 |
| 132 | 112 | #include <lttng/tracepoint-event.h> | 133 | 113 |
| 134 | 114 | #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | | 115 | + | | 116 | +#endif // SRC_NODE_LTTNG_TP_H_ |
|