mirror of
https://github.com/ebrandi/FDD-book.git
synced 2026-12-06 00:23:30 +00:00
Organize companion code and materials by book part: part-01/ Foundations part-02/ Kernel & driver fundamentals part-03/ Character & block devices part-04/ Networking & storage part-05/ Buses & advanced topics part-06/ Debugging & performance part-07/ Real-world drivers appendices/ Supplementary material README.md Overview and build instructions
20 lines
386 B
D
20 lines
386 B
D
#!/usr/sbin/dtrace -s
|
|
/*
|
|
* trace-ioctls.d - print each bugdemo command as it starts and ends.
|
|
*
|
|
* Usage:
|
|
* # dtrace -s trace-ioctls.d
|
|
*/
|
|
|
|
#pragma D option quiet
|
|
|
|
sdt:bugdemo::cmd-start
|
|
{
|
|
printf("%Y %s:%d start op=%d\n", walltimestamp, execname, pid, arg1);
|
|
}
|
|
|
|
sdt:bugdemo::cmd-done
|
|
{
|
|
printf("%Y %s:%d done op=%d rv=%d\n",
|
|
walltimestamp, execname, pid, arg1, arg2);
|
|
}
|