Sorry about that. There are cases where I've done something unusual in a
script, but then explain why in the book. I took a quick look in the book
for this script, but didn't see an explanation. So I think it's a mistake.
The script will miss events as described, and can be fixed with global
associative arrays as described.

Brendan


On Mon, Apr 7, 2014 at 11:19 AM, Adam Leventhal <a...@delphix.com> wrote:

> Yes, that's right. I believe you could make family, port, address, and
> start global variables. Brendan Gregg -- the author of this script -- might
> want to weigh in with more context.
>
> Adam
>
>
> On Mon, Apr 7, 2014 at 12:22 AM, 肖楠 <xiaonan19830...@qq.com> wrote:
>
>> Hi, all:
>>
>>     I am studying Dtrace now, and have read the soclose.d(http://www.
>> dtracebook.com/index.php/Network_Lower_Level_Protocols:soclose.d).
>>   Per my understanding, because this script use "self" variable, it
>> works only if the same thread connects and closes the socket. If one thread
>> connects the socket, while the other closes it, this script can't detect
>> it. Is it right? Thanks in advance!
>>
>> Best Regards
>> Nan Xiao
>>
>> *dtrace-discuss* | 
>> Archives<https://www.listbox.com/member/archive/184261/=now>
>> <https://www.listbox.com/member/archive/rss/184261/21430995-5645506f> |
>> Modify <https://www.listbox.com/member/?&;> Your Subscription
>> <http://www.listbox.com>
>>
>
>
>
> --
> Adam Leventhal
> CTO, Delphix
> http://blog.delphix.com/ahl
> *dtrace-discuss* | 
> Archives<https://www.listbox.com/member/archive/184261/=now>
> <https://www.listbox.com/member/archive/rss/184261/22405872-96393cff> |
> Modify<https://www.listbox.com/member/?&;>Your Subscription
> <http://www.listbox.com>
>



-- 
http://www.brendangregg.com



-------------------------------------------
dtrace-discuss
Archives: https://www.listbox.com/member/archive/184261/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184261/25769126-e243886f
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769126&id_secret=25769126-8d47a7b2
Powered by Listbox: http://www.listbox.com

Reply via email to