OSDN Git Service

perf trace: Beautify fifth argument of mmap() as fd
authorNamhyung Kim <namhyung.kim@lge.com>
Tue, 12 Nov 2013 06:24:59 +0000 (15:24 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Nov 2013 16:00:23 +0000 (13:00 -0300)
commit73faab3a421351c342b10b0177fec9eea1a1d809
tree2559ff4867c631918d55eb2823ca6cd47da9b1ed
parent67c1e4a53b17894e6a24f95057cc374c4be051cb
perf trace: Beautify fifth argument of mmap() as fd

The fifth argument of mmap syscall is fd and it often contains -1 as a
value for anon mappings.  Without this patch it doesn't show the file
name as well as it shows -1 as 4294967295.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: David Ahern <dsahern@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1384237500-22991-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c