Hot answers tagged

6

This is actually complicated. But there is hints: Learn about SystemTap, this is linux analog of DTrace. I think they may even have example script for similar task. Learn blktrace. You may be able to parse its output, in theory. This will be more device latency (service time) than response time program get on read(). Yes strace may not be appropriate, ...


4

The argument's in arg0, but that's the caller's userspace address rather than the actual string. You need to wrap it with a copyinstr() as well: dtrace -n 'syscall::chmod:entry { printf("%d %s", uid, copyinstr(arg0)); }'


4

This is potentially related to El Capitan and its System Integrity Protection (csrutil status) which can affect the dtrace behaviour. The potential fix includes rebooting Mac into recovery mode (⌘-R at boot time), then in Terminal run: csrutil enable --without dtrace to keep SIP enabled, but disable DTrace restrictions (note: this is undocumented ...


3

Awk is designed for simple text processing. If you want more than that, there's a point where you need to ditch awk and use a more capable language. Perl is the natural progression. It has most of the features of awk with a similar syntax, and is installed by default on most non-embedded unix systems. I'm not aware of any library for the kind of statistical ...


2

If you're only interested in the number of "read" or "write" calls to block devices this is Red Hat's SOP for determining that. Using the block dump feature and a bit of scripting a high level overview about the I/O actions processes are producing can be gathered. To do so, complete the following: Disable system logging for a short period of ...


2

A good way to start is start looking at Using DTrace for Solaris 10 http://dsc.sun.com/solaris/articles/java_on_solaris.html http://www.solarisinternals.com/wiki/index.php/DTrace_Topics_Java http://blogs.oracle.com/jimlaurent/entry/solaris_faq_myths_and_facts http://blogs.warwick.ac.uk/chrismay/entry/solaris_10_memory/ http://www.solarisinternals.com/si/...


1

Looks like you want to disable dtrace SIP protection. See my similar answer over in apple.stackexchange for disabling dtrace protection in SIP. I've got SIP enabled without dtrace, and have access to vminfo. # uname -a Darwin Phoenix.local 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64 # ...



Only top voted, non community-wiki answers of a minimum length are eligible