foniod / redbpf

Rust library for building and running BPF/eBPF modules
Apache License 2.0
1.71k stars 136 forks source link

Update "do_sys_openat2" example to "do_sys_open" #267

Closed wm775825 closed 2 years ago

wm775825 commented 2 years ago

"do_sys_openat2" may run failed beacuse of gcc, cause this function is a static function that may be inlined. However, "do_sys_open" is not a static function and will not be inlined, which will not run failed. For detail, refer to issues https://github.com/foniod/redbpf/issues/266