[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 Juhasz Balint
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

[dtrace-discuss] syscall::open:entry predicate problem

2009-12-08 Thread Juhasz Balint
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,

Re: [dtrace-discuss] syscall::open:entry predicate problem

2009-12-08 Thread Juhasz Balint
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

Re: [dtrace-discuss] Change syslog output

2009-08-19 Thread Juhasz Balint
;       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

[dtrace-discuss] Change syslog output

2009-08-18 Thread Juhasz Balint
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