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

MAX_EXT_FUNCS seems to be too small #425

Open
Officeyutong opened this issue Apr 11, 2024 · 0 comments
Open

MAX_EXT_FUNCS seems to be too small #425

Officeyutong opened this issue Apr 11, 2024 · 0 comments

Comments

@Officeyutong
Copy link

Currently MAX_EXT_FUNCS is hardcoded in code and has a value of 64, see

#define MAX_EXT_FUNCS 64

This seems to be too small, since kernel has more than 200 helpers (see https://github.com/libbpf/libbpf/blob/master/src/bpf_helper_defs.h)

What about determining the maximum number of external helpers at runtime, and let user provide this number when calling ubpf_create?

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

1 participant