Fix python2/3 incompatible percpu helpers
authorBrenden Blanco <bblanco@gmail.com>
Wed, 18 Jan 2017 17:02:59 +0000 (09:02 -0800)
committerBrenden Blanco <bblanco@gmail.com>
Fri, 20 Jan 2017 23:36:01 +0000 (15:36 -0800)
commitbfc13759753671fb6ad3a3e909c132914bc64e59
treea47de022e84124582372a940d1051f6758021906
parentf506be1ee567cea5eac382a6ba542610720df5b8
Fix python2/3 incompatible percpu helpers

The python3 version of the percpu helpers (average, sum, etc.) were
using a python2 function that has since moved to functools (reduce).

Worse, the test case for percpu functionality was not enabled in the
cmake file. Better turn that on and make it work.

Signed-off-by: Brenden Blanco <bblanco@gmail.com>
src/python/bcc/table.py
tests/python/CMakeLists.txt
tests/python/test_percpu.py