Re: [PATCH v2 RESEND] trace_uprobe: support reference counter in fd-based uprobe
From: Peter Zijlstra
Date: Tue Oct 02 2018 - 04:12:19 EST
On Mon, Oct 01, 2018 at 10:36:36PM -0700, Song Liu wrote:
> Changes v1 -> v2: Fix PMU_FORMAT_ATTR as Peter suggested
>
> This patch enables uprobes with reference counter in fd-based uprobe.
> Highest 32 bits of perf_event_attr.config is used to stored offset
> of the reference count (semaphore).
>
> Format information in /sys/bus/event_source/devices/uprobe/format/ is
> updated to reflect this new feature.
>
> Signed-off-by: Song Liu <songliubraving@xxxxxx>
> Reviewed-and-tested-by: Ravi Bangoria <ravi.bangoria@xxxxxxxxxxxxx>
> Cc: Oleg Nesterov <oleg@xxxxxxxxxx>
> Cc: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>
> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Works for me,
Acked-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>