]> Pileus Git - ~andy/linux/commit
tracing/probes: Split [ku]probes_fetch_type_table
authorNamhyung Kim <namhyung.kim@lge.com>
Tue, 26 Nov 2013 05:56:28 +0000 (14:56 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 2 Jan 2014 21:17:39 +0000 (16:17 -0500)
commit34fee3a104cea1c4b658e51836e4bcd99bd76c70
tree4b73d864e468c395f6c9d484bef5a8f138a02b5e
parentb26c74e116ad8433da22a72f03d148f88aab36e5
tracing/probes: Split [ku]probes_fetch_type_table

Use separate fetch_type_table for kprobes and uprobes.  It currently
shares all fetch methods but some of them will be implemented
differently later.

This is not to break build if [ku]probes is configured alone (like
!CONFIG_KPROBE_EVENT and CONFIG_UPROBE_EVENT).  So I added '__weak'
to the table declaration so that it can be safely omitted when it
configured out.

Acked-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.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>
kernel/trace/trace_kprobe.c
kernel/trace/trace_probe.c
kernel/trace/trace_probe.h
kernel/trace/trace_uprobe.c