mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-24 03:15:36 +00:00
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 <rolf.neugebauer@docker.com>
This commit is contained in:
parent
95473adf67
commit
b56da24f6a
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user