Re: [PATCH 2/2] uprobes/core: counter to optimize probe hits.

From: Oleg Nesterov
Date: Fri Mar 30 2012 - 09:14:26 EST


On 03/21, Srikar Dronamraju wrote:
>
> + * uprobe_munmap() decrements the count if
> + * - it sees a underlying breakpoint, (via is_swbp_at_addr)
> + * (Subsequent unregister_uprobe wouldnt find the breakpoint
> + * unless a uprobe_mmap kicks in, since the old vma would be
> + * dropped just after uprobe_munmap.)
> + *
> + * register_uprobe increments the count if:
> + * - it successfully adds a breakpoint.
> + *
> + * unregister_uprobe decrements the count if:

Cosmetic nit, register_uprobe/unregister_uprobe do not exist.
uprobe_register/unregister.

Oleg.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/