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

Unsupported map type warning message doesn't go away when unsupported type maps are allowed #1081

Open
banditopazzo opened this issue Nov 12, 2024 · 1 comment · May be fixed by #1092
Open

Comments

@banditopazzo
Copy link
Contributor

I was trying to load an unsupported map type and I got the following error:

The map my_task_storage is of type BPF_MAP_TYPE_TASK_STORAGE which is currently unsupported in Aya, use `allow_unsupported_maps()` to load it anyways

and my program crashes with something like:

Unsupported map type found 29

and it's OK.

Then I added allow_unsupported_maps() to BpfLoader it loads the program without crashing but prints again:

The map my_task_storage is of type BPF_MAP_TYPE_TASK_STORAGE which is currently unsupported in Aya, use `allow_unsupported_maps()` to load it anyways
@tyrone-wu
Copy link
Contributor

tyrone-wu commented Nov 12, 2024

Yah. The message could use some tweaking, or removed, when loading an unsupported map in aya with allow_unsupported_maps specified.

The parse_map() function could probably be inlined like how programs is done.

@banditopazzo banditopazzo linked a pull request Nov 18, 2024 that will close this issue
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 a pull request may close this issue.

2 participants