mirror of
https://github.com/varun-r-mallya/pylibbpf.git
synced 2026-02-12 16:11:00 +00:00
Reimplement BpfMap
This commit is contained in:
@ -10,6 +10,8 @@ BpfProgram::BpfProgram(std::shared_ptr<BpfObject> parent, struct bpf_program *ra
|
||||
program_name_(program_name) {
|
||||
if (!parent)
|
||||
throw BpfException("Parent BpfObject is null");
|
||||
if(!(parent->is_loaded()))
|
||||
throw BpfException("Parent BpfObject is not loaded");
|
||||
if (!raw_prog)
|
||||
throw BpfException("bpf_program pointer is null");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user