ebpf:ErBang到eBPF的接口

时间:2021-05-08 14:44:46
【文件属性】:
文件名称:ebpf:ErBang到eBPF的接口
文件大小:120KB
文件格式:ZIP
更新时间:2021-05-08 14:44:46
erlang beam ebpf xdp bpf ebpf Erlang eBPF库 概述 ebpf是一个Erlang库,用于创建eBPF程序并与之交互。 当前包括以下模块: ebpf_user :加载eBPF程序并使用已加载的程序 ebpf_kern :根据不同的参数生成eBPF指令 ebpf_asm :eBPF组装和拆卸例程 ebpf_maps :eBPF映射的用户空间API,使用eBPF映射模拟Erlang / OTP maps接口 文献资料 可以在上浏览最新版本的文档。 main分支的文档也可。 ebpf是用,文档可以用本地构建 $ rebar3 edoc 用法 查看。 下面给出一个最小的示例: % Drop all packets BinProg = ebpf_asm : assemble ( ebpf_kern : return ( 0 )), { ok , FilterProg } = ebpf_user : loa
【文件预览】:
ebpf-main
----.gitattributes(35B)
----.github()
--------workflows()
----c_src()
--------bpf.c(25KB)
--------netlink.c(4KB)
--------Makefile(2KB)
--------bpf.h(10KB)
--------ebpf_lib.c(26KB)
--------bpf_endian.h(4KB)
--------include()
----CHANGES.md(1KB)
----src()
--------ebpf_maps.erl(15KB)
--------ebpf_user.erl(11KB)
--------ebpf_kern.erl(23KB)
--------ebpf_asm.erl(9KB)
--------ebpf.app.src(301B)
--------ebpf_lib.erl(4KB)
----doc()
--------overview.edoc(2KB)
----examples()
--------cf_ttl.erl(3KB)
----LICENSE(11KB)
----test()
--------ebpf_SUITE.erl(18KB)
--------prop_ebpf.erl(1KB)
--------proper-regressions.consult(177B)
----README.md(3KB)
----rebar.config(323B)
----.gitignore(216B)
----include()
--------ebpf_kern.hrl(7KB)

网友评论