Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 793) sorted by relevance

12345678910>>...32

/linux/scripts/gdb/linux/
H A Dmm.py24 def __init__(self): argument
28 self.ops = aarch64_page_ops()
30 self.ops = x86_page_ops()
35 def __init__(self): argument
36 self.struct_page_size = utils.get_page_type().sizeof
37 self.PAGE_SHIFT = constants.LX_CONFIG_PAGE_SHIFT
38 self.PAGE_SIZE = 1 << self.PAGE_SHIFT
39 self.PAGE_MASK = (~(self
94 kasan_reset_tag(self, addr) global() argument
97 SECTION_NR_TO_ROOT(self, sec) global() argument
100 __nr_to_section(self, nr) global() argument
105 pfn_to_section_nr(self, pfn) global() argument
108 section_nr_to_pfn(self, sec) global() argument
111 __pfn_to_section(self, pfn) global() argument
114 pfn_to_section(self, pfn) global() argument
117 subsection_map_index(self, pfn) global() argument
120 pfn_section_valid(self, ms, pfn) global() argument
127 valid_section(self, mem_section) global() argument
132 early_section(self, mem_section) global() argument
137 pfn_valid(self, pfn) global() argument
149 PFN_PHYS(self, pfn) global() argument
152 PHYS_PFN(self, phys) global() argument
155 __phys_to_virt(self, pa) global() argument
158 __virt_to_phys(self, va) global() argument
164 virt_to_phys(self, va) global() argument
167 virt_to_page(self, va) global() argument
170 __pa(self, va) global() argument
173 __va(self, pa) global() argument
176 pfn_to_kaddr(self, pfn) global() argument
179 virt_to_pfn(self, va) global() argument
182 sym_to_pfn(self, x) global() argument
185 page_to_pfn(self, page) global() argument
188 pfn_to_page(self, pfn) global() argument
191 page_to_phys(self, page) global() argument
194 page_to_virt(self, page) global() argument
197 page_address(self, page) global() argument
200 folio_address(self, folio) global() argument
204 __init__(self) global() argument
301 SECTION_NR_TO_ROOT(self, sec) global() argument
304 __nr_to_section(self, nr) global() argument
309 pfn_to_section_nr(self, pfn) global() argument
312 section_nr_to_pfn(self, sec) global() argument
315 __pfn_to_section(self, pfn) global() argument
318 pfn_to_section(self, pfn) global() argument
321 subsection_map_index(self, pfn) global() argument
324 pfn_section_valid(self, ms, pfn) global() argument
331 valid_section(self, mem_section) global() argument
336 early_section(self, mem_section) global() argument
341 pfn_valid(self, pfn) global() argument
353 _PAGE_OFFSET(self, va) global() argument
356 _PAGE_END(self, va) global() argument
359 kasan_reset_tag(self, addr) global() argument
365 __is_lm_address(self, addr) global() argument
370 __lm_to_phys(self, addr) global() argument
373 __kimg_to_phys(self, addr) global() argument
376 __virt_to_phys_nodebug(self, va) global() argument
383 __virt_to_phys(self, va) global() argument
389 virt_to_phys(self, va) global() argument
392 PFN_PHYS(self, pfn) global() argument
395 PHYS_PFN(self, phys) global() argument
398 __phys_to_virt(self, pa) global() argument
401 __phys_to_pfn(self, pa) global() argument
404 __pfn_to_phys(self, pfn) global() argument
407 __pa_symbol_nodebug(self, x) global() argument
410 __phys_addr_symbol(self, x) global() argument
416 __pa_symbol(self, x) global() argument
419 __va(self, pa) global() argument
422 pfn_to_kaddr(self, pfn) global() argument
425 virt_to_pfn(self, va) global() argument
428 sym_to_pfn(self, x) global() argument
431 page_to_pfn(self, page) global() argument
434 page_to_phys(self, page) global() argument
437 pfn_to_page(self, pfn) global() argument
440 page_to_virt(self, page) global() argument
447 virt_to_page(self, va) global() argument
455 page_address(self, page) global() argument
458 folio_address(self, folio) global() argument
464 __init__(self) global() argument
467 invoke(self, arg, from_tty) global() argument
478 __init__(self) global() argument
481 invoke(self, arg, from_tty) global() argument
493 __init__(self) global() argument
496 invoke(self, arg, from_tty) global() argument
508 __init__(self) global() argument
511 invoke(self, arg, from_tty) global() argument
523 __init__(self) global() argument
526 invoke(self, arg, from_tty) global() argument
537 __init__(self) global() argument
540 invoke(self, arg, from_tty) global() argument
551 __init__(self) global() argument
554 invoke(self, arg, from_tty) global() argument
565 __init__(self) global() argument
568 invoke(self, arg, from_tty) global() argument
[all...]
/linux/tools/perf/scripts/python/
H A Dexported-sql-viewer.py
/linux/tools/testing/selftests/drivers/net/lib/py/
H A Denv.py25 def __init__(self, src_path): argument
26 self.src_path = Path(src_path)
27 self.test_dir = self.src_path.parent.resolve()
28 self.net_lib_dir = (Path(__file__).parent / "../../../../net/lib").resolve()
30 self.env = self._load_env_file()
33 self.dev = None
34 self.ifname = None
36 def _load_env_file(self) argument
59 __del__(self) global() argument
62 _print_dev_info(self) global() argument
78 __enter__(self) global() argument
85 __exit__(self, ex_type, ex_value, ex_tb) global() argument
96 __init__(self, src_path, nsim_test=None, **kwargs) global() argument
116 __del__(self) global() argument
135 __init__(self, src_path, nsim_test=None, queue_count=None) global() argument
195 create_local(self) global() argument
219 _check_env(self) global() argument
243 resolve_remote_ifc(self) global() argument
255 __del__(self) global() argument
269 require_ipver(self, ipver) global() argument
273 set_ipver(self, ipver) global() argument
292 require_nsim(self, nsim_test=True) global() argument
299 get_local_nsim_dev(self) global() argument
308 _require_cmd(self, comm, key, host=None) global() argument
316 require_cmd(self, comm, local=True, remote=False) global() argument
324 wait_hw_stats_settle(self) global() argument
377 __init__(self, src_path, rxqueues=1, primary_rx_redirect=False, userns=False, **kwargs) global() argument
445 __del__(self) global() argument
493 _setup_ns(self) global() argument
523 _tc_ensure_clsact(self, ifname=None) global() argument
537 _get_bpf_prog_ids(self) global() argument
546 _find_bss_map_id(self, prog_id) global() argument
555 _find_bpf_obj(self, name) global() argument
564 detach_bpf(self) global() argument
570 attach_bpf(self) global() argument
591 _attach_primary_rx_redirect_bpf(self) global() argument
[all...]
/linux/tools/verification/rvgen/rvgen/
H A Dgenerator.py15 def __init__(self, extra_params={}): argument
16 self.name = extra_params.get("model_name")
17 self.parent = extra_params.get("parent")
18 self.abs_template_dir = \
19 Path(__file__).resolve().parent / "templates" / self.template_dir
20 self.main_c = self._read_template_file("main.c")
21 self.kconfig = self._read_template_file("Kconfig")
22 self
27 __fill_rv_kernel_dir(self) global() argument
53 _read_file(self, path) global() argument
64 _read_template_file(self, file) global() argument
74 fill_parent(self) global() argument
77 fill_include_parent(self) global() argument
82 fill_tracepoint_handlers_skel(self) global() argument
85 fill_tracepoint_attach_probe(self) global() argument
88 fill_tracepoint_detach_helper(self) global() argument
91 fill_main_c(self) global() argument
109 fill_model_h(self) global() argument
112 fill_monitor_class_type(self) global() argument
115 fill_monitor_class(self) global() argument
118 fill_tracepoint_args_skel(self, tp_type) global() argument
121 fill_monitor_deps(self) global() argument
129 fill_kconfig(self) global() argument
140 _patch_file(self, file, marker, line) global() argument
147 fill_tracepoint_tooltip(self) global() argument
160 _kconfig_marker(self, container=None) global() argument
164 fill_kconfig_tooltip(self) global() argument
177 fill_makefile_tooltip(self) global() argument
191 fill_monitor_tooltip(self) global() argument
196 __create_directory(self) global() argument
207 __write_file(self, file_name, content) global() argument
217 _create_file(self, file_name, content) global() argument
223 __get_main_name(self) global() argument
229 print_files(self) global() argument
248 __init__(self, extra_params={}) global() argument
252 fill_trace_h(self) global() argument
266 print_files(self) global() argument
[all...]
H A Ddot2c.py26 def __init__(self, file_path, model_name=None):
28 self.line_length = 100
30 def __get_enum_states_content(self) -> list[str]:
32 buff.append(f"\t{self.initial_state.name}{self.enum_suffix},")
33 for state in self.states:
34 if state != self.initial_state:
35 buff.append(f"\t{state.name}{self.enum_suffix},")
36 buff.append(f"\tstate_max{self.enum_suffix},")
40 def format_states_enum(self)
25 __init__(self, file_path, model_name=None) global() argument
29 __buff_to_string(self, buff) global() argument
38 __get_enum_states_content(self) global() argument
48 get_enum_states_string(self) global() argument
52 format_states_enum(self) global() argument
60 __get_enum_events_content(self) global() argument
74 get_enum_events_string(self) global() argument
78 format_events_enum(self) global() argument
86 get_minimun_type(self) global() argument
100 format_automaton_definition(self) global() argument
112 format_aut_init_header(self) global() argument
117 __get_string_vector_per_line_content(self, buff) global() argument
130 get_aut_init_events_string(self) global() argument
133 get_aut_init_states_string(self) global() argument
136 format_aut_init_events_string(self) global() argument
143 format_aut_init_states_string(self) global() argument
151 __get_max_strlen_of_states(self) global() argument
155 get_aut_init_function(self) global() argument
183 format_aut_init_function(self) global() argument
191 get_aut_init_initial_state(self) global() argument
194 format_aut_init_initial_state(self) global() argument
201 get_aut_init_final_states(self) global() argument
216 format_aut_init_final_states(self) global() argument
222 __get_automaton_initialization_footer_string(self) global() argument
226 format_aut_init_footer(self) global() argument
232 format_invalid_state(self) global() argument
238 format_model(self) global() argument
254 print_model_classic(self) global() argument
[all...]
H A Dltl2ba.py70 def __init__(self, incoming: set['GraphNode'], new, old, _next):
71 self.init = False
72 self.outgoing = set() argument
73 self.labels = set()
74 self.incoming = incoming.copy()
75 self.new = new.copy()
76 self.old = old.copy()
77 self.next = _next.copy()
78 self.id = GraphNode.uid
81 def expand(self, node_se
83 expand(self, node_set) global() argument
95 __lt__(self, other) global() argument
101 __init__(self, op) global() argument
106 __hash__(self) global() argument
109 __eq__(self, other) global() argument
112 __iter__(self) global() argument
116 negate(self) global() argument
120 expand(self, node, node_set) global() argument
123 __str__(self) global() argument
130 normalize(self) global() argument
142 __init__(self, left: ASTNode, right: ASTNode) global() argument
146 __hash__(self) global() argument
149 __iter__(self) global() argument
153 normalize(self) global() argument
156 negate(self) global() argument
159 _is_temporal(self) global() argument
162 is_temporal(self) global() argument
176 normalize(self) global() argument
179 negate(self) global() argument
182 _is_temporal(self) global() argument
200 normalize(self) global() argument
203 negate(self) global() argument
206 _is_temporal(self) global() argument
226 normalize(self) global() argument
229 negate(self) global() argument
232 _is_temporal(self) global() argument
248 normalize(self) global() argument
251 negate(self) global() argument
254 _is_temporal(self) global() argument
270 normalize(self) global() argument
274 _is_temporal(self) global() argument
277 negate(self) global() argument
282 __init__(self, child: ASTNode) global() argument
285 __iter__(self) global() argument
288 __hash__(self) global() argument
291 normalize(self) global() argument
294 _is_temporal(self) global() argument
297 is_temporal(self) global() argument
302 negate(self) global() argument
306 __str__(self) global() argument
309 normalize(self) global() argument
313 _is_temporal(self) global() argument
316 negate(self) global() argument
321 normalize(self) global() argument
326 _is_temporal(self) global() argument
329 negate(self) global() argument
334 normalize(self) global() argument
337 _is_temporal(self) global() argument
340 negate(self) global() argument
354 __str__(self) global() argument
357 normalize(self) global() argument
360 negate(self) global() argument
363 _is_temporal(self) global() argument
375 __init__(self, name: str) global() argument
378 __hash__(self) global() argument
381 __iter__(self) global() argument
384 negate(self) global() argument
388 normalize(self) global() argument
391 is_temporal(self) global() argument
403 __init__(self, value: bool) global() argument
406 __iter__(self) global() argument
409 __hash__(self) global() argument
412 __str__(self) global() argument
417 negate(self) global() argument
421 normalize(self) global() argument
424 is_temporal(self) global() argument
[all...]
/linux/tools/net/ynl/pyynl/lib/
H A Dnlspec.py41 def __init__(self, family, yaml): argument
42 self.yaml = yaml
43 self.family = family
45 if 'name' in self.yaml:
46 self.name = self.yaml['name']
47 self.ident_name = self.name.replace('-', '_')
49 self._super_resolved = False
50 family.add_unresolved(self)
52 def __getitem__(self, key): argument
53 return self.yaml[key]
[all …]
/linux/tools/docs/
H A Dsphinx-pre-install78 def __init__(self, pdf): argument
90 self.missing = {}
91 self.missing_pkg = {}
92 self.need = 0
93 self.optional = 0
94 self.pdf = pdf
127 def add_package(self, package, dtype): argument
133 self.missing[package] = dtype
135 self.optional += 1
137 self.need += 1
[all …]
/linux/tools/crypto/ccp/
H A Dtest_dbc.py34 def __init__(self, data) -> None: argument
35 self.d = None
36 self.signature = b"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
37 self.uid = b"1111111111111111"
40 def setUp(self) -> None: argument
41 self.d = open(DEVICE_NODE)
44 def tearDown(self) -> None: argument
45 if self.d:
46 self.d.close()
51 def setUp(self) -> None: argument
[all …]
/linux/tools/testing/selftests/bpf/
H A Djson_writer.c29 static void jsonw_indent(json_writer_t *self) in jsonw_indent() argument
32 for (i = 0; i < self->depth; ++i) in jsonw_indent()
33 fputs(" ", self->out); in jsonw_indent()
37 static void jsonw_eol(json_writer_t *self) in jsonw_eol() argument
39 if (!self->pretty) in jsonw_eol()
42 putc('\n', self->out); in jsonw_eol()
43 jsonw_indent(self); in jsonw_eol()
47 static void jsonw_eor(json_writer_t *self) in jsonw_eor() argument
49 if (self->sep != '\0') in jsonw_eor()
50 putc(self->sep, self->out); in jsonw_eor()
[all …]
/linux/tools/bpf/bpftool/
H A Djson_writer.c29 static void jsonw_indent(json_writer_t *self) in jsonw_indent() argument
32 for (i = 0; i < self->depth; ++i) in jsonw_indent()
33 fputs(" ", self->out); in jsonw_indent()
37 static void jsonw_eol(json_writer_t *self) in jsonw_eol() argument
39 if (!self->pretty) in jsonw_eol()
42 putc('\n', self->out); in jsonw_eol()
43 jsonw_indent(self); in jsonw_eol()
47 static void jsonw_eor(json_writer_t *self) in jsonw_eor() argument
49 if (self->sep != '\0') in jsonw_eor()
50 putc(self->sep, self->out); in jsonw_eor()
[all …]
/linux/tools/lib/python/feat/
H A Dparse_features.py52 def __init__(self, prefix, debug=0, enable_fname=False):
57 self.prefix = prefix
58 self.debug = debug
59 self.enable_fname = enable_fname
61 self.data = {}
64 self.max_size_name = len(self.h_name)
65 self.max_size_kconfig = len(self.h_kconfig) argument
66 self
41 __init__(self, prefix, debug=0, enable_fname=False) global() argument
68 parse_error(self, fname, ln, msg, data=None) global() argument
84 parse_feat_file(self, fname) global() argument
206 parse(self) global() argument
222 output_arch_table(self, arch, feat=None) global() argument
282 output_feature(self, feat) global() argument
332 matrix_lines(self, desc_size, max_size_status, header) global() argument
346 output_matrix(self) global() argument
466 list_arch_features(self, arch, feat) global() argument
[all...]
/linux/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
H A DSchedGui.py
/linux/tools/testing/selftests/damon/
H A D_damon_sysfs.py47 def __init__(self, size=None, nr_accesses=None, age=None): argument
48 self.size = size
49 self.nr_accesses = nr_accesses
50 self.age = age
52 if self.size is None:
53 self.size = [0, 2**64 - 1]
54 if self.nr_accesses is None:
55 self.nr_accesses = [0, 2**32 - 1]
56 if self.age is None:
57 self
59 sysfs_dir(self) global() argument
62 stage(self) global() argument
101 __init__(self, metric, target_value=10000, current_value=0, nid=0) global() argument
107 sysfs_dir(self) global() argument
110 stage(self) global() argument
139 __init__(self, sz=0, ms=0, goals=None, reset_interval_ms=0, weight_sz_permil=0, weight_nr_accesses_permil=0, weight_age_permil=0) global() argument
153 sysfs_dir(self) global() argument
156 stage(self) global() argument
204 __init__(self, metric='none', interval=0, high=0, mid=0, low=0) global() argument
211 sysfs_dir(self) global() argument
214 stage(self) global() argument
245 __init__(self, type_='anon', matching=False, allow=False, memcg_path='', addr_start=0, addr_end=0, target_idx=0, min_=0, max_=0) global() argument
258 sysfs_dir(self) global() argument
261 stage(self) global() argument
301 __init__(self, name, filters=[]) global() argument
308 sysfs_dir(self) global() argument
311 stage(self) global() argument
328 __init__(self, id=0, weight=0) global() argument
332 sysfs_dir(self) global() argument
335 stage(self) global() argument
348 __init__(self, dests=[]) global() argument
354 sysfs_dir(self) global() argument
357 stage(self) global() argument
375 __init__(self, nr_tried, sz_tried, nr_applied, sz_applied, qt_exceeds) global() argument
383 __init__(self, start, end, nr_accesses, age) global() argument
406 __init__(self, action='stat', access_pattern=DamosAccessPattern(), quota=DamosQuota(), watermarks=DamosWatermarks(), core_filters=[], ops_filters=[], filters=[], target_nid=0, dests=DamosDests(), apply_interval_us=0) global() argument
433 sysfs_dir(self) global() argument
437 stage(self) global() argument
483 __init__(self, pid, obsolete=False) global() argument
487 sysfs_dir(self) global() argument
491 stage(self) global() argument
511 __init__(self, access_bp=0, aggrs=0, min_sample_us=0, max_sample_us=0) global() argument
517 sysfs_dir(self) global() argument
520 stage(self) global() argument
547 __init__(self, sample_us=5000, aggr_us=100000, intervals_goal=IntervalsGoal(), update_us=1000000, min_nr_regions=10, max_nr_regions=1000) global() argument
558 interval_sysfs_dir(self) global() argument
562 nr_regions_range_sysfs_dir(self) global() argument
566 stage(self) global() argument
603 __init__(self, ops='paddr', monitoring_attrs=DamonAttrs(), targets=[], schemes=[]) global() argument
619 sysfs_dir(self) global() argument
623 stage(self) global() argument
668 __init__(self, contexts=[]) global() argument
674 sysfs_dir(self) global() argument
677 start(self) global() argument
698 stop(self) global() argument
702 update_schemes_tried_regions(self) global() argument
732 update_schemes_tried_bytes(self) global() argument
745 update_schemes_stats(self) global() argument
762 update_schemes_effective_quotas(self) global() argument
778 commit(self) global() argument
797 commit_schemes_quota_goals(self) global() argument
812 __init__(self, kdamonds=[]) global() argument
818 sysfs_dir(self) global() argument
821 start(self) global() argument
832 stop(self) global() argument
[all...]
/linux/tools/lib/python/kdoc/
H A Dkdoc_output.py70 def __init__(self): argument
73 self.out_mode = self.OUTPUT_ALL
74 self.enable_lineno = None
75 self.nosymbol = {}
76 self.symbol = None
77 self.function_table = None
78 self.config = None
79 self.no_doc_sections = False
81 self.data = ""
83 def set_config(self, config): argument
[all …]
H A Dkdoc_parser.py130 def __init__(self, config, fname, ln): argument
131 self.config = config
132 self.fname = fname
134 self._contents = []
135 self.prototype = ""
137 self.warnings = []
139 self.parameterlist = []
140 self.parameterdescs = {}
141 self.parametertypes = {}
142 self.parameterdesc_start_lines = {}
[all …]
/linux/tools/testing/selftests/hid/tests/
H A Dbase_device.py46 def __init__(self, path): argument
47 self.path = path
49 def __set_value(self, value): argument
50 with open(self.path, "w") as f:
53 def __get_value(self): argument
54 with open(self.path) as f:
58 def int_value(self) -> int: argument
59 return int(self.__get_value())
62 def int_value(self, v: int) -> None: argument
63 self.__set_value(v)
[all …]
/linux/tools/kvm/kvm_stat/
H A Dkvm_stat336 def tracepoint_is_child(self, field): argument
343 def __init__(self, exit_reasons): argument
344 self.sc_perf_evt_open = 298
345 self.ioctl_numbers = IOCTL_NUMBERS
346 self.exit_reason_field = 'exit_reason'
347 self.exit_reasons = exit_reasons
349 def debugfs_is_child(self, field): argument
355 def __init__(self): argument
356 self.sc_perf_evt_open = 319
357 self.ioctl_numbers = IOCTL_NUMBERS
[all …]
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_setns_test.c98 self->nsfds[i] = -EBADF; in FIXTURE_SETUP()
99 self->child_nsfds1[i] = -EBADF; in FIXTURE_SETUP()
100 self->child_nsfds2[i] = -EBADF; in FIXTURE_SETUP()
101 self->child_pidfd_derived_nsfds[i] = -EBADF; in FIXTURE_SETUP()
102 self->child_pidfd_derived_nsfds1[i] = -EBADF; in FIXTURE_SETUP()
103 self->child_pidfd_derived_nsfds2[i] = -EBADF; in FIXTURE_SETUP()
111 self->pid = getpid(); in FIXTURE_SETUP()
112 self->pidfd = sys_pidfd_open(self->pid, 0); in FIXTURE_SETUP()
113 EXPECT_GT(self->pidfd, 0) { in FIXTURE_SETUP()
114 TH_LOG("%m - Failed to open pidfd for process %d", self->pid); in FIXTURE_SETUP()
[all …]
/linux/tools/perf/pmu-events/
H A Dmetric.py120 def ToPerfJson(self) -> str:
124 def ToPython(self) -> str: argument
128 def Simplify(self): argument
129 """Returns a simplified version of self."""
132 def HasExperimentalEvents(self) -> bool: argument
136 def Equals(self, other) -> bool: argument
140 def Substitute(self, name: str, expression: 'Expression') -> 'Expression': argument
143 def __str__(self) -> str:
144 return self.ToPerfJson() argument
146 def __or__(self, othe
147 __str__(self) global() argument
150 __or__(self, other: Union[int, float, 'Expression']) global() argument
153 __ror__(self, other: Union[int, float, 'Expression']) global() argument
156 __xor__(self, other: Union[int, float, 'Expression']) global() argument
159 __and__(self, other: Union[int, float, 'Expression']) global() argument
162 __rand__(self, other: Union[int, float, 'Expression']) global() argument
165 __lt__(self, other: Union[int, float, 'Expression']) global() argument
168 __gt__(self, other: Union[int, float, 'Expression']) global() argument
171 __add__(self, other: Union[int, float, 'Expression']) global() argument
174 __radd__(self, other: Union[int, float, 'Expression']) global() argument
177 __sub__(self, other: Union[int, float, 'Expression']) global() argument
180 __rsub__(self, other: Union[int, float, 'Expression']) global() argument
183 __mul__(self, other: Union[int, float, 'Expression']) global() argument
186 __rmul__(self, other: Union[int, float, 'Expression']) global() argument
189 __truediv__(self, other: Union[int, float, 'Expression']) global() argument
192 __rtruediv__(self, other: Union[int, float, 'Expression']) global() argument
195 __mod__(self, other: Union[int, float, 'Expression']) global() argument
230 __init__(self, operator: str, lhs: Union[int, float, Expression], rhs: Union[int, float, Expression]) global() argument
236 Bracket(self, other: Expression, other_str: str, rhs: bool = False) global() argument
268 ToPerfJson(self) global() argument
272 ToPython(self) global() argument
276 Simplify(self) global() argument
307 HasExperimentalEvents(self) global() argument
310 Equals(self, other: Expression) global() argument
316 Substitute(self, name: str, expression: Expression) global() argument
329 __init__(self, true_val: Union[int, float, Expression], cond: Union[int, float, Expression], false_val: Union[int, float, Expression]) global() argument
336 ToPerfJson(self) global() argument
342 ToPython(self) global() argument
346 Simplify(self) global() argument
358 HasExperimentalEvents(self) global() argument
362 Equals(self, other: Expression) global() argument
368 Substitute(self, name: str, expression: Expression) global() argument
380 __init__(self, fn: str, lhs: Union[int, float, Expression], rhs: Optional[Union[int, float, Expression]] = None) global() argument
388 ToPerfJson(self) global() argument
393 ToPython(self) global() argument
398 Simplify(self) global() argument
410 HasExperimentalEvents(self) global() argument
413 Equals(self, other: Expression) global() argument
421 Substitute(self, name: str, expression: Expression) global() argument
439 __init__(self, *args: str) global() argument
453 HasExperimentalEvents(self) global() argument
456 ToPerfJson(self) global() argument
460 ToPython(self) global() argument
463 Simplify(self) global() argument
466 Equals(self, other: Expression) global() argument
469 Substitute(self, name: str, expression: Expression) global() argument
476 __init__(self, name: str) global() argument
479 ToPerfJson(self) global() argument
482 ToPython(self) global() argument
485 Simplify(self) global() argument
488 HasExperimentalEvents(self) global() argument
491 Equals(self, other: Expression) global() argument
494 Substitute(self, name: str, expression: Expression) global() argument
501 __init__(self, value: Union[float, str]) global() argument
509 ToPerfJson(self) global() argument
512 ToPython(self) global() argument
515 Simplify(self) global() argument
518 HasExperimentalEvents(self) global() argument
521 Equals(self, other: Expression) global() argument
524 Substitute(self, name: str, expression: Expression) global() argument
531 __init__(self, value: str) global() argument
534 ToPerfJson(self) global() argument
537 ToPython(self) global() argument
540 Simplify(self) global() argument
543 HasExperimentalEvents(self) global() argument
546 Equals(self, other: Expression) global() argument
549 Substitute(self, name: str, expression: Expression) global() argument
598 __init__(self, name: str, description: str, expr: Expression, scale_unit: str, constraint: MetricConstraint = MetricConstraint.GROUPED_EVENTS, threshold: Optional[Expression] = None) global() argument
620 __lt__(self, other) global() argument
624 AddToMetricGroup(self, group) global() argument
629 Flatten(self) global() argument
633 ToPerfJson(self) global() argument
649 ToMetricGroupDescriptions(self, root: bool = True) global() argument
660 __init__(self, name: str, metric_list: List[Union[Optional[Metric], Optional['MetricGroup']]], description: Optional[str] = None) global() argument
671 AddToMetricGroup(self, group) global() argument
676 Flatten(self) global() argument
684 ToPerfJson(self) global() argument
690 ToMetricGroupDescriptions(self, root: bool = True) global() argument
696 __str__(self) global() argument
704 default(self, o) global() argument
719 visit_IfExp(self, node) global() argument
[all...]
/linux/tools/testing/kunit/
H A Dkunit_tool_test.py47 def test_is_subset_of(self):
49 self.assertTrue(kconfig0.is_subset_of(kconfig0))
53 self.assertTrue(kconfig1.is_subset_of(kconfig1))
54 self.assertTrue(kconfig0.is_subset_of(kconfig1))
55 self.assertFalse(kconfig1.is_subset_of(kconfig0))
57 def test_read_from_file(self):
69 self.assertEqual(kconfig, expected_kconfig)
71 def test_write_to_file(self):
84 self.assertEqual(actual_kconfig, expected_kconfig)
87 def setUp(self)
46 test_is_subset_of(self) global() argument
56 test_read_from_file(self) global() argument
70 test_write_to_file(self) global() argument
86 setUp(self) global() argument
90 noPrintCallContains(self, substr: str) global() argument
94 assertContains(self, needle: str, haystack: kunit_parser.LineStream) global() argument
102 test_output_isolated_correctly(self) global() argument
113 test_output_with_prefix_isolated_correctly(self) global() argument
142 test_parse_successful_test_log(self) global() argument
149 test_parse_successful_nested_tests_log(self) global() argument
156 test_kselftest_nested(self) global() argument
163 test_parse_failed_test_log(self) global() argument
170 test_parse_failed_nested_tests_log(self) global() argument
181 test_no_header(self) global() argument
190 test_missing_test_plan(self) global() argument
201 test_no_tests(self) global() argument
210 test_no_tests_no_plan(self) global() argument
222 test_no_kunit_output(self) global() argument
233 test_skipped_test(self) global() argument
242 test_skipped_all_tests(self) global() argument
250 test_ignores_hyphen(self) global() argument
264 test_ignores_prefix_printk_time(self) global() argument
272 test_ignores_multiple_prefixes(self) global() argument
280 test_prefix_mixed_kernel_output(self) global() argument
288 test_prefix_poundsign(self) global() argument
296 test_kernel_panic_end(self) global() argument
304 test_pound_no_prefix(self) global() argument
312 test_summarize_failures(self) global() argument
333 test_ktap_format(self) global() argument
342 test_parse_subtest_header(self) global() argument
348 test_parse_attributes(self) global() argument
364 test_show_test_output_on_failure(self) global() argument
379 test_parse_late_test_plan(self) global() argument
395 test_basic(self) global() argument
412 test_is_lazy(self) global() argument
431 setUp(self) global() argument
435 test_invalid_kunitconfig(self) global() argument
439 test_valid_kunitconfig(self) global() argument
443 test_dir_kunitconfig(self) global() argument
449 test_multiple_kunitconfig(self) global() argument
466 test_multiple_kunitconfig_invalid(self) global() argument
478 test_kconfig_add(self) global() argument
486 test_invalid_arch(self) global() argument
490 test_run_kernel_hits_exception(self) global() argument
506 test_run_kernel_args_not_mutated(self) global() argument
532 test_run_kernel_skips_terminal_reset_without_tty(self) global() argument
550 test_signal_handler_skips_terminal_reset_without_tty(self) global() argument
562 test_signal_handler_resets_terminal_with_tty(self) global() argument
574 test_build_reconfig_no_config(self) global() argument
590 test_build_reconfig_existing_config(self) global() argument
610 test_build_reconfig_remove_option(self) global() argument
635 setUp(self) global() argument
639 _json_for(self, log_file) global() argument
647 test_failed_test_json(self) global() argument
653 test_crashed_test_json(self) global() argument
659 test_skipped_test_json(self) global() argument
665 test_no_tests_json(self) global() argument
669 test_nested_json(self) global() argument
676 __eq__(self, other) global() argument
680 setUp(self) global() argument
695 test_config_passes_args_pass(self) global() argument
700 test_build_passes_args_pass(self) global() argument
706 test_exec_passes_args_pass(self) global() argument
714 test_run_passes_args_pass(self) global() argument
722 test_exec_passes_args_fail(self) global() argument
728 test_run_passes_args_fail(self) global() argument
737 test_exec_no_tests(self) global() argument
746 test_exec_raw_output(self) global() argument
754 test_run_raw_output(self) global() argument
763 test_run_raw_output_kunit(self) global() argument
772 test_run_raw_output_invalid(self) global() argument
778 test_run_raw_output_does_not_take_positional_args(self) global() argument
786 test_exec_timeout(self) global() argument
793 test_run_timeout(self) global() argument
801 test_run_builddir(self) global() argument
810 test_run_builddir_from_env(self) global() argument
819 test_run_builddir_override(self) global() argument
827 test_config_builddir(self) global() argument
832 test_build_builddir(self) global() argument
838 test_exec_builddir(self) global() argument
845 test_run_kunitconfig(self) global() argument
856 test_config_kunitconfig(self) global() argument
867 test_config_alltests(self) global() argument
880 test_run_multiple_kunitconfig(self, mock_linux_init) global() argument
892 test_run_kconfig_add(self) global() argument
903 test_run_qemu_args(self) global() argument
914 test_run_kernel_args(self) global() argument
921 test_list_tests(self) global() argument
933 test_run_isolated_by_suite(self, mock_tests) global() argument
946 test_run_isolated_by_test(self, mock_tests) global() argument
961 test_list_suites(self, mock_stdout, mock_tests) global() argument
970 test_list_cmds(self, mock_stdout) global() argument
978 test_run_list_opts(self, mock_stdout) global() argument
[all...]
/linux/tools/testing/selftests/vfio/
H A Dvfio_pci_driver_test.c83 self->iommu = iommu_init(variant->iommu_mode); in FIXTURE_SETUP()
84 self->device = vfio_pci_device_init(device_bdf, self->iommu); in FIXTURE_SETUP()
85 self->iova_allocator = iova_allocator_init(self->iommu); in FIXTURE_SETUP()
87 driver = &self->device->driver; in FIXTURE_SETUP()
89 region_setup(self->iommu, self->iova_allocator, &self->memcpy_region, SZ_1G); in FIXTURE_SETUP()
90 region_setup(self in FIXTURE_SETUP()
[all...]
/linux/scripts/
H A Dbpf_doc.py25 def __init__(self, line='<line not provided>', reader=None): argument
27 BaseException.__init__(self,
31 BaseException.__init__(self, 'Error parsing line: %s' % line)
41 def __init__(self, proto='', desc='', ret=''): argument
42 self.proto = proto
43 self.desc = desc
44 self.ret = ret
46 def to_dict(self): argument
48 'proto': self.proto,
49 'desc': self.desc,
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/
H A Dhw_atl_utils.c58 static int hw_atl_utils_mpi_set_state(struct aq_hw_s *self,
60 static u32 hw_atl_utils_get_mpi_mbox_tid(struct aq_hw_s *self);
61 static u32 hw_atl_utils_mpi_get_state(struct aq_hw_s *self);
62 static u32 hw_atl_utils_mif_cmd_get(struct aq_hw_s *self);
63 static u32 hw_atl_utils_mif_addr_get(struct aq_hw_s *self);
64 static u32 hw_atl_utils_rpc_state_get(struct aq_hw_s *self);
65 static u32 aq_fw1x_rpc_get(struct aq_hw_s *self);
67 int hw_atl_utils_initfw(struct aq_hw_s *self, const struct aq_fw_ops **fw_ops) in hw_atl_utils_initfw() argument
71 hw_atl_utils_hw_chip_features_init(self, in hw_atl_utils_initfw()
72 &self->chip_features); in hw_atl_utils_initfw()
[all …]
/linux/tools/testing/selftests/sgx/
H A Dmain.c259 encl_delete(&self->encl); in FIXTURE_TEARDOWN()
287 ASSERT_TRUE(setup_test_encl(ENCL_HEAP_SIZE_DEFAULT, &self->encl, _metadata)); in TEST_F()
289 memset(&self->run, 0, sizeof(self->run)); in TEST_F()
290 self->run.tcs = self->encl.encl_base; in TEST_F()
295 EXPECT_EQ(ENCL_CALL(&put_op, &self->run, false), 0); in TEST_F()
297 EXPECT_EEXIT(&self->run); in TEST_F()
298 EXPECT_EQ(self->run.user_data, 0); in TEST_F()
303 EXPECT_EQ(ENCL_CALL(&get_op, &self->run, false), 0); in TEST_F()
306 EXPECT_EEXIT(&self->run); in TEST_F()
307 EXPECT_EQ(self->run.user_data, 0); in TEST_F()
[all …]

12345678910>>...32