summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_probe.h
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung.kim@lge.com>2013-07-03 16:09:02 +0900
committerSteven Rostedt <rostedt@goodmis.org>2014-01-02 16:17:38 -0500
commit5bf652aaf46ca6ae477ea0d162e68d577cf244aa (patch)
treeab1210b0008678995f0d6bf5b8da1bf0dccd0c14 /kernel/trace/trace_probe.h
parent2dc1018372c3b1db1410c7087de7866d4cad8cc3 (diff)
downloadblackbird-op-linux-5bf652aaf46ca6ae477ea0d162e68d577cf244aa.tar.gz
blackbird-op-linux-5bf652aaf46ca6ae477ea0d162e68d577cf244aa.zip
tracing/probes: Integrate duplicate set_print_fmt()
The set_print_fmt() functions are implemented almost same for [ku]probes. Move it to a common place and get rid of the duplication. 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>
Diffstat (limited to 'kernel/trace/trace_probe.h')
-rw-r--r--kernel/trace/trace_probe.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/trace_probe.h b/kernel/trace/trace_probe.h
index d384fbd4025c..2c979cb66367 100644
--- a/kernel/trace/trace_probe.h
+++ b/kernel/trace/trace_probe.h
@@ -226,3 +226,5 @@ store_trace_args(int ent_size, struct trace_probe *tp, struct pt_regs *regs,
data + tp->args[i].offset);
}
}
+
+extern int set_print_fmt(struct trace_probe *tp, bool is_return);
OpenPOWER on IntegriCloud