Guest User

Untitled

a guest
May 8th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. global i
  2. global traces_ref
  3.  
  4. probe
  5. process("/usr/local/sbin/gluster*").library("/usr/local/lib/libglusterfs.so.0").function("dict_ref"){
  6.  
  7. ptr = $this
  8. t=sprint_ubacktrace()
  9. traces_ref[ptr, i] = t
  10. i++
  11. printf("[%x, %d] = %s\n\n",ptr,i,t)
  12. }
  13.  
  14. probe timer.s(20){
  15. printf("printing sorted data\n")
  16. foreach ([p-,q] in traces_ref){
  17. printf("[%x, %d] = %s\n",ptr,i,t)
  18. }
  19. }
Add Comment
Please, Sign In to add comment