From: Eugene Syromyatnikov Date: Wed, 7 Feb 2018 13:45:02 +0000 (+0100) Subject: perf.c: print group_fd argument of perf_event_open syscall as fd X-Git-Tag: v4.21~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67b7c125ba4298ba8247fe6761e2182001b0e6c2;p=strace perf.c: print group_fd argument of perf_event_open syscall as fd * perf.c (SYS_FUNC(perf_event_open)): Print 4th argument using printfd. --- diff --git a/perf.c b/perf.c index 84dac114..850b4498 100644 --- 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;