summaryrefslogtreecommitdiff
path: root/src/node.d
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-02-09 18:50:26 -0800
committerRyan Dahl <ry@tinyclouds.org>2011-02-09 18:50:26 -0800
commite9257b859d6bbeb68b47abf03741bc5378538b05 (patch)
tree5e48e386bb9b22708706b6965690c585ed4afe54 /src/node.d
parent778fb859c640f1cb67d11ce4550758b6bae31b43 (diff)
downloadandroid-node-v8-e9257b859d6bbeb68b47abf03741bc5378538b05.tar.gz
android-node-v8-e9257b859d6bbeb68b47abf03741bc5378538b05.tar.bz2
android-node-v8-e9257b859d6bbeb68b47abf03741bc5378538b05.zip
New DTrace probes from CA team
Diffstat (limited to 'src/node.d')
-rw-r--r--src/node.d7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/node.d b/src/node.d
index 80010e9b4f..bc52adf698 100644
--- a/src/node.d
+++ b/src/node.d
@@ -10,18 +10,21 @@ typedef struct {
int32_t fd;
int32_t port;
uint32_t remote;
+ uint32_t buffered;
} node_dtrace_connection_t;
typedef struct {
int32_t fd;
int32_t port;
uint64_t remote;
+ uint32_t buffered;
} node_dtrace_connection64_t;
typedef struct {
int fd;
string remoteAddress;
int remotePort;
+ int bufferSize;
} node_connection_t;
translator node_connection_t <node_dtrace_connection_t *nc> {
@@ -33,6 +36,10 @@ translator node_connection_t <node_dtrace_connection_t *nc> {
sizeof (int32_t))) :
copyinstr((uintptr_t)*(uint64_t *)copyin((uintptr_t)
&((node_dtrace_connection64_t *)nc)->remote, sizeof (int64_t)));
+ bufferSize = curpsinfo->pr_dmodel == PR_MODEL_ILP32 ?
+ *(uint32_t *)copyin((uintptr_t)&nc->buffered, sizeof (int32_t)) :
+ *(uint32_t *)copyin((uintptr_t)
+ &((node_dtrace_connection64_t *)nc)->buffered, sizeof (int32_t));
};
typedef struct {