• Sasha Goldshtein's avatar
    funccount: Switch to BPF array instead of hash · dd7ec5a3
    Sasha Goldshtein authored
    Because we know the number of probes in advance before
    attaching them, we can simply preinitialize a fixed-size
    array instead of using a BPF map. This avoids potential
    deadlocks/hangs/race conditions with the Python program
    and internally in the kernel. See also #415, #665, #233
    for more discussion.
    dd7ec5a3
funccount.py 11.4 KB