diff --git a/libbpf-tools/funclatency.bpf.c b/libbpf-tools/funclatency.bpf.c index 97804147ca93..6d6559adfe9d 100644 --- a/libbpf-tools/funclatency.bpf.c +++ b/libbpf-tools/funclatency.bpf.c @@ -88,6 +88,8 @@ static void exit(void) if (slot >= MAX_SLOTS) slot = MAX_SLOTS - 1; __sync_fetch_and_add(&hist[slot], 1); + + bpf_map_delete_elem(&starts, &pid); } SEC("fexit/dummy_fexit")