Tag Info

Hot answers tagged

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


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



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