Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy J Fontaine <tjfontaine@gmail.com>2013-03-29 03:51:52 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2013-03-30 04:30:16 +0400
commitaa5da48594c1634de9f439bcf223acff3fb1fcd8 (patch)
tree74d3c611c1cc014ca7307b660c87a97058309217 /src/node_provider.d
parent7634069614ea38e38458e4c3a3c3e17d8bc4137e (diff)
dtrace: actually use the _handle.fd value
When using the DTrace/systemtap subsystems it would be helpful to actually have an fd associated with the requests and responses.
Diffstat (limited to 'src/node_provider.d')
-rw-r--r--src/node_provider.d23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/node_provider.d b/src/node_provider.d
index 4c526d477ee..6f95b03db74 100644
--- a/src/node_provider.d
+++ b/src/node_provider.d
@@ -53,25 +53,28 @@ typedef struct {
provider node {
probe net__server__connection(node_dtrace_connection_t *c,
- const char *a, int p) : (node_connection_t *c, string a, int p);
+ const char *a, int p, int fd) : (node_connection_t *c, string a, int p,
+ int fd);
probe net__stream__end(node_dtrace_connection_t *c, const char *a,
- int p) : (node_connection_t *c, string a, int p);
+ int p, int fd) : (node_connection_t *c, string a, int p, int fd);
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);
+ const char *a, int p, int fd) : (node_connection_t *c, int b, string a,
+ int p, int fd);
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);
+ const char *a, int p, int fd) : (node_connection_t *c, int b, string a,
+ int p, int fd);
probe http__server__request(node_dtrace_http_server_request_t *h,
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);
+ const char *u, int fd) : (node_http_request_t *h, node_connection_t *c,
+ string a, int p, string m, string u, int fd);
probe http__server__response(node_dtrace_connection_t *c, const char *a,
- int p) : (node_connection_t *c, string a, int p);
+ int p, int fd) : (node_connection_t *c, string a, int p, int fd);
probe http__client__request(node_dtrace_http_client_request_t *h,
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);
+ const char *u, int fd) : (node_http_request_t *h, node_connection_t *c,
+ string a, int p, string m, string u, int fd);
probe http__client__response(node_dtrace_connection_t *c, const char *a,
- int p) : (node_connection_t *c, string a, int p);
+ int p, int fd) : (node_connection_t *c, string a, int p, int fd);
probe gc__start(int t, int f);
probe gc__done(int t, int f);
};