Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global count
- probe begin{
- printf("probe begin\n")
- }
- probe process("/usr/local/sbin/glusterfs").library("/usr/local/lib/libglusterfs.so.0").function("dict_new"){
- printf("new probed :: \n")
- ptr1 = &dict
- bt = ubacktrace()
- printf("ptr = %u\n",ptr)
- print_ustack(bt)
- count["new"]+=1
- printf("\n")
- }
- probe process("/usr/local/sbin/glusterfs").library("/usr/local/lib/libglusterfs.so.0").function("dict_destroy"){
- printf("destroy probed :: \n")
- ptr = $this
- bt = ubacktrace()
- printf("ptr = %u\n",ptr)
- print_ustack(bt)
- count["destroy"]-=1
- printf("\n")
- }
- probe timer.s(60){
- printf("probing after 60 seconds \n")
- printf("count (new) : %d\n",count["new"])
- printf("count (destroy) : %d\n", count["destroy"])
- count["new"] = 0
- count["destroy"] = 0
- }
Add Comment
Please, Sign In to add comment