bpf-developer-tutorial
bpf-developer-tutorial copied to clipboard
[BUG]使用ecli -h无法查看bpf程序的帮助信息
Describe the bug ecli -h不能显示opensnoop 的帮助信息,显示的是ecli自身的help信息
# ecli package.json -h
ERROR: ld.so: object '/$LIB/libonion.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
ecli subcommands, including run, push, pull
Usage: ecli [PROG] [EXTRA_ARGS]... [COMMAND]
Commands:
run run ebpf program
client Client operations
push Operations about pushing image to registry
pull Operations about pulling image from registry
help Print this message or the help of the given subcommand(s)
Arguments:
[PROG] Not preferred. Only for compatibility to older versions. Ebpf program URL or local path, set it `-` to read the program from stdin
[EXTRA_ARGS]... Not preferred. Only for compatibility to older versions. Extra args to the program; For wasm program, it will be passed directly to it; For JSON program, it will be passed to the generated argument parser
Options:
-h, --help Print help
To Reproduce 按照第4课的步骤做的,但是-h不能显示opensnoop 的帮助信息 https://github.com/eunomia-bpf/bpf-developer-tutorial/blob/main/src/4-opensnoop/README.md
Expected behavior 能显示opensnoop 的帮助信息
Desktop (please complete the following information): 用的腾讯云vm
# uname -a
Linux VM-0-11-tencentos 5.4.119-19.0009.37 #1 SMP Wed Oct 18 12:32:51 CST 2023 x86_64 x86_64 x86_64 GNU/Linux
[root@VM-0-11-tencentos 4-opensnoop]# cat /etc/redhat-release
TencentOS Server release 3.1 (Final)
ecc版本
ecc-rs 0.3.4
Try ecli package.json -- -h on older version of ecli. Newer version should have fixed this problem.