diff options
author | Dave Pacheco <dap@joyent.com> | 2013-03-29 00:52:43 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-03-30 04:04:00 +0400 |
commit | 7634069614ea38e38458e4c3a3c3e17d8bc4137e (patch) | |
tree | e1b1ed0b9f45f5075bb4849434956ee2115ad5fb /src/node_provider.d | |
parent | fe7440ce19c2ee406b2895766ff191479bea1014 (diff) |
dtrace: pass more arguments to probes
OSX and other DTrace implementations don't support dereferencing
structs in probes. To accomodate that pass members from the struct as
arguments so that DTrace is useful on those systems.
Diffstat (limited to 'src/node_provider.d')
-rw-r--r-- | src/node_provider.d | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/src/node_provider.d b/src/node_provider.d index 646e21a22d1..4c526d477ee 100644 --- a/src/node_provider.d +++ b/src/node_provider.d @@ -52,24 +52,26 @@ typedef struct { } node_http_request_t; provider node { - probe net__server__connection(node_dtrace_connection_t *c) : - (node_connection_t *c); - probe net__stream__end(node_dtrace_connection_t *c) : - (node_connection_t *c); - probe net__socket__read(node_dtrace_connection_t *c, int b) : - (node_connection_t *c, int b); - probe net__socket__write(node_dtrace_connection_t *c, int b) : - (node_connection_t *c, int b); + probe net__server__connection(node_dtrace_connection_t *c, + const char *a, int p) : (node_connection_t *c, string a, int p); + probe net__stream__end(node_dtrace_connection_t *c, const char *a, + int p) : (node_connection_t *c, string a, int p); + probe net__socket__read(node_dtrace_connection_t *c, int b, + const char *a, int p) : (node_connection_t *c, int b, string a, int p); + probe net__socket__write(node_dtrace_connection_t *c, int b, + const char *a, int p) : (node_connection_t *c, int b, string a, int p); probe http__server__request(node_dtrace_http_server_request_t *h, - node_dtrace_connection_t *c) : - (node_http_request_t *h, node_connection_t *c); - probe http__server__response(node_dtrace_connection_t *c) : - (node_connection_t *c); + node_dtrace_connection_t *c, const char *a, int p, const char *m, + const char *u) : (node_http_request_t *h, node_connection_t *c, + string a, int p, string m, string u); + probe http__server__response(node_dtrace_connection_t *c, const char *a, + int p) : (node_connection_t *c, string a, int p); probe http__client__request(node_dtrace_http_client_request_t *h, - node_dtrace_connection_t *c) : - (node_http_request_t *h, node_connection_t *c); - probe http__client__response(node_dtrace_connection_t *c) : - (node_connection_t *c); + node_dtrace_connection_t *c, const char *a, int p, const char *m, + const char *u) : (node_http_request_t *h, node_connection_t *c, string a, + int p, string m, string u); + probe http__client__response(node_dtrace_connection_t *c, const char *a, + int p) : (node_connection_t *c, string a, int p); probe gc__start(int t, int f); probe gc__done(int t, int f); }; |