perf probe: Generalize probe event file open routine
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Thu, 23 Feb 2017 11:37:23 +0000 (17:07 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 3 Mar 2017 22:07:18 +0000 (19:07 -0300)
commite491bc2f0dd9f1b4a23ba6f3da88f6b695c4a4c9
tree2a9e9bbac5e74099cb8640009a8a6b08b052c60e
parent35b6f55aa9ba65141f2def0997e23aab13715d3f
perf probe: Generalize probe event file open routine

Generalize probe event file open routine into a generic function for opening
trace files.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: linuxppc-dev@lists.ozlabs.org
Link: http://lkml.kernel.org/r/b580465c7a4dcd5d3b40fdf8568e6be45d0a6333.1487849577.git.naveen.n.rao@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-file.c
tools/perf/util/probe-file.h