From b56da24f6acdf74e33664d50d7e7958919f4aa13 Mon Sep 17 00:00:00 2001 From: Rolf Neugebauer Date: Fri, 6 Jan 2017 16:43:43 +0000 Subject: [PATCH] docs: add --pid=host to ebpf command line. A lot of the `iovisor/bcc` tools take a pid as a command line option and using `--pid=host` allows you to use `$(pgrep foo)` Signed-off-by: Rolf Neugebauer --- docs/ebpf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ebpf.md b/docs/ebpf.md index 7d8ec8ab0..7f9057aa2 100644 --- a/docs/ebpf.md +++ b/docs/ebpf.md @@ -11,7 +11,7 @@ benchmarks etc. You probably want to run with -`docker run -it -v /sys/kernel/debug:/sys/kernel/debug --privileged mobylinux/ebpf:tag sh` for +`docker run -it -v /sys/kernel/debug:/sys/kernel/debug --privileged --pid=host mobylinux/ebpf:tag sh` for interactive use as some things use debugfs. You need at least `CAP_SYS_ADMIN` to do anything. There are examples in `bcc/examples` that should generally just work, I have tried several of the Lua ones.