]> Pileus Git - ~andy/linux/commit
tracing/uprobes: Add support for full argument access methods
authorNamhyung Kim <namhyung.kim@lge.com>
Wed, 3 Jul 2013 09:34:23 +0000 (18:34 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 3 Jan 2014 01:56:21 +0000 (20:56 -0500)
commitb079d374fd84637aba4b825a329e794990b7b486
tree693970c6860735ade0842439ba67cc28a42e1dae
parentdcad1a204f72624796ae83359403898d10393b9c
tracing/uprobes: Add support for full argument access methods

Enable to fetch other types of argument for the uprobes.  IOW, we can
access stack, memory, deref, bitfield and retval from uprobes now.

The format for the argument types are same as kprobes (but @SYMBOL
type is not supported for uprobes), i.e:

  @ADDR   : Fetch memory at ADDR
  $stackN : Fetch Nth entry of stack (N >= 0)
  $stack  : Fetch stack address
  $retval : Fetch return value
  +|-offs(FETCHARG) : Fetch memory at FETCHARG +|- offs address

Note that the retval only can be used with uretprobes.

Original-patch-by: Hyeoncheol Lee <cheol.lee@lge.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: Oleg Nesterov <oleg@redhat.com>
Cc: zhangwei(Jovi) <jovi.zhangwei@huawei.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: Hyeoncheol Lee <cheol.lee@lge.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Documentation/trace/uprobetracer.txt
kernel/trace/trace_probe.c