perf: Only provision cores if we restrict cores
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 8 Sep 2017 14:54:14 +0000 (10:54 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 8 Sep 2017 17:49:51 +0000 (13:49 -0400)
commit9d0bddd46ae15577a8bb564b16b944e833e3bce2
tree53279f4c1d4738c230e7f91f9f3c45a868776d4e
parentb7c8eddb9e6632c73c7884c19ecf653130dbb059
perf: Only provision cores if we restrict cores

If we restrict perf to run on certain cores, then we need the program to
run on those cores.  Otherwise, the provisioning doesn't help and can only
fail / mess with other apps.  It'll also conflict with any provisioning
done by the app itself.

Note that provisioning doesn't follow parents->child, so be careful using
perf -C.  You will end up not reliably sampling your programs children.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
tools/dev-util/perf/perf.c