Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/runtime/linux/uprobes-inode.c b/runtime/linux/uprobes-inode.c
- index b9604e638..0334a8a37 100644
- --- a/runtime/linux/uprobes-inode.c
- +++ b/runtime/linux/uprobes-inode.c
- @@ -365,8 +365,14 @@ stapiu_target_unreg(struct stapiu_target *target)
- if (! target->inode)
- return;
- list_for_each_entry(c, &target->consumers, target_consumer) {
- - if (c->registered)
- + if (c->registered) {
- + dbug_otf("unregistering (u%sprobe) inode-offset %lu:%p pidx %zu\n",
- + c->return_p ? "ret" : "",
- + (unsigned long) target->inode->i_ino,
- + (void*) (uintptr_t) c->offset,
- + c->probe->index);
- stapiu_unregister(target->inode, c);
- + }
- }
- }
- @@ -390,10 +396,17 @@ stapiu_target_reg(struct stapiu_target *target, struct task_struct* task)
- c->return_p ? "ret" : "", c->probe->index);
- continue;
- }
- + dbug_otf("registering (u%sprobe) at inode %lu:%p pidx %zu\n",
- + c->return_p ? "ret" : "",
- + (unsigned long) target->inode->i_ino,
- + (void*) (uintptr_t) c->offset, c->probe->index);
- +
- ret = stapiu_register(target->inode, c);
- if (ret != 0)
- - _stp_warn("probe %s inode-offset %p registration error (rc %d)",
- - c->probe->pp, (void*) (uintptr_t) c->offset, ret);
- + _stp_error("probe %s inode-offset %lu:%p registration error (rc %d)",
- + c->probe->pp,
- + (unsigned long) target->inode->i_ino,
- + (void*) (uintptr_t) c->offset, ret);
- }
- }
- if (ret)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement