iovisor / bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
Apache License 2.0
20.36k stars 3.86k forks source link

libbpf-tools/profile: Batch lookup support for hash map #4990

Open ekyooo opened 4 months ago

ekyooo commented 4 months ago

Use bpf_map_lookup_batch() instead of bpf_map_get_next_key() to read the hash map, if available.

ekyooo commented 4 months ago

Could you let me know if I've misunderstood any of your comments? Thank you.