eunomia-bpf / bpftime

Userspace eBPF runtime for Observability, Network & General Extensions Framework
https://eunomia.dev/bpftime/
MIT License
791 stars 74 forks source link

[BUG] bpftime start doesn't work with additional arguments containing dashes #181

Closed caizixian closed 8 months ago

caizixian commented 8 months ago

Describe the bug bpftime start doesn't work with additional arguments containing dashes, which are often used in Java workloads, such as -Xms and -Xmx.

To Reproduce sudo /root/.bpftime/bpftime start java -Xms100M -Xmx100M -jar dacapo-23.11-chopin.jar fop

Unknown argument: -Xms100M
Usage: /root/.bpftime/bpftime [--help] [--version] --install-location VAR [--dry-run] {attach,load,start}

Optional arguments:
  -h, --help              shows help message and exits
  -v, --version           prints version information and exits
  -i, --install-location  Installing location of bpftime [default: "/root/.bpftime"]
  -d, --dry-run           Run without commiting any modifications

Subcommands:
  attach                 Inject bpftime-agent to a certain pid
  load                   Start an application with bpftime-server injected
  start                  Start an application with bpftime-agent injected

Expected behavior Start the child program.

Desktop (please complete the following information):

Additional context None