[dtrace-discuss] Multiple provider and count()

2011-08-26 Thread Juhasz Balint
Hy! I think i find some interesting problem (maybe it is basic :) ): root@thelab ~/Tools/IPC$ ./ipc_count_syscall.d syscall::semsys1690 root@thelab ~/Tools/IPC$ cat ./ipc_count_syscall.d #!/usr/sbin/dtrace -qs #pragma D option quiet #pragma D

Re: [dtrace-discuss] Multiple provider and count()

2011-08-26 Thread Adam Leventhal
Hi Cni, Your script is not operating the way you intended, but DTrace is functioning properly. The fbt return probes are firing before the syscall return probes and thus setting self-time to 0 so that when the syscall return probe fires the predicate evaluates to false. You don't seem to be

Re: [dtrace-discuss] Multiple provider and count()

2011-08-26 Thread Juhasz Balint
Hy! In the script i used self-time = timestamp because in that version i used @semcheck[this-name] = quantize(timestamp - self-time);. After the letters i thinking and checking, there are syscall if i check only entry: root@thelab ~/Tools/IPC$ ./ipc_count_entry.d fbt:ipc:ipcs_lock