diff options
author | Alex Van Brunt <avanbrunt@nvidia.com> | 2014-05-07 11:04:41 -0700 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2014-05-14 15:28:36 -0700 |
commit | d19fb94d428db93465c50c4284bc50315871933a (patch) | |
tree | d6d8455671d61c07dba239f5d8b92496fea9571e /kernel | |
parent | 005d0f7eb1ad702332ad12834d0f6dc90d3fd28c (diff) |
syscalls: add trace events for system calls
Add trace events for the entry point and exit point of all system
calls. This makes it possible to account for the time spent in each
system call.
Change-Id: Iba88c0a38424ea8e986954e23f13f4417578379d
Signed-off-by: Alex Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/407691
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/fork.c | 1 | ||||
-rw-r--r-- | kernel/ptrace.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 0aa1bb5c8d6e..de524562e432 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -80,6 +80,7 @@ #include <asm/tlbflush.h> #include <trace/events/sched.h> +#include <trace/events/sys_calls.h> #define CREATE_TRACE_POINTS #include <trace/events/task.h> diff --git a/kernel/ptrace.c b/kernel/ptrace.c index afadcf7b4a22..040ec7acae73 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c @@ -27,6 +27,8 @@ #include <linux/cn_proc.h> #include <linux/compat.h> +#define CREATE_TRACE_POINTS +#include <trace/events/sys_calls.h> static int ptrace_trapping_sleep_fn(void *flags) { |