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
just do this:
fbt:ipc::entry,
fbt:semsys::entry,
fbt:genunix:sem*:entry,
syscall::sem*:entry
{
this-name = strjoin(probeprov, strjoin(strjoin(:, probemod),
strjoin(:, probefunc)));
@semcheck[this-name] = count();
}
Adam
On Fri, Aug 26, 2011 at 1:17 AM, Juhasz Balint cni
Hy!
I have a problem with my script:
# cat process_ps.d
#!/usr/sbin/dtrace -qs
#pragma D option quiet
syscall::open:entry
/ (arg0 != NULL) ( execname == ps ) ( copyinstr(arg0) ==
/proc/1305/psinfo ) /
{
printf(%s:%s:%s:%s\t-\t%s (%d)\n, probeprov, probemod,
probefunc, probename,
Hello!
Thanks a lot the answer, what use in your script it doesn't work in my script:
...
/ (arg0 != NULL) (execname == ps) (copyinstr(arg0) ==
(/proc/+$$1+/psinfo)) /
...
This was the error:
$ ./process_ps.d 905
dtrace: failed to compile script ./process_ps.d: line 11: operands
have
;
copyoutstr(Clear nxge_ipp_eccue_valid_check messages, self-addr,
100);
}
I'm sure there are more elegant methods. For example instead of intercepting
write() you may be able to set probes in syslogd itself.
-Angelo
On Aug 18, 2009, at 5:13 AM, Juhasz Balint wrote:
Hy!
I receive
Hy!
I receive an nxge driver messages on console:
Aug 18 11:08:42 [hostname] nxge: NOTICE: nxge_ipp_eccue_valid_check:
rd_ptr = XXX wr_ptr = YYY
I find the bug description/correction at sun web page, and i know i
can ignore it.
I thinking about how can i delete from console only these messages