perf beauty ioctl cmd: The 'fd' arg is signed
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Feb 2019 13:12:28 +0000 (10:12 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 14 Feb 2019 16:31:11 +0000 (13:31 -0300)
commite1be4a5c03e1b282633e5528ea634c1cc2095c43
treef791a2b5593cbf788145da09f58c74618ebb279b
parent0ec572f05721f430cf8470595da8c3d5e25567de
perf beauty ioctl cmd: The 'fd' arg is signed

It is possible to pass a negative number as the fd and that has to be
handled, so stop using 'unsigned int fd' in the ioctl syscall 'cmd'
beautifier.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-b7qwa0l19dswa09h3s41akfu@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/trace/beauty/ioctl.c