/openbmc/linux/tools/testing/kunit/ |
H A D | kunit_kernel.py | 45 def __init__(self, linux_arch: str, cross_compile: Optional[str]): 60 def make_olddefconfig(self, build_dir: str, make_options: Optional[List[str]]) -> None: 74 def make(self, jobs: int, build_dir: str, make_options: Optional[List[str]]) -> None: 95 def start(self, params: List[str], build_dir: str) -> subprocess.Popen: 101 def __init__(self, qemu_arch_params: qemu_config.QemuArchParams, cross_compile: Optional[str]): 116 def start(self, params: List[str], build_dir: str) -> subprocess.Popen: 137 def __init__(self, cross_compile: Optional[str]=None): 145 def start(self, params: List[str], build_dir: str) -> subprocess.Popen: 155 def get_kconfig_path(build_dir: str) -> str: 158 def get_kunitconfig_path(build_dir: str) -> str: [all …]
|
/openbmc/qemu/scripts/qapi/ |
H A D | common.py | 30 def camel_to_upper(value: str) -> str: 67 def c_enum_const(type_name: str, 68 const_name: str, 69 prefix: Optional[str] = None) -> str: 82 def c_name(name: str, protect: bool = True) -> str: 162 def cgen(code: str, **kwds: object) -> str: 175 def mcgen(code: str, **kwds: object) -> str: 181 def c_fname(filename: str) -> str: 185 def guardstart(name: str) -> str: 194 def guardend(name: str) -> str: [all …]
|
H A D | gen.py | 50 def __init__(self, fname: str): 55 def preamble_add(self, text: str) -> None: 58 def add(self, text: str) -> None: 72 def write(self, output_dir: str) -> None: 95 def _wrap_ifcond(ifcond: QAPISchemaIfCond, before: str, after: str) -> str: 113 extra: Optional[str] = None) -> str: 136 def __init__(self, fname: str): 158 def __init__(self, fname: str, blurb: str, pydoc: str): 236 prefix: str, 237 what: str, [all …]
|
H A D | expr.py | 58 source: str) -> None: 68 def check_name_str(name: str, info: QAPISourceInfo, source: str) -> str: 94 def check_name_upper(name: str, info: QAPISourceInfo, source: str) -> None: 114 def check_name_lower(name: str, info: QAPISourceInfo, source: str, 139 def check_name_camel(name: str, info: QAPISourceInfo, source: str) -> None: 157 def check_defn_name_str(name: str, info: QAPISourceInfo, meta: str) -> None: 186 def check_keys(value: Dict[str, object], 188 source: str, 189 required: List[str], 190 optional: List[str]) -> None: [all …]
|
H A D | types.py | 44 def gen_enum_lookup(name: str, 46 prefix: Optional[str] = None) -> str: 88 def gen_enum(name: str, 90 prefix: Optional[str] = None) -> str: 124 def gen_fwd_object_or_array(name: str) -> str: 132 def gen_array(name: str, element_type: QAPISchemaType) -> str: 160 def gen_object(name: str, ifcond: QAPISchemaIfCond, 218 def gen_upcast(name: str, base: QAPISchemaObjectType) -> str: 255 def gen_type_cleanup_decl(name: str) -> str: 265 def gen_type_cleanup(name: str) -> str: [all …]
|
H A D | visit.py | 44 def gen_visit_decl(name: str, scalar: bool = False) -> str: 56 def gen_visit_members_decl(name: str) -> str: 64 def gen_visit_object_members(name: str, 177 def gen_visit_list(name: str, element_type: QAPISchemaType) -> str: 211 def gen_visit_enum(name: str) -> str: 226 def gen_visit_alternate(name: str, 304 def gen_visit_object(name: str) -> str: 339 def __init__(self, prefix: str): 356 def _begin_user_module(self, name: str) -> None: 373 name: str, [all …]
|
H A D | parser.py | 50 data: Mapping[str, object], 60 def __init__(self, parser: 'QAPISchemaParser', msg: str): 93 fname: str, 94 previously_included: Optional[Set[str]] = None, 181 def _add_expr(self, expr: Mapping[str, object], 195 def _include(include: str, 197 incl_fname: str, 198 previously_included: Set[str] 221 def _pragma(name: str, value: object, info: QAPISourceInfo) -> None: 223 def check_list_str(name: str, value: object) -> List[str]: [all …]
|
H A D | schema.py | 52 ifcond: Optional[Union[str, Dict[str, object]]] = None, 120 name: str, 174 def visit_module(self, name: str) -> None: 182 def visit_include(self, name: str, info: Optional[QAPISourceInfo]) -> None: 186 self, name: str, info: Optional[QAPISourceInfo], json_type: str 192 name: str, 197 prefix: Optional[str], 203 name: str, 212 name: str, 224 name: str, [all …]
|
H A D | events.py | 30 def build_event_send_proto(name: str, 38 def gen_event_send_decl(name: str, 81 def gen_event_send(name: str, 85 event_enum_name: str, 86 event_emit: str) -> str: 178 def __init__(self, prefix: str): 186 def _begin_user_module(self, name: str) -> None: 230 name: str, 247 output_dir: str, 248 prefix: str) -> None:
|
/openbmc/linux/tools/perf/pmu-events/ |
H A D | jevents.py | 63 def removesuffix(s: str, suffix: str) -> str: 72 def file_name_to_table_name(prefix: str, parents: Sequence[str], 73 dirname: str) -> str: 82 def c_len(s: str) -> int: 126 def add(self, s: str, metric: bool) -> None: 174 def string_cmp_key(s: str) -> Tuple[bool, int, str]: 208 def fixdesc(s: str) -> str: 216 def convert_aggr_mode(aggr_mode: str) -> Optional[str]: 226 def convert_metric_constraint(metric_constraint: str) -> Optional[str]: 238 def lookup_msr(num: str) -> Optional[str]: [all …]
|
/openbmc/telemetry/src/utils/ |
H A D | tstring.hpp | 13 static std::string str() in str() function 21 static std::string str() in str() function 29 static std::string str() in str() function 37 static std::string str() in str() function 45 static std::string str() in str() function 53 static std::string str() in str() function 61 static std::string str() in str() function 69 static std::string str() in str() function 77 static std::string str() in str() function 85 static std::string str() in str() function [all …]
|
/openbmc/qemu/python/scripts/ |
H A D | mkvenv.py | 263 def get_value(self, field: str) -> str: 321 env_dir: Union[str, Path], 396 def _stringify(data: Union[str, bytes]) -> str: 419 def _get_entry_points(packages: Sequence[str]) -> Iterator[str]: 442 packages: Sequence[str], 443 python_path: Optional[str] = None, 444 bin_path: Optional[str] = None, 474 def pkgname_from_depspec(dep_spec: str) -> str: 491 def _path_is_prefix(prefix: Optional[str], path: str) -> bool: 509 dep_spec: str, [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | testrunner.py | 46 def file_diff(file1: str, file2: str) -> List[str]: 66 def __init__(self, cache_file: str, env: TestEnv) -> None: 77 def get(self, test: str, 88 def update(self, test: str, elapsed: float) -> None: 104 def __init__(self, status: str, description: str = '', 105 elapsed: Optional[float] = None, diff: Sequence[str] = (), 106 casenotrun: str = '', interrupted: bool = False) -> None: 119 def proc_run_test(test: str, test_field_width: int) -> TestResult: 125 def run_tests_pool(self, tests: List[str], 142 color: str = 'auto') -> None: [all …]
|
H A D | testenv.py | 37 def isxfile(path: str) -> bool: 41 def get_default_machine(qemu_prog: str) -> str: 84 def prepare_subprocess(self, args: List[str]) -> Dict[str, str]: 148 def root(*names: str) -> str: 178 def __init__(self, source_dir: str, build_dir: str, 179 imgfmt: str, imgproto: str, aiomode: str, 180 cachemode: Optional[str] = None, 181 imgopts: Optional[str] = None, 297 def print_env(self, prefix: str = '') -> None:
|
H A D | iotests.py | 122 logger_name: str, level: int = logging.CRITICAL) -> Iterator[None]: 144 def qemu_tool_popen(args: Sequence[str], 154 def qemu_tool_pipe_and_status(tool: str, args: Sequence[str], 171 def qemu_img_create_prepare_args(args: List[str]) -> List[str]: 210 def qemu_tool(*args: str, check: bool = True, combine_stdio: bool = True 250 def qemu_img(*args: str, check: bool = True, combine_stdio: bool = True 277 def qemu_img_create(*args: str) -> 'subprocess.CompletedProcess[str]': 280 def qemu_img_json(*args: str) -> Any: 312 def qemu_img_measure(*args: str) -> Any: 315 def qemu_img_check(*args: str) -> Any: [all …]
|
H A D | findtests.py | 28 def chdir(path: Optional[str] = None) -> Iterator[None]: 42 def __init__(self, test_dir: Optional[str] = None) -> None: 59 def add_group_file(self, fname: str) -> None: 74 def parse_test_name(self, name: str) -> str: 92 def find_tests(self, groups: Optional[List[str]] = None, 93 exclude_groups: Optional[List[str]] = None, 94 tests: Optional[List[str]] = None, 95 start_from: Optional[str] = None) -> List[str]:
|
/openbmc/qemu/scripts/ |
H A D | xml-preprocess.py | 85 def _pp_include(self, xml_str: str) -> str: 95 def _pp_env_var(self, xml_str: str) -> str: 102 def _pp_sys_var(self, xml_str: str) -> str: 109 def _pp_cus_var(self, xml_str: str) -> str: 126 def _pp_foreach(self, xml_str: str) -> str: 137 def _pp_error_warning(self, xml_str: str) -> str: 149 def _pp_if_eval(self, xml_str: str) -> str: 162 def _pp_ifdef_ifndef(self, xml_str: str) -> str: 173 def _pp_if_elseif(self, xml_str: str) -> str: 218 def _pp_command(self, xml_str: str) -> str: [all …]
|
H A D | block-coroutine-wrapper.py | 56 def __init__(self, param_decl: str) -> None: 66 def __init__(self, wrapper_type: str, return_type: str, name: str, 67 args: str, variant: str) -> None: 105 def gen_ctx(self, prefix: str = '') -> str: 117 def gen_list(self, format: str) -> str: 120 def gen_block(self, format: str) -> str: 133 def func_decl_iter(text: str) -> Iterator: 142 def snake_to_camel(func_name: str) -> str: 302 def gen_wrappers(input_code: str) -> str:
|
H A D | compare-machine-types.py | 61 def __init__(self, vm: QEMUMachine, name: str, abstract: bool) -> None: 68 def get_prop(self, driver: str, prop: str) -> str: 89 def __init__(self, vm: QEMUMachine, name: str) -> None: 110 def get_prop(self, driver: str, prop_name: str) -> str: 126 def get_prop(self, driver: str, prop_name: str) -> str: 146 def get_prop(self, driver: str, prop_name: str) -> str: 157 def new_driver(vm: QEMUMachine, name: str, is_abstr: bool) -> Driver: 193 def get_prop(self, driver: str, prop: str) -> str: 204 def get_implementations(self, driver: str) -> List[str]: 214 def __init__(self, raw_mt_dict: Dict[str, Any], [all …]
|
/openbmc/bmcweb/scripts/ |
H A D | parse_registries.py | 59 dmtf_name: str, header_name: str, type_name: str 166 privilege_list: t.List[t.Dict[str, t.Any]], 190 privilege_list: t.List[t.Dict[str, t.Any]], 216 def get_response_code(entry_id: str) -> str | None: 261 entry_id: str, 262 entry: t.Dict[str, t.Any], 264 registry_name: str, 265 namespace_name: str, 416 registry_name: str, 417 namespace_name: str, [all …]
|
/openbmc/qemu/docs/sphinx/ |
H A D | dbusdomain.py | 45 def get_index_text(self, modname: str, name: str) -> str: 50 self, name: str, sig: str, signode: desc_signature 76 def get_index_text(self, ifacename: str, name: str) -> str: 85 def handle_signature(self, sig: str, signode: desc_signature) -> str: 135 def get_index_text(self, ifacename: str, name: str) -> str: 138 def handle_signature(self, sig: str, signode: desc_signature) -> str: 186 def get_index_text(self, ifacename: str, name: str) -> str: 208 def get_index_text(self, ifacename: str, name: str) -> str: 236 def handle_signature(self, sig: str, signode: desc_signature) -> str: 283 self, docnames: Iterable[str] = None [all …]
|
/openbmc/qemu/python/qemu/utils/ |
H A D | qemu_ga_client.py | 65 def __getattr__(self, name: str) -> Callable[..., Any]: 96 def read(self, path: str) -> bytes: 156 def fsfreeze(self, cmd: str) -> object: 168 def suspend(self, mode: str) -> None: 179 def shutdown(self, mode: str = 'powerdown') -> None: 189 def _cmd_cat(client: QemuGuestAgentClient, args: Sequence[str]) -> None: 197 def _cmd_fsfreeze(client: QemuGuestAgentClient, args: Sequence[str]) -> None: 218 def _cmd_fstrim(client: QemuGuestAgentClient, args: Sequence[str]) -> None: 226 def _cmd_ifconfig(client: QemuGuestAgentClient, args: Sequence[str]) -> None: 231 def _cmd_info(client: QemuGuestAgentClient, args: Sequence[str]) -> None: [all …]
|
H A D | __init__.py | 39 def get_info_usernet_hostfwd_port(info_usernet_output: str) -> Optional[int]: 56 content: str = '', 58 name: Optional[str] = None, 60 upper_left: str = '┏', 61 lower_left: str = '┗', 62 horizontal: str = '━', 63 vertical: str = '┃', 104 def _bar(name: Optional[str], top: bool = True) -> str: 113 def _wrap(line: str) -> str:
|
/openbmc/qemu/tests/unit/ |
H A D | test-cutils.c | 51 const char *str = ""; in test_parse_uint_empty() local 65 const char *str = " \t "; in test_parse_uint_whitespace() local 80 const char *str = " \t xxx"; in test_parse_uint_invalid() local 95 const char *str = "123xxx"; in test_parse_uint_trailing() local 109 const char *str = "123"; in test_parse_uint_correct() local 123 const char *str = "0123"; in test_parse_uint_octal() local 137 const char *str = "0123"; in test_parse_uint_decimal() local 151 char *str = g_strdup_printf("%llu", (unsigned long long)LLONG_MAX + 1); in test_parse_uint_llong_max() local 167 char *str = g_strdup_printf("%llu", ULLONG_MAX); in test_parse_uint_max() local 183 const char *str; in test_parse_uint_overflow() local [all …]
|
/openbmc/qemu/python/qemu/machine/ |
H A D | machine.py | 77 command: str, output: Optional[str]): 124 binary: str, 125 args: Sequence[str] = (), 126 wrapper: Sequence[str] = (), 127 name: Optional[str] = None, 128 base_temp_dir: str = "/var/tmp", 131 console_log: Optional[str] = None, 132 log_dir: Optional[str] = None, 212 opaque: str, opts: str = '') -> _T: 232 file_path: Optional[str] = None) -> int: [all …]
|