/tools/net/ynl/pyynl/ |
A D | ynl_gen_rst.py | 39 def bold(text: str) -> str: 49 def sanitize(text: str) -> str: 55 def rst_fields(key: str, value: str, level: int = 0) -> str: 85 def rst_section(namespace: str, prefix: str, title: str) -> str: 95 def rst_title(title: str) -> str: 105 def rst_ref(namespace: str, prefix: str, name: str) -> str: 176 def parse_operations(operations: List[Dict[str, Any]], namespace: str) -> str: 235 def parse_definitions(defs: Dict[str, Any], namespace: str) -> str: 260 def parse_attr_sets(entries: List[Dict[str, Any]], namespace: str) -> str: 291 def parse_sub_messages(entries: List[Dict[str, Any]], namespace: str) -> str: [all …]
|
/tools/testing/kunit/ |
A D | kunit_kernel.py | 46 def __init__(self, linux_arch: str, cross_compile: Optional[str]): 61 def make_olddefconfig(self, build_dir: str, make_options: Optional[List[str]]) -> None: 75 def make(self, jobs: int, build_dir: str, make_options: Optional[List[str]]) -> None: 97 def start(self, params: List[str], build_dir: str) -> subprocess.Popen: 120 def start(self, params: List[str], build_dir: str) -> subprocess.Popen: 152 def start(self, params: List[str], build_dir: str) -> subprocess.Popen: 246 build_dir: str, 249 arch: Optional[str]=None, 295 def build_config(self, build_dir: str, make_options: Optional[List[str]]) -> bool: 323 def build_reconfig(self, build_dir: str, make_options: Optional[List[str]]) -> bool: [all …]
|
A D | kunit_printer.py | 18 def __init__(self, print: bool=True, output: typing.IO[str]=sys.stdout): 26 def print(self, message: str) -> None: 30 def print_with_timestamp(self, message: str) -> None: 34 def _color(self, code: str, text: str) -> str: 39 def red(self, text: str) -> str: 42 def yellow(self, text: str) -> str: 45 def green(self, text: str) -> str:
|
A D | kunit_config.py | 49 def add_entry(self, name: str, value: str) -> None: 76 def write_to_file(self, path: str) -> None: 81 def parse_file(path: str) -> Kconfig: 85 def parse_from_string(blob: str) -> Kconfig:
|
A D | kunit_parser.py | 57 def add_error(self, printer: Printer, error_message: str) -> None: 157 def __init__(self, lines: Iterator[Tuple[int, str]]): argument 217 def extract_tap_lines(kernel_output: Iterable[str]) -> LineStream: 219 def isolate_ktap_output(kernel_output: Iterable[str]) \ 254 version_type: str, test: Test, printer: Printer) -> None: 467 def format_test_divider(message: str, len_message: int) -> str: 516 def print_log(log: Iterable[str], printer: Printer) -> None: 607 def failed_names(test: Test, parent_name: str) -> List[str]: 690 def parse_test(lines: LineStream, expected_num: int, log: List[str], is_subtest: bool, printer: Pri… 838 def parse_run_tests(kernel_output: Iterable[str], printer: Printer) -> Test:
|
/tools/perf/pmu-events/ |
A D | jevents.py | 66 def removesuffix(s: str, suffix: str) -> str: 75 def file_name_to_table_name(prefix: str, parents: Sequence[str], 85 def c_len(s: str) -> int: 211 def fixdesc(s: str) -> str: 254 def real_event(name: str, event: str) -> Optional[str]: 304 def is_zero(val: str) -> bool: 444 def fix_comment(s: str) -> str: 452 def read_json_events(path: str, topic: str) -> Sequence[JsonEvent]: 614 def get_topic(topic: str) -> str: 1332 def dir_path(path: str) -> str: [all …]
|
A D | models.py | 11 def dir_path(path: str) -> str: 17 def find_archs(start_dir: str, arch: str) -> List[str]: 30 def find_mapfiles(start_dir: str, archs: List[str]) -> List[str]: 40 def find_cpuids(mapfiles: List[str], cpuids: str) -> List[str]:
|
A D | metric.py | 123 other_str: str, 259 fn: str, 306 def _FixEscapes(s: str) -> str: 314 def __init__(self, name: str, legacy_name: str = ''): 338 def __init__(self, value: Union[float, str]): argument 365 def __init__(self, value: str): 429 name: str, 430 description: str, 432 scale_unit: str, 531 def ParsePerfJson(orig: str) -> Expression: [all …]
|
/tools/testing/selftests/drivers/net/ |
A D | netpoll_basic.py | 67 def ethtool_get_ringsize(interface_name: str) -> tuple[int, int]: 83 def ethtool_set_ringsize(interface_name: str, ring_size: tuple[int, int]) -> bool: 99 def ethtool_get_queues_cnt(interface_name: str) -> tuple[int, int, int]: 116 def ethtool_set_queues_cnt(interface_name: str, queues: tuple[int, int, int]) -> None: 146 config_data: dict[str, str], argument 147 target_name: str, 193 cfg: NetDrvEpEnv, interface_name: str, target_name: str 213 def netcons_delete_target(name: str) -> None: 282 def do_netpoll_flush_monitored(cfg: NetDrvEpEnv, ifname: str, target_name: str) -> None: 298 def do_netpoll_flush(cfg: NetDrvEpEnv, ifname: str, target_name: str) -> None: [all …]
|
/tools/net/sunrpc/xdrgen/generators/ |
A D | __init__.py | 13 def create_jinja2_environment(language: str, xdr_type: str) -> Environment: 31 environment: Environment, template_type: str, template_name: str 49 def header_guard_infix(filename: str) -> str: 75 def __init__(self, language: str, peer: str): 79 def emit_declaration(self, filename: str, root: Specification) -> None: 83 def emit_definition(self, filename: str, root: Specification) -> None: 87 def emit_source(self, filename: str, root: Specification) -> None: 95 def __init__(self, language: str, peer: str):
|
A D | program.py | 13 environment: Environment, program: str, version: _RpcVersion 34 environment: Environment, program: str, version: _RpcVersion 59 environment: Environment, program: str, version: _RpcVersion 73 environment: Environment, program: str, version: _RpcVersion 87 environment: Environment, program: str, version: _RpcVersion 101 environment: Environment, program: str, version: _RpcVersion 117 def __init__(self, language: str, peer: str):
|
A D | header_bottom.py | 17 def __init__(self, language: str, peer: str): 22 def emit_declaration(self, filename: str, root: Specification) -> None: 27 def emit_definition(self, filename: str, root: Specification) -> None: 32 def emit_source(self, filename: str, root: Specification) -> None:
|
A D | header_top.py | 17 def __init__(self, language: str, peer: str): 22 def emit_declaration(self, filename: str, root: Specification) -> None: 33 def emit_definition(self, filename: str, root: Specification) -> None: 44 def emit_source(self, filename: str, root: Specification) -> None:
|
A D | source_top.py | 17 def __init__(self, language: str, peer: str): 22 def emit_source(self, filename: str, root: Specification) -> None:
|
/tools/net/sunrpc/xdrgen/subcmds/ |
A D | source.py | 30 def emit_source_decoder(node: _XdrAst, language: str, peer: str) -> None: 49 def emit_source_encoder(node: _XdrAst, language: str, peer: str) -> None: 68 def generate_server_source(filename: str, root: Specification, language: str) -> None: 80 def generate_client_source(filename: str, root: Specification, language: str) -> None:
|
A D | definitions.py | 31 def emit_header_definitions(root: Specification, language: str, peer: str) -> None: 53 def emit_header_maxsize(root: Specification, language: str, peer: str) -> None:
|
/tools/perf/util/ |
A D | string.c | 23 s64 perf_atoll(const char *str) in perf_atoll() 110 static bool __match_glob(const char *str, const char *pat, bool ignore_space, in __match_glob() 170 bool strglobmatch(const char *str, const char *pat) in strglobmatch() 175 bool strglobmatch_nocase(const char *str, const char *pat) in strglobmatch_nocase() 188 bool strlazymatch(const char *str, const char *pat) in strlazymatch() 251 char *strpbrk_esc(char *str, const char *stopset) in strpbrk_esc() 276 char *strpbrk_esq(char *str, const char *stopset) in strpbrk_esq() 304 char *strdup_esc(const char *str) in strdup_esc() 334 static char *remove_consumed_esc(char *str, int len, int quote) in remove_consumed_esc() 354 char *strdup_esq(const char *str) in strdup_esq()
|
A D | comm.c | 14 char str[]; in DECLARE_RC_STRUCT() local 79 static struct comm_str *comm_str__new(const char *str) in comm_str__new() 122 static struct comm_str *__comm_strs__find(struct comm_strs *comm_strs, const char *str) in __comm_strs__find() 136 static struct comm_str *comm_strs__findnew(const char *str) in comm_strs__findnew() 192 struct comm *comm__new(const char *str, u64 timestamp, bool exec) in comm__new() 211 int comm__override(struct comm *comm, const char *str, u64 timestamp, bool exec) in comm__override()
|
A D | parse-regs-options.c | 13 __parse_regs(const struct option *opt, const char *str, int unset, bool intr) in __parse_regs() 86 parse_user_regs(const struct option *opt, const char *str, int unset) in parse_user_regs() 92 parse_intr_regs(const struct option *opt, const char *str, int unset) in parse_intr_regs()
|
/tools/perf/scripts/python/ |
A D | flamegraph.py | 53 def __init__(self, name: str, libtype: str): 76 def get_libtype_from_dso(dso: Optional[str]) -> str: 87 def find_or_create_node(node: Node, name: str, libtype: str) -> Node:
|
/tools/testing/vsock/ |
A D | control.c | 111 void control_writeln(const char *str) in control_writeln() 143 char str[32]; in control_writeulong() local 156 char *str; in control_readulong() local 228 void control_expectln(const char *str) in control_expectln() 239 bool control_cmpln(char *line, const char *str, bool fail) in control_cmpln()
|
/tools/perf/ |
A D | builtin-probe.c | 53 static int parse_probe_event(const char *str) in parse_probe_event() 81 static int params_add_filter(const char *str) in params_add_filter() 167 static int opt_set_target(const struct option *opt, const char *str, in opt_set_target() 203 const char *str, int unset __maybe_unused) in opt_set_target_ns() 234 const char *str, int unset __maybe_unused) in opt_show_lines() 254 const char *str, int unset __maybe_unused) in opt_show_vars() 276 const char *str, int unset __maybe_unused) in opt_add_probe_event() 287 const char *str, int unset) in opt_set_filter_with_command() 299 const char *str, int unset __maybe_unused) in opt_set_filter() 444 char *str = strfilter__string(filter); in perf_del_probe_events() local
|
/tools/include/linux/ |
A D | init.h | 24 const char *str; member 29 #define __setup_param(str, unique_id, fn, early) \ argument 37 #define __setup(str, fn) \ argument 40 #define early_param(str, fn) \ argument
|
/tools/testing/selftests/bpf/prog_tests/ |
A D | btf_dump.c | 421 char *str) in test_btf_dump_int_data() 479 char *str) in test_btf_dump_float_data() 524 char *str) in test_btf_dump_char_data() 546 char *str) in test_btf_dump_typedef_data() 601 char *str) in test_btf_dump_enum_data() 637 char *str) in test_btf_dump_struct_data() 872 char *str) in test_btf_dump_var_data() 885 char *str; member 965 char str[STRSIZE]; in test_btf_dump_string_data() local 1024 static void test_btf_dump_datasec_data(char *str) in test_btf_dump_datasec_data() [all …]
|
/tools/perf/tests/shell/lib/ |
A D | perf_metric_validation.py | 11 …def __init__(self, metric: list[str], wl: str, value: list[float], low: float, up=float('nan'), de… 78 def read_json(self, filename: str) -> dict: 143 def get_value(self, name: str, ridx: int = 0) -> list: 208 def evaluate_formula(self, formula: str, alias: dict, ridx: int = 0): 380 def _run_perf(self, metric, workload: str): 392 def collect_perf(self, workload: str):
|