eunomia-bpf / bpftime

Userspace eBPF runtime for fast Uprobe & Syscall hook & Extensions with LLVM JIT
https://eunomia.dev/bpftime/
MIT License
687 stars 68 forks source link

runtime/agent: Add top level exception handlers #260

Closed Officeyutong closed 3 months ago

Officeyutong commented 3 months ago

Added top level exception handlers (try-catch) at:

This PR also replaces almost all asserts in runtime with throw std::runtime_error (Most of asserts are in constructors of handlers or maps, so if they were replaced with throws, we could catch whem when instantiating handlers or creating maps)