def test_callchain1(self):
        hist = {}
        def cb(pid, callchain):
            counter = hist.get(callchain, 0)
            counter += 1
            hist[callchain] = counter

        b = BPF(text="""
#include <linux/ptrace.h>
int kprobe__finish_task_switch(struct pt_regs *ctx) {
    return 1;
}
""", cb=cb)
        start = time.time()
        while start + 1 < time.time():
            b.kprobe_poll()

        for k, v in hist.items():
            syms = [b.ksym(addr) for addr in k]
            print("%-08d:" % v, syms)
dataset/ETHPy150Open iovisor/bcc/tests/python/test_callchain.py/TestCallchain.test_callchain1/swapped operands of `<`