perf: Delay the opening of kpctl
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 15 Jun 2016 15:29:52 +0000 (11:29 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 17 Jun 2016 16:17:54 +0000 (12:17 -0400)
commit1d6cc4d8f8efc5c6f49deccad37986bd1faf91b0
treea5e1c56f4d442aa1910b9373f41f7a730277b1a9
parent9a023fa2149b1f476cab0b305b68281925da8ee3
perf: Delay the opening of kpctl

Only perf record needs it, and since kpctl only allows one opener at a
time, this prevents multiple perf commands.  We still can only run one perf
record at a time (due to the global profiler), but now we can run something
like:

perf record -e cycles perf stat -e bus-cycles hello

Where perf record tracks perf stat tracking hello.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tools/profile/perf/perf_core.c
tools/profile/perf/perf_core.h