aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/syscall.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/trace/syscall.h b/include/trace/syscall.h
index c55fcce4fbb2..3951d774de18 100644
--- a/include/trace/syscall.h
+++ b/include/trace/syscall.h
@@ -1,8 +1,28 @@
1#ifndef _TRACE_SYSCALL_H 1#ifndef _TRACE_SYSCALL_H
2#define _TRACE_SYSCALL_H 2#define _TRACE_SYSCALL_H
3 3
4#include <linux/tracepoint.h>
5
4#include <asm/ptrace.h> 6#include <asm/ptrace.h>
5 7
8
9extern void syscall_regfunc(void);
10extern void syscall_unregfunc(void);
11
12DECLARE_TRACE_WITH_CALLBACK(syscall_enter,
13 TP_PROTO(struct pt_regs *regs, long id),
14 TP_ARGS(regs, id),
15 syscall_regfunc,
16 syscall_unregfunc
17);
18
19DECLARE_TRACE_WITH_CALLBACK(syscall_exit,
20 TP_PROTO(struct pt_regs *regs, long ret),
21 TP_ARGS(regs, ret),
22 syscall_regfunc,
23 syscall_unregfunc
24);
25
6/* 26/*
7 * A syscall entry in the ftrace syscalls array. 27 * A syscall entry in the ftrace syscalls array.
8 * 28 *