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

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.

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

No branches or pull requests

2 participants