• Brenden Blanco's avatar
    Fix breakage in open_perf_buffer · 0dd24416
    Brenden Blanco authored
    The previous commit for splitting table.py into a separate file lost
    some required imports. Add those back.
    
    In addition, add a test for open_perf_buffer, and take out the
    compile-time check in libbpf.c for this feature.
    
    I couldn't think of a good way to fix the PERF_COUNT_SW_BPF_OUTPUT
    literal, so for now left it as a comment. A #define wouldn't work since
    the eventual value comes from an enum (no #ifndef/#define/#endif
    pattern).
    
    Fixes: #391 #363
    Signed-off-by: default avatarBrenden Blanco <bblanco@plumgrid.com>
    0dd24416
test_array.py 1.95 KB