runtime: expose linux perf counters to swig