Hi all,

    I want to use dtrace to trace a program in command line.


    If the program doesn't need an argument, it is OK:
    bash-3.2# ‍dtrace -n 'syscall::sigaction:entry {stack();}' -c ./test‍


    But if the program needs an argument‍, such as: ./test -X:
    bash-3.2# ‍dtrace -n 'syscall::sigaction:entry {stack();}' -c ./test -X‍
    dtrace: option requires an argument -- X‍‍

‍
    How to trace a program which needs an argument? 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

Reply via email to