perf trace: Fix error reporting for evsel pgfault constructor
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 22 Jan 2015 14:08:04 +0000 (11:08 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 22 Jan 2015 14:16:34 +0000 (11:16 -0300)
commit5ed08dae9d2f2307c103e2dce94d801e74aefae4
tree3a847cc43d412e1343b4058e45aca9291cb6d972
parent801c67b05f55d0cdafcda9fdcbb3da375b03c192
perf trace: Fix error reporting for evsel pgfault constructor

In that case the only failure possible is not to have enough memory, as
we are just creating the evsels, not trying to access any system
facility such as debugfs files or syscalls.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-7k6asvfhiwiu2zs6o2oknchk@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c