tracing/uprobes: Move argument fetching to uprobe_dispatcher()
authorNamhyung Kim <namhyung@kernel.org>
Fri, 17 Jan 2014 08:08:37 +0000 (17:08 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 20 Feb 2014 17:30:09 +0000 (12:30 -0500)
commitdd9fa555d7bbfcc7dbc63eb744806e9f6cb62e9f
treead217cf792aef4dad4b951bce456d6b0c0e5c082
parenta43b97043048eac1686f409af7ad3bb8071b9d83
tracing/uprobes: Move argument fetching to uprobe_dispatcher()

A single uprobe event might serve different users like ftrace and
perf.  And this is especially important for upcoming multi buffer
support.  But in this case it'll fetch (same) data from userspace
multiple times.  So move it to the beginning of the dispatcher
function and reuse it for each users.

Link: http://lkml.kernel.org/r/1389946120-19610-3-git-send-email-namhyung@kernel.org
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: zhangwei(Jovi) <jovi.zhangwei@huawei.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_uprobe.c
This page took 0.026053 seconds and 5 git commands to generate.