Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions module.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ func (m *Module) BPFLoadObject() error {
return nil
}

func (m *Module) BPFReplaceExistingObject(obj unsafe.Pointer) error {
m.obj = (*C.struct_bpf_object)(obj)
return nil
}

// InitGlobalVariable sets global variables (defined in .data or .rodata)
// in bpf code. It must be called before the BPF object is loaded.
func (m *Module) InitGlobalVariable(name string, value interface{}) error {
Expand Down
Loading