Home
last modified time | relevance | path

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

12345678910>>...35

/linux-6.6.21/scripts/gdb/linux/
Dmm.py24 def __init__(self): argument
28 self.ops = aarch64_page_ops()
33 def __init__(self): argument
34 self.SUBSECTION_SHIFT = 21
35 self.SEBSECTION_SIZE = 1 << self.SUBSECTION_SHIFT
36 self.MODULES_VSIZE = 128 * 1024 * 1024
39 self.SECTION_SIZE_BITS = 29
41 self.SECTION_SIZE_BITS = 27
42 self.MAX_PHYSMEM_BITS = constants.LX_CONFIG_ARM64_VA_BITS
44 self.PAGE_SHIFT = constants.LX_CONFIG_ARM64_PAGE_SHIFT
[all …]
/linux-6.6.21/tools/perf/scripts/python/
Dexported-sql-viewer.py194 def __init__(self, task, param=None, parent=None): argument
195 super(Thread, self).__init__(parent)
196 self.task = task
197 self.param = param
199 def run(self): argument
201 if self.param is None:
202 done, result = self.task()
204 done, result = self.task(self.param)
205 self.done.emit(result)
213 def __init__(self, glb, params, parent=None): argument
[all …]
Dlibxed.py32 def __init__(self, libxed): argument
35 self.xedd = xedd_t()
36 self.xedp = addressof(self.xedd)
37 libxed.xed_decoded_inst_zero(self.xedp)
38 self.state = xed_state_t()
39 self.statep = addressof(self.state)
41 self.buffer = create_string_buffer(256)
42 self.bufferp = addressof(self.buffer)
46 def __init__(self): argument
48 self.libxed = CDLL("libxed.so")
[all …]
/linux-6.6.21/tools/net/ynl/lib/
Dnlspec.py31 def __init__(self, family, yaml): argument
32 self.yaml = yaml
33 self.family = family
35 if 'name' in self.yaml:
36 self.name = self.yaml['name']
37 self.ident_name = self.name.replace('-', '_')
39 self._super_resolved = False
40 family.add_unresolved(self)
42 def __getitem__(self, key): argument
43 return self.yaml[key]
[all …]
/linux-6.6.21/scripts/
Drust_is_available_test.py98 def run_script(self, expected, override_env): argument
100 "RUSTC": self.default_rustc,
101 "BINDGEN": self.default_bindgen,
102 "CC": self.default_cc,
114 self.assertEqual(result.stdout, b"")
116 if expected == self.Expected.SUCCESS:
119 self.assertEqual(result.returncode, 0)
120 self.assertEqual(result.stderr, b"")
121 elif expected == self.Expected.SUCCESS_WITH_EXTRA_OUTPUT:
126 self.assertEqual(result.returncode, 0)
[all …]
Dbpf_doc.py24 def __init__(self, line='<line not provided>', reader=None): argument
26 BaseException.__init__(self,
30 BaseException.__init__(self, 'Error parsing line: %s' % line)
40 def __init__(self, proto='', desc='', ret=''): argument
41 self.proto = proto
42 self.desc = desc
43 self.ret = ret
53 def __init__(self, *args, **kwargs): argument
55 self.enum_val = None
57 def proto_break_down(self): argument
[all …]
/linux-6.6.21/tools/bpf/bpftool/
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-6.6.21/tools/testing/selftests/bpf/
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-6.6.21/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DSchedGui.py23 def __init__(self, sched_tracer, title, parent = None, id = -1): argument
24 wx.Frame.__init__(self, parent, id, title)
26 (self.screen_width, self.screen_height) = wx.GetDisplaySize()
27 self.screen_width -= 10
28 self.screen_height -= 10
29 self.zoom = 0.5
30 self.scroll_scale = 20
31 self.sched_tracer = sched_tracer
32 self.sched_tracer.set_root_win(self)
33 (self.ts_start, self.ts_end) = sched_tracer.interval()
[all …]
/linux-6.6.21/tools/crypto/ccp/
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-6.6.21/tools/verification/dot2/
Ddot2c.py25 def __init__(self, file_path): argument
27 self.line_length = 100
29 def __buff_to_string(self, buff): argument
38 def __get_enum_states_content(self): argument
40 buff.append("\t%s%s = 0," % (self.initial_state, self.enum_suffix))
41 for state in self.states:
42 if state != self.initial_state:
43 buff.append("\t%s%s," % (state, self.enum_suffix))
44 buff.append("\tstate_max%s" % (self.enum_suffix))
48 def get_enum_states_string(self): argument
[all …]
Ddot2k.py20 def __init__(self, file_path, MonitorType): argument
23 self.monitor_type = self.monitor_types.get(MonitorType)
24 if self.monitor_type == None:
27 self.monitor_type = MonitorType
28 self.__fill_rv_templates_dir()
29 self.main_c = self.__open_file(self.monitor_templates_dir + "main_" + MonitorType + ".c")
30 self.enum_suffix = "_%s" % self.name
32 def __fill_rv_templates_dir(self): argument
34 if os.path.exists(self.monitor_templates_dir) == True:
43 self.monitor_templates_dir = kernel_path
[all …]
/linux-6.6.21/tools/testing/kunit/
Dkunit_tool_test.py43 def test_is_subset_of(self): argument
45 self.assertTrue(kconfig0.is_subset_of(kconfig0))
49 self.assertTrue(kconfig1.is_subset_of(kconfig1))
50 self.assertTrue(kconfig0.is_subset_of(kconfig1))
51 self.assertFalse(kconfig1.is_subset_of(kconfig0))
53 def test_read_from_file(self): argument
65 self.assertEqual(kconfig, expected_kconfig)
67 def test_write_to_file(self): argument
80 self.assertEqual(actual_kconfig, expected_kconfig)
83 def setUp(self): argument
[all …]
/linux-6.6.21/tools/perf/pmu-events/
Dmetric.py13 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
33 return self.ToPerfJson()
35 def __or__(self, other: Union[int, float, 'Expression']) -> 'Operator': argument
36 return Operator('|', self, other)
38 def __ror__(self, other: Union[int, float, 'Expression']) -> 'Operator': argument
[all …]
/linux-6.6.21/tools/perf/tests/shell/lib/
Dperf_metric_validation.py10 …def __init__(self, rulefname, reportfname='', t=5, debug=False, datafname='', fullrulefname='', wo… argument
11 self.rulefname = rulefname
12 self.reportfname = reportfname
13 self.rules = None
14 self.collectlist:str = metrics
15 self.metrics = self.__set_metrics(metrics)
16 self.skiplist = set()
17 self.tolerance = t
19 self.workloads = [x for x in workload.split(",") if x]
20 self.wlidx = 0 # idx of current workloads
[all …]
/linux-6.6.21/tools/kvm/kvm_stat/
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-6.6.21/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_b0.c115 static int hw_atl_b0_hw_reset(struct aq_hw_s *self) in hw_atl_b0_hw_reset() argument
119 err = hw_atl_utils_soft_reset(self); in hw_atl_b0_hw_reset()
123 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl_b0_hw_reset()
125 err = aq_hw_err_from_flags(self); in hw_atl_b0_hw_reset()
130 int hw_atl_b0_set_fc(struct aq_hw_s *self, u32 fc, u32 tc) in hw_atl_b0_set_fc() argument
132 hw_atl_rpb_rx_xoff_en_per_tc_set(self, !!(fc & AQ_NIC_FC_RX), tc); in hw_atl_b0_set_fc()
137 static int hw_atl_b0_tc_ptp_set(struct aq_hw_s *self) in hw_atl_b0_tc_ptp_set() argument
140 hw_atl_tpb_tx_pkt_buff_size_per_tc_set(self, HW_ATL_B0_PTP_TXBUF_SIZE, in hw_atl_b0_tc_ptp_set()
144 hw_atl_rpb_rx_pkt_buff_size_per_tc_set(self, HW_ATL_B0_PTP_RXBUF_SIZE, in hw_atl_b0_tc_ptp_set()
147 hw_atl_rpb_rx_xoff_en_per_tc_set(self, 0U, AQ_HW_PTP_TC); in hw_atl_b0_tc_ptp_set()
[all …]
Dhw_atl_a0.c86 static int hw_atl_a0_hw_reset(struct aq_hw_s *self) in hw_atl_a0_hw_reset() argument
91 hw_atl_glb_glb_reg_res_dis_set(self, 1U); in hw_atl_a0_hw_reset()
92 hw_atl_pci_pci_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset()
93 hw_atl_rx_rx_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset()
94 hw_atl_tx_tx_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset()
97 hw_atl_glb_soft_res_set(self, 1); in hw_atl_a0_hw_reset()
101 self, val, val == 0, in hw_atl_a0_hw_reset()
106 hw_atl_itr_irq_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset()
107 hw_atl_itr_res_irq_set(self, 1U); in hw_atl_a0_hw_reset()
111 self, val, val == 0, in hw_atl_a0_hw_reset()
[all …]
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-6.6.21/drivers/net/ethernet/aquantia/atlantic/
Daq_nic.c43 static void aq_nic_update_ndev_stats(struct aq_nic_s *self);
45 static void aq_nic_rss_init(struct aq_nic_s *self, unsigned int num_rss_queues) in aq_nic_rss_init() argument
54 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_rss_init()
69 static void aq_nic_cfg_update_num_vecs(struct aq_nic_s *self) in aq_nic_cfg_update_num_vecs() argument
71 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_cfg_update_num_vecs()
75 if (self->irqvecs > AQ_HW_SERVICE_IRQS) in aq_nic_cfg_update_num_vecs()
76 cfg->vecs = min(cfg->vecs, self->irqvecs - AQ_HW_SERVICE_IRQS); in aq_nic_cfg_update_num_vecs()
80 if (ATL_HW_IS_CHIP_FEATURE(self->aq_hw, ANTIGUA)) { in aq_nic_cfg_update_num_vecs()
92 aq_nic_rss_init(self, cfg->num_rss_queues); in aq_nic_cfg_update_num_vecs()
96 void aq_nic_cfg_start(struct aq_nic_s *self) in aq_nic_cfg_start() argument
[all …]
Daq_vec.c30 struct aq_vec_s *self = container_of(napi, struct aq_vec_s, napi); in aq_vec_poll() local
38 if (!self) { in aq_vec_poll()
41 for (i = 0U; self->tx_rings > i; ++i) { in aq_vec_poll()
42 ring = self->ring[i]; in aq_vec_poll()
46 if (self->aq_hw_ops->hw_ring_tx_head_update) { in aq_vec_poll()
47 err = self->aq_hw_ops->hw_ring_tx_head_update( in aq_vec_poll()
48 self->aq_hw, in aq_vec_poll()
60 err = self->aq_hw_ops->hw_ring_rx_receive(self->aq_hw, in aq_vec_poll()
80 err = self->aq_hw_ops->hw_ring_rx_fill( in aq_vec_poll()
81 self->aq_hw, in aq_vec_poll()
[all …]
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
Dhw_atl2.c19 static int hw_atl2_act_rslvr_table_set(struct aq_hw_s *self, u8 location,
89 static u32 hw_atl2_sem_act_rslvr_get(struct aq_hw_s *self) in hw_atl2_sem_act_rslvr_get() argument
91 return hw_atl_reg_glb_cpu_sem_get(self, HW_ATL2_FW_SM_ACT_RSLVR); in hw_atl2_sem_act_rslvr_get()
94 static int hw_atl2_hw_reset(struct aq_hw_s *self) in hw_atl2_hw_reset() argument
96 struct hw_atl2_priv *priv = self->priv; in hw_atl2_hw_reset()
99 err = hw_atl2_utils_soft_reset(self); in hw_atl2_hw_reset()
105 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl2_hw_reset()
107 err = aq_hw_err_from_flags(self); in hw_atl2_hw_reset()
112 static int hw_atl2_hw_queue_to_tc_map_set(struct aq_hw_s *self) in hw_atl2_hw_queue_to_tc_map_set() argument
114 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl2_hw_queue_to_tc_map_set()
[all …]
/linux-6.6.21/tools/testing/selftests/sgx/
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 …]
/linux-6.6.21/tools/testing/selftests/drivers/s390x/uvdevice/
Dtest_uvdevice.c40 self->uv_fd = open(UV_PATH, O_ACCMODE); in FIXTURE_SETUP()
42 self->uvio_ioctl.argument_addr = (__u64)self->buffer; in FIXTURE_SETUP()
43 self->uvio_ioctl.argument_len = variant->arg_size; in FIXTURE_SETUP()
44 self->fault_page = in FIXTURE_SETUP()
50 if (self->uv_fd) in FIXTURE_TEARDOWN()
51 close(self->uv_fd); in FIXTURE_TEARDOWN()
52 munmap((void *)self->fault_page, (size_t)getpagesize()); in FIXTURE_TEARDOWN()
59 rc = ioctl(self->uv_fd, variant->ioctl_cmd, NULL); in TEST_F()
64 rc = ioctl(self->uv_fd, variant->ioctl_cmd, self->fault_page); in TEST_F()
74 self->uvio_ioctl.argument_addr = 0; in TEST_F()
[all …]
/linux-6.6.21/scripts/kconfig/tests/
Dconftest.py30 def __init__(self, request): argument
36 self._test_dir = os.path.dirname(str(request.fspath))
39 def _run_conf(self, mode, dot_config=None, out_file='.config', argument
54 extra_env['srctree'] = self._test_dir
66 shutil.copyfile(os.path.join(self._test_dir, dot_config),
86 self.retcode = ps.returncode
87 self.stdout = ps.stdout.read().decode()
88 self.stderr = ps.stderr.read().decode()
93 if self.retcode == 0 and out_file:
95 self.config = f.read()
[all …]

12345678910>>...35