mirror of
https://github.com/varun-r-mallya/pylibbpf.git
synced 2025-12-31 20:36:26 +00:00
addd example and support for load and attach
This commit is contained in:
@ -33,6 +33,7 @@ PYBIND11_MODULE(pylibbpf, m) {
|
||||
.def("load", &BpfProgram::load)
|
||||
.def("attach", &BpfProgram::attach)
|
||||
// .def("detach", &BpfProgram::detach)
|
||||
.def("load_and_attach", &BpfProgram::load_and_attach)
|
||||
.def("is_loaded", &BpfProgram::is_loaded)
|
||||
.def("is_attached", &BpfProgram::is_attached);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user