Home
last modified time | relevance | path

Searched +full:- +full:replace (Results 1 – 25 of 182) sorted by relevance

12345678

/qemu/scripts/
H A Dxml-preprocess.py3 # Copyright (c) 2017-2019 Tony Su
6 # SPDX-License-Identifier: MIT
8 # Adapted from https://github.com/peitaosu/XML-Preprocessor
85 def _pp_include(self, xml_str: str) -> str:
86 include_regex = r"(<\?include([\w\s\\/.:_-]+)\s*\?>)"
90 with open(inc_file_path, "r", encoding="utf-8") as inc_file:
92 xml_str = xml_str.replace(group_inc, inc_file_content)
95 def _pp_env_var(self, xml_str: str) -> str:
99 xml_str = xml_str.replace(group_env, os.environ[group_var])
102 def _pp_sys_var(self, xml_str: str) -> str:
[all …]
H A Dshaderinclude.py5 # SPDX-License-Identifier: GPL-2.0-or-later
14 varname = basename.replace('-', '_').replace('.', '_')
17 with open(file_path, "r", encoding='utf-8') as file:
/qemu/qga/vss-win32/
H A Dinstall.cpp10 * See the COPYING file in the top-level directory.
15 #include "vss-common.h"
16 #include "vss-debug.h"
52 int len = nul ? nul - text : -1; in errmsg()
97 return pObj->put_Value(_bstr_t(name), _variant_t(val)); in put_Value()
114 IID_IWbemLocator, (LPVOID *)pLoc.replace())); in GetAdminName()
115 chk(pLoc->ConnectServer(_bstr_t(L"ROOT\\CIMV2"), NULL, NULL, NULL, in GetAdminName()
116 0, 0, 0, pSvc.replace())); in GetAdminName()
120 chk(pSvc->ExecQuery(_bstr_t(L"WQL"), in GetAdminName()
122 "SID='S-1-5-32-544' and localAccount=TRUE"), in GetAdminName()
[all …]
H A Drequester.cpp10 * See the COPYING file in the top-level directory.
14 #include "vss-common.h"
15 #include "vss-debug.h"
30 (e)->error_setg_win32_wrapper((e)->errp, __FILE__, __LINE__, __func__, \
34 /* Bad idea, works only when (e)->errp != NULL: */
35 #define err_is_set(e) ((e)->errp && *(e)->errp)
64 NULL, -1, NULL, NULL, RPC_C_AUTHN_LEVEL_PKT_PRIVACY, in requester_init()
118 vss_ctx.pAsyncSnapshot->Release(); in requester_cleanup()
122 vss_ctx.pVssbc->Release(); in requester_cleanup()
153 hr = pAsync->Wait(); in WaitForAsync()
[all …]
H A Dvss-common.h10 * See the COPYING file in the top-level directory.
50 #include "vss-handles.h"
64 const TCHAR g_szClsid[] = TEXT("{6E6A3492-8D4D-440C-9619-5E5D0CC31CA8}");
75 /* COM pointer utility; call ->Release() when it goes out of scope */
85 p->Release();
90 /* Replace by assignment to the pointer of p */
91 T **replace(void) in replace() function
98 T *operator->(void) { return p; }
/qemu/docs/
H A Ddefs.rst.inc7 used inside a parsed-literal block: the definition must not include
12 .. |qemu_system| replace:: qemu-system-x86_64
13 .. |qemu_system_x86| replace:: qemu-system-x86_64
14 .. |I2C| replace:: I\ :sup:`2`\ C
15 .. |I2S| replace:: I\ :sup:`2`\ S
/qemu/target/hexagon/
H A Dgen_decodetree.py30 tag: "".join(reversed(iset.iset[tag]["enc"].replace(" ", "")))
96 ## @A2_add 11110011000.......-.....---..... Rd=%A2_add_Rd Rs=%A2_add_Rs Rt=%A2_add_Rt %PP
97 ## A2_add ..................-.....---..... @A2_add
101 f.write(f"## DO NOT MODIFY - This file is generated by {sys.argv[0]}\n\n")
114 # The subinstructions come with a 13-bit encoding, but
117 enc_str = "---" + enc_str
157 fields.append(f"{m.start()}:{sign_mark}{m.end() - m.start()}")
165 enc_str = enc_str.replace("d", "-")
167 enc_str = enc_str.replace("t", "-")
169 # Replace the operand letters with .
[all …]
/qemu/tests/qemu-iotests/
H A Dcommon.filter4 # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved.
24 sed -Ee 's/[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}/yyyy-mm-dd hh:mm:ss/'
29 sed -E -e 's/[0-9. ]{5} [KMGT]iB/ SIZE/' \
30 -e 's/[0-9. ]{5} B/ SIZE/'
35 sed -Ee 's/\#block[0-9]{3,}/NODE_NAME/'
40 gsed -e '/Attached to:/s/\device[[0-9]\+\]/device[N]/g'
43 # replace occurrences of the actual TEST_DIR value with TEST_DIR
46 sed -e "s#$TEST_DIR/#TEST_DIR/#g" \
47 -e "s#$SOCK_DIR/#SOCK_DIR/#g" \
48 -e "s#SOCK_DIR/fuse-#TEST_DIR/#g"
[all …]
/qemu/scripts/tracetool/format/
H A Dd.py1 # -*- coding: utf-8 -*-
4 trace/generated-tracers.dtrace (DTrace only).
8 __copyright__ = "Copyright 2012-2014, Lluís Vilanova <vilanova@ac.upc.edu>"
56 # files and introduces [-Wpointer-sign] warning.
62 type_ = type_.replace('unsigned long long', 'uint64_t')
63 type_ = type_.replace('signed long long', 'int64_t')
64 type_ = type_.replace('long long', 'int64_t')
H A D__init__.py1 # -*- coding: utf-8 -*-
8 --------------------
10 A new format named 'foo-bar' corresponds to Python module
13 A format module should provide a docstring, whose first non-empty line will be
20 ----------------
25 generate Called to generate a format-specific file.
31 __copyright__ = "Copyright 2012-2014, Lluís Vilanova <vilanova@ac.upc.edu>"
53 # just in case; should never fail unless non-module files are put there
63 name = modname.replace("_", "-")
72 name = name.replace("-", "_")
[all …]
/qemu/scripts/tracetool/backend/
H A D__init__.py1 # -*- coding: utf-8 -*-
8 ---------------------
10 A new backend named 'foo-bar' corresponds to Python module
13 A backend module should provide a docstring, whose first non-empty line will be
20 ------------------
30 -----------------
38 generate_<format>_begin(events) Generate backend- and format-specific file
40 generate_<format>_end(events) Generate backend- and format-specific file
42 generate_<format>(event) Generate backend- and format-specific contents
49 __copyright__ = "Copyright 2012-2014, Lluís Vilanova <vilanova@ac.upc.edu>"
[all …]
/qemu/tests/qtest/libqos/
H A Dvirtio-9p.c27 #include "standard-headers/linux/virtio_ids.h"
28 #include "virtio-9p.h"
49 char *template = concat_path(pwd, "qtest-9p-local-XXXXXX"); in virtio_9p_create_local_test_dir()
67 g_autofree char *cmd = g_strdup_printf("rm -fr '%s'\n", local_test_path); in virtio_9p_remove_local_test_dir()
84 qvirtqueue_cleanup(interface->vdev->bus, interface->vq, alloc); in virtio_9p_cleanup()
91 features = qvirtio_get_features(interface->vdev); in virtio_9p_setup()
93 qvirtio_set_features(interface->vdev, features); in virtio_9p_setup()
95 interface->vq = qvirtqueue_setup(interface->vdev, alloc, 0); in virtio_9p_setup()
96 qvirtio_set_driver_ok(interface->vdev); in virtio_9p_setup()
99 /* virtio-9p-device */
[all …]
/qemu/scripts/oss-fuzz/
H A Doutput_reproducer.py2 # -*- coding: utf-8 -*-
7 Use this to help build bug-reports or create in-tree reproducers for bugs.
9 clang-format -style="{BasedOnStyle: llvm, IndentWidth: 4, ColumnLimit: 90}"
34 * See the COPYING file in the top-level directory.
44 """ Return a multi-line C comment. Assume the text is already wrapped """
66 args = args.replace("-accel qtest","")
67 args = args.replace(",accel=qtest","")
68 args = args.replace("-machine accel=qtest","")
69 args = args.replace("-qtest stdio","")
114 group.add_argument("-bash", help="Only output a copy-pastable bash command",
[all …]
/qemu/scripts/coccinelle/
H A Dmemory-region-housekeeping.cocci5 --macro-file scripts/cocci-macro-file.h \
6 --sp-file scripts/coccinelle/memory-region-housekeeping.cocci \
7 --keep-comments \
8 --in-place \
9 --dir .
14 // Replace memory_region_init_ram(readonly) by memory_region_init_rom()
20 - memory_region_init_ram(E1, E2, E3, E4, E5);
23 - memory_region_set_readonly(E1, true);
25 - memory_region_init_ram_nomigrate(E1, E2, E3, E4, E5);
28 - memory_region_set_readonly(E1, true);
[all …]
H A Dremove_muldiv64.cocci1 // replace muldiv64(a, 1, b) by "a / b"
5 -muldiv64(a, 1, b)
H A Dreturn_directly.cocci1 // replace 'R = X; return R;' with 'return X;'
11 - T VAR;
14 - VAR = (E);
15 - return VAR;
/qemu/tests/tcg/s390x/
H A Dprecise-smc-softmmu.S2 * Test s390x-softmmu precise self-modifying code handling.
4 * SPDX-License-Identifier: GPL-2.0-or-later
11 .quad 0x180000000,pgm /* 64-bit mode */
18 /* Test 1: replace sgr with agr. */
29 /* Test 2: replace agr with division by zero. */
/qemu/scripts/performance/
H A Ddissect.py7 # dissect.py [-h] -- <qemu executable> [<qemu executable options>] \
10 # [-h] - Print the script arguments help message.
13 # dissect.py -- qemu-arm coulomb_double-arm
43 the callgrind_annotate output when ran using --tree=caller
52 line = -1
55 callgrind_data[i].split()[-1] == "[???]":
58 if line == -1:
66 usage='dissect.py [-h] -- '
92 "--tool=callgrind",
93 "--callgrind-out-file=" + data_path]
[all …]
H A DtopN_callgrind.py5 # topN_callgrind.py [-h] [-n] <number of displayed top functions> -- \
9 # [-h] - Print the script arguments help message.
10 # [-n] - Specify the number of top functions to print.
11 # - If this flag is not specified, the tool defaults to 25.
14 # topN_callgrind.py -n 20 -- qemu-arm coulomb_double-arm
42 usage='topN_callgrind.py [-h] [-n] <number of displayed top functions> -- '
46 parser.add_argument('-n', dest='top', type=int, default=25,
65 ["valgrind", "--tool=callgrind", "--callgrind-out-file=/tmp/callgrind.data"]
70 sys.exit(callgrind.stderr.decode("utf-8"))
82 sys.exit(callgrind_annotate.stderr.decode("utf-8"))
[all …]
/qemu/include/hw/nvram/
H A Dfw_cfg.h5 #include "standard-headers/linux/qemu_fw_cfg.h"
13 #define TYPE_FW_CFG_DATA_GENERATOR_INTERFACE "fw_cfg-data-generator"
31 * @errp: pointer to a NULL-initialized error object
117 * @value: NUL-terminated ascii string
129 * @value: NUL-terminated ascii string
131 * Replace the fw_cfg item available by selecting the given key. The new
143 * @value: 16-bit integer
146 * data will consist of a dynamically allocated copy of the given 16-bit
147 * value, converted to little-endian representation.
155 * @value: 16-bit integer
[all …]
/qemu/scripts/modules/
H A Dmodule_block.py5 # Copyright Red Hat, Inc. 2015 - 2016
11 # See the COPYING file in the top-level directory.
19 # data[0] -> struct element name
20 # data[1] -> =
21 # data[2] -> value
23 return data[2].replace('"', '')[:-1]
43 line = line.replace('\n', '')
44 if line.find(".format_name") != -1:
46 elif line.find(".protocol_name") != -1:
51 elif line.find("static BlockDriver") != -1:
/qemu/tests/image-fuzzer/
H A Drunner.py40 "'--config' and '--command' options are not supported.", file=sys.stderr)
83 errors='replace')
96 return -term_signal
117 The test log will include application (e.g. 'qemu-img') logs besides info
125 Path to qemu-img and qemu-io will be retrieved from 'QEMU_IMG' and
136 self.current_dir = os.path.join(work_dir, 'test-' + test_id)
138 os.environ.get('QEMU_IMG', 'qemu-img').strip().split(' ')
139 self.qemu_io = os.environ.get('QEMU_IO', 'qemu-io').strip().split(' ')
140 self.commands = [['qemu-img', 'check', '-f', 'qcow2', '$test_img'],
141 ['qemu-img', 'info', '-f', 'qcow2', '$test_img'],
[all …]
/qemu/scripts/codeconverter/
H A Dconverter.py10 # the COPYING file in the top-level directory.
29 def process_all_files(parser: argparse.ArgumentParser, args: argparse.Namespace) -> None:
49 values = [v.replace('\n', ' ').replace('"', '') for v in values]
55 parser.error("--pattern is required")
89 def main() -> None:
92 p.add_argument('--passes', type=int, default=1,
94 p.add_argument('--pattern', required=True, action='append',
97 p.add_argument('--inplace', '-i', action='store_true',
99 p.add_argument('--dry-run', action='store_true',
101 p.add_argument('--force', '-f', action='store_true',
[all …]
/qemu/scripts/codeconverter/codeconverter/
H A Dpatching.py7 # the COPYING file in the top-level directory.
48 def __init__(self, f: 'FileInfo', m: Match) -> None:
53 def name(self) -> str:
62 def start(self) -> int:
65 def end(self) -> int:
68 def line_col(self) -> LineAndColumn:
71 def group(self, group: Union[int, str]) -> str:
74 def getgroup(self, group: str) -> Optional[str]:
79 def log(self, level, fmt, *args) -> None:
83 def debug(self, fmt, *args) -> None:
[all …]
/qemu/
H A D.git-blame-ignore-revs2 # List of code-formatting clean ups the git blame can ignore
4 # git blame --ignore-revs-file .git-blame-ignore-revs
8 # git config blame.ignoreRevsFile .git-blame-ignore-revs
11 # gdbstub: clean-up indents
20 # replace TABs with spaces

12345678