Hi all,
I am doing some signal related test on Solaris 10.
The following is a very simple C program (test.c):
#include <stdio.h>
int main(void)
{
return 0;
}
Execute the dtrace command: "dtrace -n 'pid$target::*sigaction*:entry
{ustack();}' -c ./test".
The output is:
bash-3.2# dtrace -n 'pid$target::*sigaction*:entry {ustack();}' -c
./test
dtrace: description 'pid$target::*sigaction*:entry ' matched 2 probes
dtrace: pid 26799 has exited
The output seems right.
If I execute the following dtrace command: "dtrace -n
'*sigaction*:entry {ustack();}' -c ./test".
bash-3.2# dtrace -n '*sigaction*:entry {ustack();}' -c ./test
dtrace: description '*sigaction*:entry ' matched 12 probes
CPU ID FUNCTION:NAME
2 58241 sigaction:entry
libc.so.1`__sigaction+0xa
dtrace`main+0x802
dtrace`_start+0x6c
2 20383 sigaction:entry
libc.so.1`__sigaction+0xa
dtrace`main+0x802
dtrace`_start+0x6c
......
dtrace: pid 26815 has exited
It seems the outputs are the signal dispositions of dtrace self, not
test program.
What are the differences between these two commands? Could anyone
give any clues or explanations?
Thanks very much in advance!
Best Regards
Nan Xiao
-------------------------------------------
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