You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to run one of the examples, I get a build failed with the following error
# github.com/iovisor/gobpf/bcc
bcc/module.go:98:40: too many arguments in call to _Cfunc_bpf_module_create_c_from_string
have (*_Ctype_char, number, **_Ctype_char, _Ctype_int, _Ctype__Bool, nil)
want (*_Ctype_char, _Ctype_uint, **_Ctype_char, _Ctype_int, _Ctype__Bool)
bcc/module.go:230:28: too many arguments in call to _C2func_bcc_func_load
have (unsafe.Pointer, _Ctype_int, *_Ctype_char, *_Ctype_struct_bpf_insn, _Ctype_int, *_Ctype_char, _Ctype_uint, _Ctype_int, *_Ctype_char, _Ctype_uint, nil)
want (unsafe.Pointer, _Ctype_int, *_Ctype_char, *_Ctype_struct_bpf_insn, _Ctype_int, *_Ctype_char, _Ctype_uint, _Ctype_int, *_Ctype_char, _Ctype_uint)
bcc/module.go:261:33: too many arguments in call to _C2func_bpf_attach_uprobe
have (_Ctype_int, uint32, *_Ctype_char, *_Ctype_char, _Ctype_ulong, _Ctype_int, number)
want (_Ctype_int, uint32, *_Ctype_char, *_Ctype_char, _Ctype_ulong, _Ctype_int)
The definitions for the functions seem to have dropped the last attribute. I am running the libbcc version 0.19.0-21d866e2 looked up from bcc_version.h.
root@linux-dev:/usr/include/bcc# grep -r bcc_func_load . -A 3
./bcc_common.h:int bcc_func_load(void *program, int prog_type, const char *name,
./bcc_common.h- const struct bpf_insn *insns, int prog_len,
./bcc_common.h- const char *license, unsigned kern_version,
./bcc_common.h- int log_level, char *log_buf, unsigned log_buf_size);
--
./bpf_module.h: int bcc_func_load(int prog_type, const char *name,
./bpf_module.h- const struct bpf_insn *insns, int prog_len,
./bpf_module.h- const char *license, unsigned kern_version,
./bpf_module.h- int log_level, char *log_buf, unsigned log_buf_size);
After modification of the function definitions, I am able to run the examples, but as
sudo -E /usr/local/go/bin/go run examples/bcc/execsnoop/*.go
The go binding should be made working with the newest version of bcc, there shall be special tag added for any changes that map to certain commit in the bcc repo. Hopefully can cut releases alongside BCC release (if BCC has releases).
When trying to run one of the examples, I get a build failed with the following error
The definitions for the functions seem to have dropped the last attribute. I am running the libbcc version
0.19.0-21d866e2
looked up frombcc_version.h
.After modification of the function definitions, I am able to run the examples, but as
and not as
Environment info
The text was updated successfully, but these errors were encountered: