You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add MapExtra field to MapSpec struct for map-specific configuration
- Update map creation to pass MapExtra to kernel syscall
- Handle map_extra field in BTF map definitions (elf_reader.go)
- Add NewBloomFilter helper function for creating bloom filter maps
- Add comprehensive tests for bloom filter functionality
Bloom filter maps were introduced in Linux 5.16 and use the MapExtra
field to specify the number of hash functions (lower 4 bits, 1-15 range).
The default is 5 hash functions if not specified.
This enables creating bloom filters with custom hash function counts:
spec, err := NewBloomFilter("my_bloom", 4, 1000, 3)
Fixes#669
0 commit comments