Home
last modified time | relevance | path

Searched refs:opts (Results 1 – 4 of 4) sorted by relevance

/DragonOS/user/apps/test_ebpf/syscall_ebpf/xtask/src/
H A Dmain.rs23 let opts = Options::parse(); in main() localVariable
26 let ret = match opts.command { in main()
27 BuildEbpf(opts) => build_ebpf::build_ebpf(opts), in main()
28 Run(opts) => run::run(opts), in main()
29 Build(opts) => build::build(opts), in main()
H A Dbuild.rs19 fn build_project(opts: &Options) -> Result<(), anyhow::Error> { in build_project()
21 if opts.release { in build_project()
33 pub fn build(opts: Options) -> Result<(), anyhow::Error> { in build()
36 target: opts.bpf_target, in build()
37 release: opts.release, in build()
40 build_project(&opts).context("Error while building userspace application")?; in build()
H A Drun.rs26 pub fn run(opts: Options) -> Result<(), anyhow::Error> { in run()
29 bpf_target: opts.bpf_target, in run()
30 release: opts.release, in run()
34 let profile = if opts.release { "release" } else { "debug" }; in run()
38 let mut run_args: Vec<_> = opts.run_args.iter().map(String::as_str).collect(); in run()
41 let mut args: Vec<_> = opts.runner.trim().split_terminator(' ').collect(); in run()
H A Dbuild_ebpf.rs42 pub fn build_ebpf(opts: Options) -> Result<(), anyhow::Error> { in build_ebpf()
44 let target = format!("--target={}", opts.target); in build_ebpf()
51 if opts.release { in build_ebpf()