]> granicus.if.org Git - strace/commitdiff
perf.c: print group_fd argument of perf_event_open syscall as fd
authorEugene Syromyatnikov <evgsyr@gmail.com>
Wed, 7 Feb 2018 13:45:02 +0000 (14:45 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 7 Feb 2018 22:03:48 +0000 (22:03 +0000)
* perf.c (SYS_FUNC(perf_event_open)): Print 4th argument using printfd.

perf.c

diff --git a/perf.c b/perf.c
index 84dac114ada0075319c038f7b802024f9fd4117e..850b449804b76f77e1a3481946c9a262506e259b 100644 (file)
--- a/perf.c
+++ b/perf.c
@@ -424,10 +424,11 @@ SYS_FUNC(perf_event_open)
                print_perf_event_attr(tcp, tcp->u_arg[0]);
        }
 
-       tprintf(", %d, %d, %d, ",
+       tprintf(", %d, %d, ",
                (int) tcp->u_arg[1],
-               (int) tcp->u_arg[2],
-               (int) tcp->u_arg[3]);
+               (int) tcp->u_arg[2]);
+       printfd(tcp, tcp->u_arg[3]);
+       tprints(", ");
        printflags64(perf_event_open_flags, tcp->u_arg[4], "PERF_FLAG_???");
 
        return RVAL_DECODED | RVAL_FD;