Unconditionally fall back to software if opening hardware counters fails
authorSøren Sandmann Pedersen <sandmann@daimi.au.dk>
Mon, 1 Feb 2010 19:02:41 +0000 (14:02 -0500)
committerSøren Sandmann Pedersen <sandmann@daimi.au.dk>
Mon, 1 Feb 2010 19:02:41 +0000 (14:02 -0500)
commit3e4921b92dbf40a5e8412539898f22b6eacc3816
tree3e5130e060d9e26341781475c9967165f0adb4aa
parent16f11912e2d7a575e952ce35b014297054a65b9b
Unconditionally fall back to software if opening hardware counters fails

If hardware counters are not available, fall back to SW regardless of
why the hardware counters aren't available. The error code can be
either ENOTSUPP or ENODEV depending on CPU type, so it's simpler to
just retry in all cases, and only fail if the software fallback
failed.
collector.c