diff options
Diffstat (limited to 'src/cc/api')
-rw-r--r-- | src/cc/api/BPF.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cc/api/BPF.h b/src/cc/api/BPF.h index 8dd5f842..21fb42dd 100644 --- a/src/cc/api/BPF.h +++ b/src/cc/api/BPF.h @@ -47,8 +47,9 @@ class BPF { static const int BPF_MAX_STACK_DEPTH = 127; explicit BPF(unsigned int flag = 0, TableStorage* ts = nullptr, - bool rw_engine_enabled = true) - : flag_(flag), bpf_module_(new BPFModule(flag, ts, rw_engine_enabled)) {} + bool rw_engine_enabled = true, const std::string &maps_ns = "") + : flag_(flag), + bpf_module_(new BPFModule(flag, ts, rw_engine_enabled, maps_ns)) {} StatusTuple init(const std::string& bpf_program, const std::vector<std::string>& cflags = {}, const std::vector<USDT>& usdt = {}); |