Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contrib: introduce mapdups.sh #290

Merged
merged 1 commit into from
Aug 8, 2022
Merged

contrib: introduce mapdups.sh #290

merged 1 commit into from
Aug 8, 2022

Conversation

willfindlay
Copy link
Contributor

This helper script is useful for parsing a bpftool map dump and determining whether or
not duplicate maps are loaded (as indicated by their map name). It's not a perfect
solution, but is helpful for rough debugging locally when something is not working right
in Tetragon.

When run on a file containing bpftool map output, the result will be a list of map names
and their respective counts, sorted by count. Numbers higher than 1 are considered
suspicious unless the map is OK to be duplicated (e.g. a "*heap" map in Tetragon.)

Signed-off-by: William Findlay [email protected]

This helper script is useful for parsing a bpftool map dump and determining whether or
not duplicate maps are loaded (as indicated by their map name). It's not a perfect
solution, but is helpful for rough debugging locally when something is not working right
in Tetragon.

When run on a file containing bpftool map output, the result will be a list of map names
and their respective counts, sorted by count. Numbers higher than 1 are considered
suspicious unless the map is OK to be duplicated (e.g. a "*heap" map in Tetragon.)

Signed-off-by: William Findlay <[email protected]>
@willfindlay willfindlay requested a review from a team as a code owner August 5, 2022 15:37
@willfindlay willfindlay requested a review from tpapagian August 5, 2022 15:37
@jrfastab jrfastab merged commit 66db577 into main Aug 8, 2022
@jrfastab jrfastab deleted the pr/willfindlay/mapdups branch August 8, 2022 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants