trace_uprobe: support reference counter in fd-based uprobe
authorSong Liu <songliubraving@fb.com>
Tue, 2 Oct 2018 05:36:36 +0000 (22:36 -0700)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 11 Oct 2018 02:14:17 +0000 (22:14 -0400)
commita6ca88b241d5e929e6e60b12ad8cd288f0ffa256
treeabb90d380a5c6e7ecd190b3a67745058b96fe564
parent5a5e3d3ceae2121590d67258a4e658d938b4a46d
trace_uprobe: support reference counter in fd-based uprobe

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.

Link: http://lkml.kernel.org/r/20181002053636.1896903-1-songliubraving@fb.com
Cc: Oleg Nesterov <oleg@redhat.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-and-tested-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/trace_events.h
kernel/events/core.c
kernel/trace/trace_event_perf.c
kernel/trace/trace_probe.h
kernel/trace/trace_uprobe.c