Guest User

Untitled

a guest
Mar 1st, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. global count
  2.  
  3. probe begin{
  4. printf("probe begin\n")
  5. }
  6.  
  7. probe process("/usr/local/sbin/glusterfs").library("/usr/local/lib/libglusterfs.so.0").function("dict_new"){
  8. printf("new probed :: \n")
  9. ptr1 = &dict
  10. bt = ubacktrace()
  11. printf("ptr = %u\n",ptr)
  12. print_ustack(bt)
  13. count["new"]+=1
  14. printf("\n")
  15. }
  16.  
  17. probe process("/usr/local/sbin/glusterfs").library("/usr/local/lib/libglusterfs.so.0").function("dict_destroy"){
  18. printf("destroy probed :: \n")
  19. ptr = $this
  20. bt = ubacktrace()
  21. printf("ptr = %u\n",ptr)
  22. print_ustack(bt)
  23. count["destroy"]-=1
  24. printf("\n")
  25. }
  26.  
  27. probe timer.s(60){
  28. printf("probing after 60 seconds \n")
  29. printf("count (new) : %d\n",count["new"])
  30. printf("count (destroy) : %d\n", count["destroy"])
  31. count["new"] = 0
  32. count["destroy"] = 0
  33.  
  34. }
Add Comment
Please, Sign In to add comment