Wesley Naves de faira writes:
> Hi,
> I need tunning my Solaris 10 8/07 with the following parameter
> using ndd -set
>
> tcp_conn_req_max_q0
> tcp_conn_req_max_q
>
> There are some probe to view this and other parameters the stack
> TCP ? I saw that in OpenSolaris have probe tcp, but in Solaris no. How
> can i do this ?
I think we'll need more information about what you're trying to
accomplish in order to provide a complete answer, but these functions
are called for those parameters when getting and setting /dev/tcp via
ndd:
tcp_param_get
tcp_param_set
The function arguments are visible in the source code, and it'd be
best to refer to that when writing such a script, but here's a start:
#!/usr/sbin/dtrace -qs -
fbt:ip:tcp_param_get:entry
{
self->tcppa = (tcpparam_t *)arg2;
}
fbt:ip:tcp_param_get:entry
/self->tcppa->tcp_param_name == "tcp_conn_req_max_q0" ||
self->tcppa->tcp_param_name == "tcp_conn_req_max_q"/
{
printf("get %s: %d\n", stringof(self->tcppa->tcp_param_name),
self->tcppa->tcp_param_val);
}
fbt:ip:tcp_param_set:entry
{
self->tcppa = (tcpparam_t *)arg3;
}
fbt:ip:tcp_param_set:entry
/self->tcppa->tcp_param_name == "tcp_conn_req_max_q0" ||
self->tcppa->tcp_param_name == "tcp_conn_req_max_q"/
{
printf("set %s: from %d to %s\n",
stringof(self->tcppa->tcp_param_name),
self->tcppa->tcp_param_val, stringof(arg2));
}
--
James Carlson, Solaris Networking <[EMAIL PROTECTED]>
Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
_______________________________________________
dtrace-discuss mailing list
[email protected]