We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
bcc commit "Support for hardware offload" d147588ebe35b7cd2b4d253a7da18bef253ea78d
added extra argument "const char *dev_name" which is failing this test.
# go test -tags integration -v ./... # github.com/iovisor/gobpf/bcc ../github.com/iovisor/gobpf/bcc/module.go:98:40: not enough arguments in call to _Cfunc_bpf_module_create_c_from_string have (*_Ctype_char, number, **_Ctype_char, _Ctype_int, _Ctype__Bool) want (*_Ctype_char, _Ctype_uint, **_Ctype_char, _Ctype_int, _Ctype__Bool, *_Ctype_char) FAIL gobpf [build failed] # gobpf/bcc bcc/module.go:98:40: not enough arguments in call to _Cfunc_bpf_module_create_c_from_string have (*_Ctype_char, number, **_Ctype_char, _Ctype_int, _Ctype__Bool) want (*_Ctype_char, _Ctype_uint, **_Ctype_char, _Ctype_int, _Ctype__Bool, *_Ctype_char)
The text was updated successfully, but these errors were encountered:
I came across the same problem, do you have patch to fix it? still new to golang, not sure how to fix it myself
go test -tags integration -v ./... github.com/iovisor/gobpf/bcc /usr/local/go/src/github.com/iovisor/gobpf/bcc/module.go:98:8: error: not enough arguments c := C.bpf_module_create_c_from_string(cs, 2, (**C.char)(&cflagsC[0]), C.int(len(cflagsC)), (C.bool)(true)) ^ FAIL _/usr/src/gobpf [build failed] # _/usr/src/gobpf/bcc bcc/module.go:98:8: error: not enough arguments c := C.bpf_module_create_c_from_string(cs, 2, (**C.char)(&cflagsC[0]), C.int(len(cflagsC)), (C.bool)(true)) ^
how to add the "const char *dev_name" in C.bpf_module_create_c_from_string?
Sorry, something went wrong.
Add nil as last argument. C.bpf_module_create_c_from_string(cs, 2, (**C.char)(&cflagsC[0]), C.int(len(cflagsC)), (C.bool)(true),nil)
cda73bd
Merge pull request #210 from alexforster/202
7c8f8e0
bcc: update bpf_module_create_c_from_string for bcc 0.11.0 (fixes #202)
No branches or pull requests
bcc commit "Support for hardware offload" d147588ebe35b7cd2b4d253a7da18bef253ea78d
added extra argument "const char *dev_name" which is failing this test.
The text was updated successfully, but these errors were encountered: