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 Reproducesudo /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):
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
Expected behavior Start the child program.
Desktop (please complete the following information):
Additional context None