1 From bdfcddd4f135dc1d4fefb0373d9ebb93ef5110cb Mon Sep 17 00:00:00 2001
2 From: "Steven Rostedt (Red Hat)" <rostedt@goodmis.org>
3 Date: Mon, 7 Dec 2015 16:41:19 -0500
4 Subject: [PATCH] trace-cmd: Fix trace-record.c with non ptrace compile
6 Fix ptrace_wait() when NO_PTRACE=1 is defined.
10 Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
11 [Romain backport to 2.6]
12 Signed-off-by: Romain Naour <romain.naour@gmail.com>
15 1 file changed, 1 insertion(+), 1 deletion(-)
17 diff --git a/trace-record.c b/trace-record.c
18 index df82883..f83ec4b 100644
21 @@ -1099,7 +1099,7 @@ static void ptrace_wait(enum trace_type type, int main_pid)
22 (!WIFEXITED(status) || pid != main_pid));
25 -static inline void ptrace_wait(int main_pid) { }
26 +static inline void ptrace_wait(enum trace_type type, int main_pid) { }
27 static inline void enable_ptrace(void) { }
28 static inline void ptrace_attach(int pid) { }