perf trace: Add support for syscalls vs raw_syscalls
authorDavid Ahern <dsahern@gmail.com>
Thu, 5 Dec 2013 02:41:39 +0000 (19:41 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 5 Dec 2013 13:05:45 +0000 (10:05 -0300)
commit9aca7f1792c5d2d5d367bbe5cfe204fe40517929
treec83ff78b2785e7598f2175890e723c8783e454b1
parent6d65894bc028d0342829ea1e64c9e9efad571124
perf trace: Add support for syscalls vs raw_syscalls

Older kernels (e.g., RHEL6) do system call tracing via
syscalls:sys_{enter,exit} rather than raw_syscalls. Update perf-trace to
detect lack of raw_syscalls support and try syscalls.

Signed-off-by: David Ahern <dsahern@gmail.com>
Link: http://lkml.kernel.org/r/1386211302-31303-2-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c