Advertisement
Guest User

Untitled

a guest
Dec 18th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.07 KB | None | 0 0
  1. diff --git a/runtime/linux/uprobes-inode.c b/runtime/linux/uprobes-inode.c
  2. index b9604e638..0334a8a37 100644
  3. --- a/runtime/linux/uprobes-inode.c
  4. +++ b/runtime/linux/uprobes-inode.c
  5. @@ -365,8 +365,14 @@ stapiu_target_unreg(struct stapiu_target *target)
  6.         if (! target->inode)
  7.                 return;
  8.         list_for_each_entry(c, &target->consumers, target_consumer) {
  9. -               if (c->registered)
  10. +               if (c->registered) {
  11. +                       dbug_otf("unregistering (u%sprobe) inode-offset %lu:%p pidx %zu\n",
  12. +                                c->return_p ? "ret" : "",
  13. +                                (unsigned long) target->inode->i_ino,
  14. +                                (void*) (uintptr_t) c->offset,
  15. +                                c->probe->index);
  16.                         stapiu_unregister(target->inode, c);
  17. +               }
  18.         }
  19.  }
  20.  
  21. @@ -390,10 +396,17 @@ stapiu_target_reg(struct stapiu_target *target, struct task_struct* task)
  22.                                          c->return_p ? "ret" : "", c->probe->index);
  23.                                 continue;
  24.                         }
  25. +                       dbug_otf("registering (u%sprobe) at inode %lu:%p pidx %zu\n",
  26. +                                c->return_p ? "ret" : "",
  27. +                                (unsigned long) target->inode->i_ino,
  28. +                                (void*) (uintptr_t) c->offset, c->probe->index);
  29. +
  30.                         ret = stapiu_register(target->inode, c);
  31.                         if (ret != 0)
  32. -                               _stp_warn("probe %s inode-offset %p registration error (rc %d)",
  33. -                                         c->probe->pp, (void*) (uintptr_t) c->offset, ret);
  34. +                               _stp_error("probe %s inode-offset %lu:%p registration error (rc %d)",
  35. +                                          c->probe->pp,
  36. +                                          (unsigned long) target->inode->i_ino,
  37. +                                          (void*) (uintptr_t) c->offset, ret);
  38.                 }
  39.         }
  40.         if (ret)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement