Reimplement BpfMap

This commit is contained in:
Pragyansh Chaturvedi
2025-10-18 20:59:31 +05:30
parent 54acc2c15d
commit c5a485b526
3 changed files with 261 additions and 194 deletions

View File

@ -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");
}