]> granicus.if.org Git - strace/commitdiff
perf_event_open: mark return code with RVAL_FD flag
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 3 Aug 2015 09:06:59 +0000 (09:06 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 3 Aug 2015 09:09:27 +0000 (09:09 +0000)
* perf.c (sys_perf_event_open): Set RVAL_FD flag in the return code.

perf.c

diff --git a/perf.c b/perf.c
index 60bbd3a22d1e6da166c3afdda9447c73e1476ee0..613ecb1581720a5ed09dab1434d776fc0cff8d74 100644 (file)
--- a/perf.c
+++ b/perf.c
@@ -15,5 +15,5 @@ SYS_FUNC(perf_event_open)
                (int) tcp->u_arg[3]);
        printflags(perf_event_open_flags, tcp->u_arg[4], "PERF_FLAG_???");
 
-       return RVAL_DECODED;
+       return RVAL_DECODED | RVAL_FD;
 }