Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]使用ecli -h无法查看bpf程序的帮助信息 #83

Open
cumirror opened this issue Dec 2, 2023 · 1 comment
Open

[BUG]使用ecli -h无法查看bpf程序的帮助信息 #83

cumirror opened this issue Dec 2, 2023 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@cumirror
Copy link

cumirror commented Dec 2, 2023

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
@cumirror cumirror added the bug Something isn't working label Dec 2, 2023
@yunwei37 yunwei37 added the help wanted Extra attention is needed label Dec 7, 2023
@Officeyutong
Copy link
Contributor

Officeyutong commented Dec 12, 2023

Try ecli package.json -- -h on older version of ecli. Newer version should have fixed this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants