I was quite pleasantly surprised to see a script I use on Solaris needed only 
two very small changes to work on Linux:

# cat /etc/oracle-release
Oracle Linux Server release 6.6

# cat /etc/lsb-release
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch

 # diff delivery-perf.d delivery-perf-Linux.d
 52c52
 < syscall::fdsync:entry,
 ---
 > syscall::fdatasync:entry,
 62c62
 < syscall::fdsync:return,
 ---
 > syscall::fdatasync:return,


Is there any way (other than changing it to a shell wrapper script to generate 
the DTrace) to have the script determine which OS and monitor the right thing?

Thanks,

Kelly


-------------------------------------------
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