Reimplement BpfProgram

This commit is contained in:
Pragyansh Chaturvedi
2025-10-18 13:24:03 +05:30
parent 2b99f01b02
commit 5c74be041e
3 changed files with 63 additions and 76 deletions

View File

@ -65,7 +65,7 @@ void BpfObject::load() {
}
if (bpf_object__load(obj_)) {
std::string error_msg = " object from file '" + object_path_ + "': " + std::strerror(errno);
error_msg += " object from file '" + object_path_ + "': " + std::strerror(errno);
bpf_object__close(obj_);
obj_ = nullptr;
throw BpfException(error_msg);