mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-11-01 21:24:12 +08:00
Deploying to gh-pages from @ eunomia-bpf/bpf-developer-tutorial@a53481d131 🚀
This commit is contained in:
@@ -249,7 +249,7 @@ int handle_exit(struct trace_event_raw_sched_process_template* ctx)
|
||||
<h2 id="compile-and-run"><a class="header" href="#compile-and-run">Compile and Run</a></h2>
|
||||
<p>eunomia-bpf 是一个结合 Wasm 的开源 eBPF 动态加载运行时和开发工具链,它的目的是简化 eBPF 程序的开发、构建、分发、运行。可以参考 <a href="https://github.com/eunomia-bpf/eunomia-bpf">https://github.com/eunomia-bpf/eunomia-bpf</a> 下载和安装 ecc 编译工具链和 ecli 运行时。我们使用 eunomia-bpf 编译运行这个例子。</p>
|
||||
<p>Compile:</p>
|
||||
<pre><code class="language-shell">docker run -it -v `pwd`/:/src/ yunwei37/ebpm:latest
|
||||
<pre><code class="language-shell">docker run -it -v `pwd`/:/src/ ghcr.io/eunomia-bpf/ecc-`uname -m`:latest
|
||||
</code></pre>
|
||||
<p>Or</p>
|
||||
<pre><code class="language-console">$ ecc exitsnoop.bpf.c exitsnoop.h
|
||||
|
||||
Reference in New Issue
Block a user