perf: Minimize the sampling of perf itself
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 15 Jun 2016 15:10:30 +0000 (11:10 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 17 Jun 2016 16:17:54 +0000 (12:17 -0400)
commit32b0a961f86aeb7083f6f0af6568942d7fdf9c80
tree59b9208e95d4a354a9703b2a2fc81871e9530974
parentef1db1a7c0030f6d32e397ecda1150e42c8ea461
perf: Minimize the sampling of perf itself

The perf events fire as soon as you submit them to the kernel.  We can
control whether or not we gather the actual samples (i.e. backtraces) for
perf record.  This will minimize the impact of perf on the trace, as well
as just be a little cleaner.

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