tracing/uprobes: Add @+file_offset fetch method
authorNamhyung Kim <namhyung.kim@lge.com>
Mon, 25 Nov 2013 04:42:47 +0000 (13:42 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 3 Jan 2014 01:57:05 +0000 (20:57 -0500)
commitb7e0bf341f6cfa92ae0a0e3d0c3496729595e1e9
tree0831ae7ab363f3789c5cb14bbf4973bfe17287bc
parent72fd293aa9ae8f4f48d6042be43fe81551c639f2
tracing/uprobes: Add @+file_offset fetch method

Enable to fetch data from a file offset.  Currently it only supports
fetching from same binary uprobe set.  It'll translate the file offset
to a proper virtual address in the process.

The syntax is "@+OFFSET" as it does similar to normal memory fetching
(@ADDR) which does no address translation.

Suggested-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: zhangwei(Jovi) <jovi.zhangwei@huawei.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Documentation/trace/uprobetracer.txt
kernel/trace/trace_kprobe.c
kernel/trace/trace_probe.c
kernel/trace/trace_probe.h
kernel/trace/trace_uprobe.c