/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: 116 def start(self, params: List[str], build_dir: str) -> subprocess.Popen: 145 def start(self, params: List[str], build_dir: str) -> subprocess.Popen: 231 build_dir: str, 234 arch: Optional[str]=None, 280 def build_config(self, build_dir: str, make_options: Optional[List[str]]) -> bool: 308 def build_reconfig(self, build_dir: str, make_options: Optional[List[str]]) -> bool: [all …]
|
H A D | kunit_printer.py | 18 def __init__(self, output: typing.IO[str]): 22 def print(self, message: str) -> None: 25 def print_with_timestamp(self, message: str) -> None: 29 def _color(self, code: str, text: str) -> str: 34 def red(self, text: str) -> str: 37 def yellow(self, text: str) -> str: 40 def green(self, text: str) -> str:
|
/openbmc/qemu/scripts/qapi/ |
H A D | common.py | 61 def c_enum_const(type_name: str, 62 const_name: str, 188 def guardend(name: str) -> str: 196 def gen_ifcond(ifcond: Optional[Union[str, Dict[str, Any]]], 197 cond_fmt: str, not_fmt: str, 198 all_operator: str, any_operator: str) -> str: 200 def do_gen(ifcond: Union[str, Dict[str, Any]], 223 def cgen_ifcond(ifcond: Optional[Union[str, Dict[str, Any]]]) -> str: 227 def docgen_ifcond(ifcond: Optional[Union[str, Dict[str, Any]]]) -> str: 232 def gen_if(cond: str) -> str: [all …]
|
H A D | gen.py | 95 def _wrap_ifcond(ifcond: QAPISchemaIfCond, before: str, after: str) -> str: 158 def __init__(self, fname: str, blurb: str, pydoc: str): 236 prefix: str, 237 what: str, 238 blurb: str, 239 pydoc: str): 255 what: str, 258 pydoc: str, 295 def _module_basename(self, what: str, name: str) -> str: 307 def _module_filename(self, what: str, name: str) -> 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 | parser.py | 49 data: Mapping[str, object], 92 fname: str, 194 def _include(include: str, 196 incl_fname: str, 197 previously_included: Set[str] 482 def append(self, line: str) -> None: 503 name: str): 515 def append(self, line: str) -> None: 542 def append(self, line: str) -> None: 691 name: str) -> None: [all …]
|
H A D | types.py | 42 def gen_enum_lookup(name: str, 86 def gen_enum(name: str, 253 def gen_type_cleanup_decl(name: str) -> str: 263 def gen_type_cleanup(name: str) -> str: 285 def __init__(self, prefix: str): 324 name: str, 335 name: str, 345 name: str, 368 name: str, 382 output_dir: str, [all …]
|
H A D | visit.py | 55 def gen_visit_members_decl(name: str) -> str: 63 def gen_visit_object_members(name: str, 210 def gen_visit_enum(name: str) -> str: 301 def gen_visit_object(name: str) -> str: 336 def __init__(self, prefix: str): 371 name: str, 382 name: str, 391 name: str, 413 name: str, 424 output_dir: 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:
|
H A D | introspect.py | 90 comment: Optional[str] = None): 167 def to_c_string(string: str) -> str: 173 def __init__(self, prefix: str, unmask: bool): 218 def _name(self, name: str) -> str: 251 def _gen_tree(self, name: str, mtype: str, obj: Dict[str, object], 308 json_type: str) -> None: 311 def visit_enum_type(self, name: str, info: Optional[QAPISourceInfo], 315 prefix: Optional[str]) -> None: 355 def visit_command(self, name: str, info: Optional[QAPISourceInfo], 374 def visit_event(self, name: str, info: Optional[QAPISourceInfo], [all …]
|
/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], 82 def c_len(s: str) -> int: 208 def fixdesc(s: str) -> str: 250 def real_event(name: str, event: str) -> Optional[str]: 404 def read_json_events(path: str, topic: str) -> Sequence[JsonEvent]: 451 def fix_none(s: Optional[str]) -> str: 558 def get_topic(topic: str) -> str: 601 def is_leaf_dir(path: str) -> bool: 1158 def dir_path(path: str) -> str: [all …]
|
/openbmc/qemu/python/scripts/ |
H A D | mkvenv.py | 334 env_dir: Union[str, Path], 452 packages: Sequence[str], 501 def _path_is_prefix(prefix: Optional[str], path: str) -> bool: 519 dep_spec: str, 522 prog: Optional[str], 604 args: Sequence[str], 636 def _make_version_constraint(info: Dict[str, str], install: bool) -> str: argument 661 group: Dict[str, Dict[str, str]], argument 730 dep_specs: Sequence[str], 797 file: 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/tests/qemu-iotests/ |
H A D | testrunner.py | 43 def file_diff(file1: str, file2: str) -> List[str]: 74 def get(self, test: str, 101 def __init__(self, status: str, description: str = '', 122 def run_tests_pool(self, tests: List[str], 139 color: str = 'auto') -> None: 159 def test_print_one_line(self, test: str, 161 starttime: str, 162 endtime: Optional[str] = None, status: str = '...', 165 description: str = '', 215 def find_reference(self, test: str) -> str: [all …]
|
H A D | testenv.py | 32 def isxfile(path: str) -> bool: 36 def get_default_machine(qemu_prog: str) -> str: 79 def prepare_subprocess(self, args: List[str]) -> Dict[str, str]: 143 def root(*names: str) -> str: 173 def __init__(self, source_dir: str, build_dir: str, 174 imgfmt: str, imgproto: str, aiomode: str, 175 cachemode: Optional[str] = None, 176 imgopts: Optional[str] = None, 289 def print_env(self, prefix: str = '') -> None:
|
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]:
|
H A D | iotests.py | 154 def qemu_tool_pipe_and_status(tool: str, args: Sequence[str], 330 def img_info_log(filename: str, filter_path: Optional[str] = None, 428 def __init__(self, *args: str, instance_id: str = 'a', qmp: bool = False): 460 def qmp(self, cmd: str, args: Optional[Dict[str, object]] = None) \ 469 def cmd(self, cmd: str, args: Optional[Dict[str, object]] = None) \ member in QemuStorageDaemon 545 def compare_images(img1: str, img2: str, 546 fmt1: str = imgfmt, fmt2: str = imgfmt) -> bool: 571 def image_size(img: str) -> int: 661 def filter_img_info(output: str, filename: str, 920 def pause_drive(self, drive: str, event: Optional[str] = None) -> None: [all …]
|
/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: 149 def _pp_if_eval(self, xml_str: str) -> str: 218 def _pp_command(self, xml_str: str) -> str: 229 def _pp_blanks(self, xml_str: str) -> str: 236 def preprocess(self, xml_str: str) -> str: 264 def preprocess_xml(path: 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: 107 def gen_ctx(self, prefix: str = '') -> str: 119 def gen_list(self, format: str) -> str: 122 def gen_block(self, format: str) -> str: 135 def func_decl_iter(text: str) -> Iterator: 144 def snake_to_camel(func_name: str) -> str: 307 def gen_wrappers(input_code: str) -> str:
|
/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: 135 def get_index_text(self, ifacename: str, name: str) -> str: 186 def get_index_text(self, ifacename: str, name: str) -> str: 208 def get_index_text(self, ifacename: str, name: str) -> str: 362 self, name: str, objtype: str, node_id: str, location: Any = None 371 def find_obj(self, typ: str, name: str) -> Optional[Tuple[str, ObjectEntry]]: 385 fromdocname: str, 387 typ: str, [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: 218 def _cmd_fstrim(client: QemuGuestAgentClient, args: Sequence[str]) -> None: 231 def _cmd_info(client: QemuGuestAgentClient, args: Sequence[str]) -> None: 236 def _cmd_ping(client: QemuGuestAgentClient, args: Sequence[str]) -> None: 265 def _cmd_halt(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 183 const char *str; in test_parse_uint_overflow() local 215 const char *str; in test_parse_uint_negative() local 485 const char *str; in test_qemu_strtoi_overflow() local 549 const char *str; in test_qemu_strtoi_underflow() local 605 const char *str; in test_qemu_strtoi_negative() local 945 const char *str; in test_qemu_strtoui_overflow() local 1009 const char *str; in test_qemu_strtoui_underflow() local 1367 const char *str; in test_qemu_strtol_overflow() local 3561 char *str; in test_freq_to_str() 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, 132 log_dir: Optional[str] = None, 212 opaque: str, opts: str = '') -> _T: 252 def _remove_if_exists(path: str) -> None: 688 def qmp(self, cmd: str, 710 def cmd(self, cmd: str, member in QEMUMachine [all …]
|
/openbmc/qemu/python/qemu/qmp/ |
H A D | models.py | 29 def __init__(self, raw: Mapping[str, Any]): 32 def _check_key(self, key: str) -> None: 36 def _check_value(self, key: str, type_: type, typestr: str) -> None: 43 def _check_member(self, key: str, type_: type, typestr: str) -> None: 63 def __init__(self, raw: Mapping[str, Any]): 91 def __init__(self, raw: Mapping[str, Any]): 113 def __init__(self, raw: Mapping[str, Any]): 135 def __init__(self, raw: Mapping[str, Any]):
|