SHARE
TWEET

syncs.d

a guest Jan 6th, 2014 900 Never
  1. #!/usr/sbin/dtrace -q -s
  2.  
  3.  
  4. CFPreferencesServer$target:::request {
  5.    printf("REQUEST from pid %d at %Y ( domain: %s, user: %s, host: %s, container: %s, managed: %d)\n", arg0, walltimestamp, copyinstr(arg1), copyinstr(arg2), copyinstr(arg3), copyinstr(arg4), arg5);
  6. }
  7.  
  8. CFPreferencesServer$target:::write_rejected {
  9.    printf("REJECTED WRITE request from pid %d for reason %s at %Y ( domain: %s, user: %s, host: %s, container: %s)\n", arg0, copyinstr(arg5), walltimestamp, copyinstr(arg1), copyinstr(arg2), copyinstr(arg3), copyinstr(arg4));
  10. }
  11.  
  12. CFPreferencesServer$target:::write {
  13.    printf("ACCEPTED WRITE from pid %d at %Y ( domain: %s, user: %s, host: %s, container: %s)\n", arg0, walltimestamp, copyinstr(arg1), copyinstr(arg2), copyinstr(arg3), copyinstr(arg4));
  14. }
  15.  
  16. /*
  17. CFPreferencesServer$target:::cache_miss {
  18.    printf("CACHE MISS from pid %d at %Y ( domain: %s, user: %s, host: %s, container: %s, managed: %d)\n", arg0, walltimestamp, copyinstr(arg1), copyinstr(arg2), copyinstr(arg3), copyinstr(arg4), arg5);
  19. }
  20. */
  21.  
  22. CFPreferencesServer$target:::read_rejected {
  23.    printf("REJECTED READ request from pid %d for reason %s at %Y ( domain: %s, user: %s, host: %s, container: %s, managed: %d)\n", arg0, copyinstr(arg6), walltimestamp, copyinstr(arg1), copyinstr(arg2), copyinstr(arg3), copyinstr(arg4), arg5);
  24. }
  25.  
  26. CFPreferencesServer$target:::read {
  27.    printf("ACCEPTED READ from pid %d at %Y ( domain: %s, user: %s, host: %s, container: %s, managed: %d)\n", arg0, walltimestamp, copyinstr(arg1), copyinstr(arg2), copyinstr(arg3), copyinstr(arg4), arg5);
  28. }
  29.  
  30. CFPreferencesServer$target:::persist {
  31.     printf("SAVING %s TO DISK at %Y\n", copyinstr(arg0), walltimestamp);
  32. }
  33.  
  34. CFPreferencesServer$target:::error {
  35.     printf("ERROR %s at %Y\n", copyinstr(arg0), walltimestamp);
  36. }
  37.  
  38. BEGIN
  39. {
  40.     printf("Monitoring cfprefsd instance %d\n\n", $target);
  41. }
RAW Paste Data
Top