| /linux/tools/testing/kunit/ |
| H A D | kunit_tool_test.py | 44 def test_is_subset_of(self): argument 54 def test_read_from_file(self): argument 68 def test_write_to_file(self): argument 84 def setUp(self): argument 88 def noPrintCallContains(self, substr: str): argument 92 def assertContains(self, needle: str, haystack: kunit_parser.LineStream): argument 100 def test_output_isolated_correctly(self): argument 111 def test_output_with_prefix_isolated_correctly(self): argument 140 def test_parse_successful_test_log(self): argument 147 def test_parse_successful_nested_tests_log(self): argument [all …]
|
| /linux/tools/testing/selftests/hid/tests/ |
| H A D | test_multitouch.py | 57 def __init__(self, id, x, y): argument 73 def __init__(self, x, y): argument 102 self, argument 150 def touches_in_a_report(self): argument 153 def event(self, slots, global_data=None, contact_count=None, incr_scantime=True): argument 177 def get_report(self, req, rnum, rtype): argument 196 def set_report(self, req, rnum, rtype, data): argument 237 self, argument 260 self, argument 289 def __init__(self, max_slots): argument [all …]
|
| H A D | test_mouse.py | 35 def __init__(self, rdesc, name=None, input_info=None): argument 42 def create_report(self, x, y, buttons=None, wheels=None, reportID=None): argument 88 def event(self, x, y, buttons=None, wheels=None): argument 139 def __init__(self, rdesc=report_descriptor, name=None, input_info=None): argument 142 def fake_report(self, x, y, buttons): argument 202 def __init__(self, rdesc=report_descriptor, name=None, input_info=None): argument 246 def __init__(self, rdesc=report_descriptor, name=None, input_info=None): argument 327 self, rdesc=report_descriptor, name=device_name, input_info=device_input_info argument 331 def event(self, x, y, buttons=None, wheels=None): argument 408 def __init__(self, rdesc=report_descriptor, name=None, input_info=None): argument [all …]
|
| H A D | test_wacom_generic.py | 62 def fill(self, reportdata): argument 98 def fill(self, reportdata): argument 123 def fill(self, reportdata): argument 143 def contains(self, field): argument 166 def __init__(self, rdesc, name=None, info=None): argument 176 def match_evdev_rule(self, application, evdev): argument 192 self, x, y, pressure, buttons=None, toolid=None, proximity=None, reportID=None argument 232 def create_report_heartbeat(self, reportID): argument 243 def create_report_pad(self, reportID, ring, ek0): argument 264 def event(self, x, y, pressure, buttons=None, toolid=None, proximity=None): argument [all …]
|
| H A D | test_tablet.py | 60 self, touch: BtnTouch, tool: Optional[ToolType], button: Optional[bool] argument 99 self, events: List[libevdev.InputEvent], strict: bool, test_button: BtnPressed argument 147 def valid_transitions(self) -> Tuple["PenState", ...]: argument 207 def historically_tolerated_transitions(self) -> Tuple["PenState", ...]: argument 452 def __init__(self, x, y): argument 471 def restore(self): argument 486 def backup(self): argument 489 def __assert_axis(self, evdev, axis, value): argument 500 def assert_expected_input_events(self, evdev, button): argument 520 self, argument [all …]
|
| /linux/lib/ |
| H A D | test_bpf.c | 90 static int bpf_fill_maxinsns1(struct bpf_test *self) in bpf_fill_maxinsns1() 110 static int bpf_fill_maxinsns2(struct bpf_test *self) in bpf_fill_maxinsns2() 129 static int bpf_fill_maxinsns3(struct bpf_test *self) in bpf_fill_maxinsns3() 156 static int bpf_fill_maxinsns4(struct bpf_test *self) in bpf_fill_maxinsns4() 175 static int bpf_fill_maxinsns5(struct bpf_test *self) in bpf_fill_maxinsns5() 198 static int bpf_fill_maxinsns6(struct bpf_test *self) in bpf_fill_maxinsns6() 220 static int bpf_fill_maxinsns7(struct bpf_test *self) in bpf_fill_maxinsns7() 246 static int bpf_fill_maxinsns8(struct bpf_test *self) in bpf_fill_maxinsns8() 269 static int bpf_fill_maxinsns9(struct bpf_test *self) in bpf_fill_maxinsns9() 295 static int bpf_fill_maxinsns10(struct bpf_test *self) in bpf_fill_maxinsns10() [all …]
|
| /linux/scripts/gdb/linux/ |
| H A D | mm.py | 24 def __init__(self): argument 33 def __init__(self): argument 130 def SECTION_NR_TO_ROOT(self, sec): argument 133 def __nr_to_section(self, nr): argument 138 def pfn_to_section_nr(self, pfn): argument 141 def section_nr_to_pfn(self, sec): argument 144 def __pfn_to_section(self, pfn): argument 147 def pfn_to_section(self, pfn): argument 150 def subsection_map_index(self, pfn): argument 153 def pfn_section_valid(self, ms, pfn): argument [all …]
|
| /linux/tools/kvm/kvm_stat/ |
| H A D | kvm_stat | 336 def tracepoint_is_child(self, field): argument 343 def __init__(self, exit_reasons): argument 349 def debugfs_is_child(self, field): argument 355 def __init__(self): argument 369 def debugfs_is_child(self, field): argument 375 def __init__(self): argument 381 def debugfs_is_child(self, field): argument 387 def __init__(self): argument 393 def debugfs_is_child(self, field): argument 424 def __init__(self): argument [all …]
|
| /linux/tools/perf/scripts/python/ |
| H A D | exported-sql-viewer.py | 194 def __init__(self, task, param=None, parent=None): argument 199 def run(self): argument 213 def __init__(self, glb, params, parent=None): argument 220 def Item(self, parent): argument 226 def rowCount(self, parent): argument 233 def hasChildren(self, parent): argument 236 def headerData(self, section, orientation, role): argument 245 def parent(self, child): argument 252 def index(self, row, column, parent): argument 256 def DisplayData(self, item, index): argument [all …]
|
| /linux/scripts/ |
| H A D | bpf_doc.py | 25 def __init__(self, line='<line not provided>', reader=None): argument 41 def __init__(self, proto='', desc='', ret=''): argument 46 def to_dict(self): argument 61 def __init__(self, proto='', desc='', ret='', attrs=[]): argument 66 def proto_break_down(self): argument 92 def to_dict(self): argument 112 def __init__(self, filename): argument 124 def parse_element(self): argument 130 def parse_helper(self): argument 137 def parse_symbol(self): argument [all …]
|
| /linux/tools/verification/rvgen/rvgen/ |
| H A D | ltl2ba.py | 72 def __init__(self, incoming: set['GraphNode'], new, old, _next): argument 83 def expand(self, node_set): argument 95 def __lt__(self, other): argument 101 def __init__(self, op): argument 106 def __hash__(self): argument 109 def __eq__(self, other): argument 112 def __iter__(self): argument 116 def negate(self): argument 120 def expand(self, node, node_set): argument 123 def __str__(self): argument [all …]
|
| H A D | dot2c.py | 25 def __init__(self, file_path, model_name=None): argument 29 def __buff_to_string(self, buff): argument 38 def __get_enum_states_content(self): argument 48 def get_enum_states_string(self): argument 52 def format_states_enum(self): argument 60 def __get_enum_events_content(self): argument 74 def get_enum_events_string(self): argument 78 def format_events_enum(self): argument 86 def get_minimun_type(self): argument 100 def format_automaton_definition(self): argument [all …]
|
| H A D | generator.py | 15 def __init__(self, extra_params={}): argument 27 def __fill_rv_kernel_dir(self): argument 53 def _read_file(self, path): argument 64 def _read_template_file(self, file): argument 74 def fill_parent(self): argument 77 def fill_include_parent(self): argument 82 def fill_tracepoint_handlers_skel(self): argument 85 def fill_tracepoint_attach_probe(self): argument 88 def fill_tracepoint_detach_helper(self): argument 91 def fill_main_c(self): argument [all …]
|
| /linux/tools/perf/pmu-events/ |
| H A D | metric.py | 13 def ToPerfJson(self) -> str: argument 17 def ToPython(self) -> str: argument 21 def Simplify(self): argument 25 def Equals(self, other) -> bool: argument 29 def Substitute(self, name: str, expression: 'Expression') -> 'Expression': argument 32 def __str__(self) -> str: argument 35 def __or__(self, other: Union[int, float, 'Expression']) -> 'Operator': argument 38 def __ror__(self, other: Union[int, float, 'Expression']) -> 'Operator': argument 41 def __xor__(self, other: Union[int, float, 'Expression']) -> 'Operator': argument 44 def __and__(self, other: Union[int, float, 'Expression']) -> 'Operator': argument [all …]
|
| /linux/tools/crypto/ccp/ |
| H A D | test_dbc.py | 34 def __init__(self, data) -> None: argument 40 def setUp(self) -> None: argument 44 def tearDown(self) -> None: argument 51 def setUp(self) -> None: argument 58 def test_unauthenticated_nonce(self) -> None: argument 65 def __init__(self, data) -> None: argument 70 def setUp(self) -> None: argument 78 def test_invalid_nonce_ioctl(self) -> None: argument 87 def test_invalid_setuid_ioctl(self) -> None: argument 96 def test_invalid_setuid_rw_ioctl(self) -> None: argument [all …]
|
| /linux/tools/net/ynl/pyynl/ |
| H A D | ynl_gen_c.py | 43 def get_family_id(self): argument 48 def __init__(self, family, attr_set, attr, value): argument 93 def _get_real_attr(self): argument 97 def set_request(self): argument 102 def set_reply(self): argument 107 def get_limit(self, limit, default=None): argument 117 def get_limit_str(self, limit, default=None, suffix=''): argument 130 def resolve(self): argument 143 def is_multi_val(self): argument 146 def is_scalar(self): argument [all …]
|
| /linux/tools/power/pm-graph/ |
| H A D | sleepgraph.py | 324 def __init__(self): argument 342 def resetlog(self): argument 345 def vprint(self, msg): argument 349 def signalHandler(self, signum, frame): argument 362 def signalHandlerInit(self): argument 374 def rootCheck(self, fatal=True): argument 383 def rootUser(self, fatal=False): argument 392 def usable(self, file, ishtml=False): argument 405 def getExec(self, cmd): argument 420 def setPrecision(self, num): argument [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | json_writer.c | 29 static void jsonw_indent(json_writer_t *self) in jsonw_indent() 37 static void jsonw_eol(json_writer_t *self) in jsonw_eol() 47 static void jsonw_eor(json_writer_t *self) in jsonw_eor() 57 static void jsonw_puts(json_writer_t *self, const char *str) in jsonw_puts() 92 json_writer_t *self = malloc(sizeof(*self)); in jsonw_new() local 105 json_writer_t *self = *self_p; in jsonw_destroy() local 114 void jsonw_pretty(json_writer_t *self, bool on) in jsonw_pretty() 119 void jsonw_reset(json_writer_t *self) in jsonw_reset() 126 static void jsonw_begin(json_writer_t *self, int c) in jsonw_begin() 134 static void jsonw_end(json_writer_t *self, int c) in jsonw_end() [all …]
|
| H A D | test_bpftool_synctypes.py | 28 def __init__(self, reader): argument 31 def search_block(self, start_marker): argument 42 def parse(self, pattern, end_marker): argument 67 def __init__(self, reader, array_name): argument 72 def search_block(self): argument 78 def parse(self): argument 98 def parse(self, pattern, end_marker): argument 123 def __init__(self): argument 126 def close(self): argument 132 def reset_read(self): argument [all …]
|
| /linux/tools/bpf/bpftool/ |
| H A D | json_writer.c | 29 static void jsonw_indent(json_writer_t *self) in jsonw_indent() 37 static void jsonw_eol(json_writer_t *self) in jsonw_eol() 47 static void jsonw_eor(json_writer_t *self) in jsonw_eor() 57 static void jsonw_puts(json_writer_t *self, const char *str) in jsonw_puts() 92 json_writer_t *self = malloc(sizeof(*self)); in jsonw_new() local 105 json_writer_t *self = *self_p; in jsonw_destroy() local 114 void jsonw_pretty(json_writer_t *self, bool on) in jsonw_pretty() 119 void jsonw_reset(json_writer_t *self) in jsonw_reset() 126 static void jsonw_begin(json_writer_t *self, int c) in jsonw_begin() 134 static void jsonw_end(json_writer_t *self, int c) in jsonw_end() [all …]
|
| /linux/tools/perf/python/ |
| H A D | ilist.py | 30 def name(self) -> str: argument 34 def description(self) -> str: argument 38 def matches(self, query: str) -> bool: argument 42 def parse(self) -> perf.evlist: argument 46 def value(self, evlist: perf.evlist, evsel: perf.evsel, cpu: int, thread: int) -> float: argument 55 def name(self) -> str: argument 58 def description(self) -> str: argument 70 def matches(self, query: str) -> bool: argument 73 def parse(self) -> perf.evlist: argument 76 def value(self, evlist: perf.evlist, evsel: perf.evsel, cpu: int, thread: int) -> float: argument [all …]
|
| /linux/tools/testing/selftests/tpm2/ |
| H A D | tpm2_tests.py | 14 def setUp(self): argument 18 def tearDown(self): argument 22 def test_seal_with_auth(self): argument 30 def determine_bank_alg(self, mask): argument 37 def test_seal_with_policy(self): argument 70 def test_unseal_with_wrong_auth(self): argument 84 def test_unseal_with_wrong_policy(self): argument 145 def test_seal_with_too_long_auth(self): argument 158 def test_too_short_cmd(self): argument 175 def test_read_partial_resp(self): argument [all …]
|
| /linux/tools/net/ynl/pyynl/lib/ |
| H A D | ynl.py | 104 self.nl_msg = nl_msg argument 108 return f"Netlink error: {os.strerror(self.error)}\n{self.nl_msg}" argument 129 self._len, self._type = struct.unpack("HH", raw[offset : offset + 4]) argument 145 as_scalar(self, attr_type, byte_order=None) global() argument 149 as_auto_scalar(self, attr_type, byte_order=None) global() argument 156 as_strz(self) global() argument 159 as_bin(self) global() argument 162 as_c_array(self, type) global() argument 166 __repr__(self) global() argument 171 __init__(self, msg, offset=0) global() argument 179 __iter__(self) global() argument 182 __repr__(self) global() argument 192 __init__(self, msg, offset, attr_space=None) global() argument 236 _decode_policy(self, raw) global() argument 260 annotate_extack(self, attr_space) global() argument 272 cmd(self) global() argument 275 __repr__(self) global() argument 285 __init__(self, data) global() argument 294 __iter__(self) global() argument 364 __init__(self, nl_msg) global() argument 369 cmd(self) global() argument 372 __repr__(self) global() argument 381 __init__(self, family_name, proto_num) global() argument 385 _message(self, nl_type, nl_flags, seq=None) global() argument 391 message(self, flags, command, version, seq=None) global() argument 394 _decode(self, nl_msg) global() argument 397 decode(self, ynl, nl_msg, op) global() argument 405 get_mcast_id(self, mcast_name, mcast_groups) global() argument 410 msghdr_size(self) global() argument 415 __init__(self, family_name) global() argument 425 message(self, flags, command, version, seq=None) global() argument 430 _decode(self, nl_msg) global() argument 433 get_mcast_id(self, mcast_name, mcast_groups) global() argument 438 msghdr_size(self) global() argument 445 __init__(self, attr_space, attrs, outer = None) global() argument 450 lookup(self, name) global() argument 467 __init__(self, def_path, schema=None, process_unknown=False, recv_size=0) global() argument 511 ntf_subscribe(self, mcast_name) global() argument 517 set_recv_dbg(self, enabled) global() argument 520 _recv_dbg_print(self, reply, nl_msgs) global() argument 528 _encode_enum(self, attr_spec, value) global() argument 540 _get_scalar(self, attr_spec, value) global() argument 550 _add_attr(self, space, name, value, search_attrs) global() argument 626 _get_enum_or_unknown(self, enum, raw) global() argument 636 _decode_enum(self, raw, attr_spec) global() argument 650 _decode_binary(self, attr, attr_spec) global() argument 666 _decode_array_attr(self, attr, attr_spec) global() argument 692 _decode_nest_type_value(self, attr, attr_spec) global() argument 702 _decode_unknown(self, attr) global() argument 708 _rsp_add(self, rsp, name, is_multi, decoded) global() argument 723 _resolve_selector(self, attr_spec, search_attrs) global() argument 737 _decode_sub_msg(self, attr, attr_spec, search_attrs) global() argument 752 _decode(self, attrs, space, outer_attrs = None) global() argument 812 _decode_extack_path(self, attrs, attr_set, offset, target, search_attrs) global() argument 848 _decode_extack(self, request, op, extack, vals) global() argument 861 _struct_size(self, name) global() argument 878 _decode_struct(self, data, name) global() argument 907 _encode_struct(self, name, vals) global() argument 931 _formatted_string(self, raw, display_hint) global() argument 947 _from_string(self, string, attr_spec) global() argument 959 handle_ntf(self, decoded) global() argument 972 check_ntf(self) global() argument 997 poll_ntf(self, duration=None) global() argument 1016 operation_do_attributes(self, name) global() argument 1027 _encode_message(self, op, vals, flags, req_seq) global() argument 1041 _ops(self, ops) global() argument 1110 _op(self, method, vals, flags=None, dump=False) global() argument 1118 do(self, method, vals, flags=None) global() argument 1121 dump(self, method, vals) global() argument 1124 do_multi(self, ops) global() argument [all...] |
| /linux/tools/testing/selftests/tc-testing/ |
| H A D | TdcResults.py | 12 def __init__(self, test_id="", test_name=""): argument 20 def set_result(self, result): argument 27 def get_result(self): argument 30 def set_errormsg(self, errormsg): argument 34 def append_errormsg(self, errormsg): argument 37 def get_errormsg(self): argument 40 def set_failmsg(self, failmsg): argument 44 def append_failmsg(self, failmsg): argument 47 def get_failmsg(self): argument 50 def add_steps(self, newstep): argument [all …]
|
| /linux/tools/testing/selftests/tc-testing/plugin-lib/ |
| H A D | nsPlugin.py | 21 def __init__(self): argument 25 def pre_suite(self, testcount, testlist): argument 28 def prepare_test(self, test): argument 56 def pre_case(self, test, test_skip): argument 65 def post_case(self): argument 74 def post_suite(self, index): argument 86 def adjust_command(self, stage, command): argument 118 def _nl_ns_create(self): argument 162 def _ipr2_ns_create_cmds(self): argument 182 def _ipr2_ns_create(self): argument [all …]
|