Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 25 of 93) sorted by relevance

1234

/qemu/tests/qtest/libqos/
H A Dvirtio-9p-client.c427 g_assert(!opt.path || !(opt.nwname || opt.wnames)); in v9fs_twalk()
429 g_assert(!opt.expectErr || !(opt.rwalk.nwqid || opt.rwalk.wqid)); in v9fs_twalk()
658 g_assert(!opt.expectErr || !(opt.rlopen.qid || opt.rlopen.iounit)); in v9fs_tlopen()
710 v9fs_memwrite(req, opt.data, opt.count); in v9fs_twrite()
781 g_assert(!opt.atPath || !opt.dfid); in v9fs_tmkdir()
841 g_assert(!opt.atPath || !opt.fid); in v9fs_tlcreate()
843 g_assert(!opt.expectErr || !(opt.rlcreate.qid || opt.rlcreate.iounit)); in v9fs_tlcreate()
905 g_assert(!opt.atPath || !opt.fid); in v9fs_tsymlink()
962 g_assert(!opt.atPath || !opt.dfid); in v9fs_tlink()
964 g_assert(!opt.toPath || !opt.fid); in v9fs_tlink()
[all …]
/qemu/scripts/
H A Dmeson-buildoptions.py83 def get_help(opt): argument
127 def allow_arg(opt): argument
139 def require_arg(opt): argument
161 def cli_option(opt): argument
162 name = opt["name"]
172 if opt["type"] == "boolean" and opt["value"]:
177 def cli_metavar(opt): argument
200 if opt["type"] == "combo" and "enabled" in opt["choices"]:
226 if opt["type"] == "array" and not "choices" in opt:
234 if opt["type"] == "combo" and "enabled" in opt["choices"]:
[all …]
H A Dtracetool.py80 for opt, arg in opts:
81 if opt == "--help":
84 elif opt == "--backends":
86 elif opt == "--group":
88 elif opt == "--format":
91 elif opt == "--list-backends":
95 elif opt == "--check-backends":
98 elif opt == "--binary":
100 elif opt == '--probe-prefix':
104 error_opt("unhandled option: %s" % opt)
/qemu/util/
H A Dqemu-option.c238 QTAILQ_REMOVE(&opt->opts->head, opt, next); in qemu_opt_del()
347 assert(opt->desc && opt->desc->type == QEMU_OPT_BOOL); in qemu_opt_get_bool_helper()
451 return qapi_bool_parse(opt->name, opt->str, &opt->value.boolean, errp); in qemu_opt_parse()
453 return parse_option_number(opt->name, opt->str, &opt->value.uint, in qemu_opt_parse()
456 return parse_option_size(opt->name, opt->str, &opt->value.uint, in qemu_opt_parse()
484 QemuOpt *opt = g_malloc0(sizeof(*opt)); in opt_create() local
538 opt = g_malloc0(sizeof(*opt)); in qemu_opt_set_bool()
561 opt = g_malloc0(sizeof(*opt)); in qemu_opt_set_number()
584 rc = func(opaque, opt->name, opt->str, errp); in qemu_opt_foreach()
726 value = opt ? opt->str : desc->def_value_str; in qemu_opts_print()
[all …]
H A Dqdist.c247 uint32_t opt, bool is_left) in qdist_pr_label() argument
259 if (!(opt & QDIST_PR_LABELS)) { in qdist_pr_label()
263 dec = opt & QDIST_PR_NODECIMAL ? 0 : 1; in qdist_pr_label()
264 percent = opt & QDIST_PR_PERCENT ? "%" : ""; in qdist_pr_label()
270 if (opt & QDIST_PR_100X) { in qdist_pr_label()
274 if (opt & QDIST_PR_NOBINRANGE) { in qdist_pr_label()
290 if (!(opt & QDIST_PR_NOBINRANGE)) { in qdist_pr_label()
305 char *qdist_pr(const struct qdist *dist, size_t n_bins, uint32_t opt) in qdist_pr() argument
307 const char *border = opt & QDIST_PR_BORDER ? "|" : ""; in qdist_pr()
318 llabel = qdist_pr_label(dist, n_bins, opt, true); in qdist_pr()
[all …]
/qemu/tests/tcg/mips/user/ase/msa/
H A Dtest_msa_compile_64r6eb.sh6 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_b.c \
8 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_h.c \
10 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_w.c \
12 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_d.c \
14 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_b.c \
16 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_h.c \
18 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_w.c \
20 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_d.c \
22 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_pcnt_b.c \
24 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_pcnt_h.c \
[all …]
H A Dtest_msa_compile_64r6el.sh6 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_b.c \
8 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_h.c \
10 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_w.c \
12 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_d.c \
14 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_b.c \
16 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_h.c \
18 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_w.c \
20 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_d.c \
22 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_pcnt_b.c \
24 /opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_pcnt_h.c \
[all …]
H A Dtest_msa_compile_32r5eb.sh6 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_b.c \
9 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_h.c \
12 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_w.c \
15 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_d.c \
18 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_b.c \
21 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_h.c \
24 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_w.c \
27 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_d.c \
30 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_pcnt_b.c \
33 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_pcnt_h.c \
[all …]
H A Dtest_msa_compile_32r5el.sh6 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_b.c \
9 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_h.c \
12 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_w.c \
15 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_d.c \
18 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_b.c \
21 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_h.c \
24 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_w.c \
27 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_d.c \
30 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_pcnt_b.c \
33 /opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_pcnt_h.c \
[all …]
/qemu/qapi/
H A Dopts-visitor.c356 if (!opt) { in opts_type_str()
360 *obj = g_strdup(opt->str ? opt->str : ""); in opts_type_str()
378 if (!opt) { in opts_type_bool()
381 if (opt->str) { in opts_type_bool()
382 if (!qapi_bool_parse(opt->name, opt->str, obj, errp)) { in opts_type_bool()
409 if (!opt) { in opts_type_int64()
412 str = opt->str ? opt->str : ""; in opts_type_int64()
466 if (!opt) { in opts_type_uint64()
469 str = opt->str; in opts_type_uint64()
512 if (!opt) { in opts_type_size()
[all …]
/qemu/tests/unit/
H A Dtest-qemu-opts.c206 bool opt; in test_qemu_opt_get_bool() local
249 uint64_t opt; in test_qemu_opt_get_number() local
267 g_assert(opt == 5); in test_qemu_opt_get_number()
273 g_assert(opt == 10); in test_qemu_opt_get_number()
292 uint64_t opt; in test_qemu_opt_get_size() local
311 g_assert(opt == 5); in test_qemu_opt_get_size()
380 uint64_t opt; in test_qemu_opts_reset() local
398 g_assert(opt == 5); in test_qemu_opts_reset()
962 QemuOpt *opt; in test_opts_to_qdict_duplicates() local
973 opt = QTAILQ_NEXT(opt, next); in test_opts_to_qdict_duplicates()
[all …]
H A Dtest-crypto-akcipher.c665 QCryptoAkCipherOptions opt; member
675 QCryptoAkCipherOptions opt; member
787 .opt = {
807 .opt = {
832 .opt = {
852 .opt = {
887 pub_key = qcrypto_akcipher_new(&data->opt, in test_akcipher()
892 priv_key = qcrypto_akcipher_new(&data->opt, in test_akcipher()
946 QCryptoAkCipherOptions opt = { in test_rsakey() local
954 &opt, data->key_type, data->key, data->keylen, NULL); in test_rsakey()
[all …]
H A Dtest-qdist.c125 static void do_test_pr(uint32_t opt) in do_test_pr() argument
149 if (opt & QDIST_PR_LABELS) { in do_test_pr()
150 unsigned int lopts = opt & (QDIST_PR_NODECIMAL | in do_test_pr()
178 if (opt & QDIST_PR_BORDER) { in do_test_pr()
186 if (opt & QDIST_PR_BORDER) { in do_test_pr()
194 pr = qdist_pr(&dist, n, opt); in do_test_pr()
202 static inline void do_test_pr_label(uint32_t opt) in do_test_pr_label() argument
204 opt |= QDIST_PR_LABELS; in do_test_pr_label()
205 do_test_pr(opt); in do_test_pr_label()
/qemu/tests/plugin/
H A Dmem.c91 char *opt = argv[i]; in qemu_plugin_install() local
92 g_auto(GStrv) tokens = g_strsplit(opt, "=", 2); in qemu_plugin_install()
96 fprintf(stderr, "boolean argument parsing failed: %s\n", opt); in qemu_plugin_install()
107 fprintf(stderr, "invalid value for argument track: %s\n", opt); in qemu_plugin_install()
112 fprintf(stderr, "boolean argument parsing failed: %s\n", opt); in qemu_plugin_install()
117 fprintf(stderr, "boolean argument parsing failed: %s\n", opt); in qemu_plugin_install()
121 fprintf(stderr, "option parsing failed: %s\n", opt); in qemu_plugin_install()
H A Dbb.c103 char *opt = argv[i]; in qemu_plugin_install() local
104 g_auto(GStrv) tokens = g_strsplit(opt, "=", 2); in qemu_plugin_install()
107 fprintf(stderr, "boolean argument parsing failed: %s\n", opt); in qemu_plugin_install()
112 fprintf(stderr, "boolean argument parsing failed: %s\n", opt); in qemu_plugin_install()
116 fprintf(stderr, "option parsing failed: %s\n", opt); in qemu_plugin_install()
/qemu/.gitlab-ci.d/
H A Dcirrus.yml74 PATH_EXTRA: /opt/homebrew/ccache/libexec:/opt/homebrew/gettext/bin
75 …PKG_CONFIG_PATH: /opt/homebrew/curl/lib/pkgconfig:/opt/homebrew/ncurses/lib/pkgconfig:/opt/homebre…
90 PATH_EXTRA: /opt/homebrew/ccache/libexec:/opt/homebrew/gettext/bin
91 …PKG_CONFIG_PATH: /opt/homebrew/curl/lib/pkgconfig:/opt/homebrew/ncurses/lib/pkgconfig:/opt/homebre…
/qemu/.gitlab-ci.d/cirrus/
H A Dmacos-13.vars7 CCACHE='/opt/homebrew/bin/ccache'
10 MAKE='/opt/homebrew/bin/gmake'
11 NINJA='/opt/homebrew/bin/ninja'
13 PIP3='/opt/homebrew/bin/pip3'
16 PYTHON='/opt/homebrew/bin/python3'
H A Dmacos-14.vars7 CCACHE='/opt/homebrew/bin/ccache'
10 MAKE='/opt/homebrew/bin/gmake'
11 NINJA='/opt/homebrew/bin/ninja'
13 PIP3='/opt/homebrew/bin/pip3'
16 PYTHON='/opt/homebrew/bin/python3'
/qemu/tests/qemu-iotests/
H A D17767 limits=align=512,max-transfer=64k,opt-write-zero=$CLUSTER_SIZE
75 limits=align=512,opt-write-zero=15M,max-write-zero=15M,opt-discard=15M,max-discard=15M
82 limits=align=512,opt-write-zero=15M,max-write-zero=15M,opt-discard=15M,max-discard=15M
H A D20468 limits=align=512,max-transfer=64k,opt-write-zero=$CLUSTER_SIZE
76 limits=align=512,opt-write-zero=15M,max-write-zero=15M,opt-discard=15M,max-discard=15M
83 limits=align=512,opt-write-zero=15M,max-write-zero=15M,opt-discard=15M,max-discard=15M
/qemu/target/loongarch/
H A DREADME39 tar -vxf loongarch64-clfs-system-5.0.tar.bz2 -C /opt/clfs
41 cp /opt/clfs/lib64/ld-linux-loongarch-lp64d.so.1 /lib64
43 export LD_LIBRARY_PATH="/opt/clfs/lib64"
47 ./qemu-loongarch64 /opt/clfs/usr/bin/bash
48 ./qemu-loongarch64 /opt/clfs/usr/bin/ls
49 ./qemu-loongarch64 /opt/clfs/usr/bin/pwd
/qemu/nbd/
H A Dclient.c78 trace_nbd_send_option_request(opt, nbd_opt_lookup(opt), len); in nbd_send_option_request()
81 stl_be_p(&req.option, opt); in nbd_send_option_request()
136 if (reply->option != opt) { in nbd_receive_option_reply()
139 opt, nbd_opt_lookup(opt)); in nbd_receive_option_reply()
339 static int nbd_opt_info_or_go(QIOChannel *ioc, uint32_t opt, in nbd_opt_info_or_go() argument
354 assert(opt == NBD_OPT_GO || opt == NBD_OPT_INFO); in nbd_opt_info_or_go()
364 error = nbd_send_option_request(ioc, opt, in nbd_opt_info_or_go()
582 "reply %" PRIu32 " (%s)", opt, nbd_opt_lookup(opt), in nbd_request_simple_option()
590 " (it should be zero)", opt, nbd_opt_lookup(opt), in nbd_request_simple_option()
688 assert(opt == NBD_OPT_LIST_META_CONTEXT); in nbd_send_meta_query()
[all …]
/qemu/tests/docker/dockerfiles/
H A Ddebian-xtensa-cross.docker26 | tar -xzC /opt; \
29 …TH:/opt/$TOOLCHAIN_RELEASE/xtensa-dc232b-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-dc233c-elf/bin:/op…
/qemu/fsdev/
H A Dqemu-fsdev.c109 const char **opt; in validate_opt() local
111 for (opt = drv->opts; *opt; opt++) { in validate_opt()
112 if (!strcmp(*opt, name)) { in validate_opt()
/qemu/tests/bench/
H A Dbenchmark-crypto-akcipher.c26 QCryptoAkCipherOptions opt; in create_rsa_akcipher() local
28 opt.alg = QCRYPTO_AKCIPHER_ALG_RSA; in create_rsa_akcipher()
29 opt.u.rsa.padding_alg = padding; in create_rsa_akcipher()
30 opt.u.rsa.hash_alg = hash; in create_rsa_akcipher()
31 return qcrypto_akcipher_new(&opt, QCRYPTO_AKCIPHER_KEY_TYPE_PRIVATE, in create_rsa_akcipher()

1234