-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now it's at least in a running state. But we should update it though. A bit rought.
- Loading branch information
Showing
6 changed files
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# DTrace | ||
|
||
*TODO: Describe the DTrace capabilities.* | ||
|
||
$ sudo dtrace -l -P resource* | ||
ID PROVIDER MODULE FUNCTION NAME | ||
4525 resource-machine89061 mod-0x103904cb0 req-start req-start | ||
4526 resource-machine89061 mod-0x103904cb0 req-end req-end | ||
4527 resource-machine89061 mod-0x103904cb0 decision-start decision-start | ||
4528 resource-machine89061 mod-0x103904cb0 decision-end decision-end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/sbin/dtrace -s | ||
#pragma D option quiet | ||
|
||
resource-machine*:::req-start | ||
{ | ||
printf("%s#%i - %s %s \n", copyinstr(arg0), arg1, copyinstr(arg2), copyinstr(arg3)); | ||
} | ||
|
||
resource-machine*:::decision-start | ||
{ | ||
printf("%s#%i - > %s(%s)\n", copyinstr(arg0), arg1, copyinstr(arg2), copyinstr(arg3)); | ||
} | ||
|
||
resource-machine*:::decision-end | ||
{ | ||
printf("%s#%i - < %s\n", copyinstr(arg0), arg1, copyinstr(arg2)); | ||
} | ||
|
||
resource-machine*:::req-end | ||
{ | ||
printf("%s#%i - Finished: %i\n", copyinstr(arg0), arg1, arg2); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters