| /kernel/linux/linux-5.10/tools/perf/scripts/python/ |
| D | exported-sql-viewer.py | 193 def __init__(self, task, param=None, parent=None): argument 194 super(Thread, self).__init__(parent) 195 self.task = task 196 self.param = param 198 def run(self): argument 200 if self.param is None: 201 done, result = self.task() 203 done, result = self.task(self.param) 204 self.done.emit(result) 212 def __init__(self, glb, params, parent=None): argument [all …]
|
| D | sched-migration.py | 41 def __repr__(self): argument 49 def __init__(self, sleeper): argument 50 self.sleeper = sleeper 52 def __repr__(self): argument 53 return "%s gone to sleep" % thread_name(self.sleeper) 60 def __init__(self, wakee): argument 61 self.wakee = wakee 63 def __repr__(self): argument 64 return "%s woke up" % thread_name(self.wakee) 71 def __init__(self, child): argument [all …]
|
| /kernel/linux/linux-5.10/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
| D | SchedGui.py | 23 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 …]
|
| /kernel/linux/linux-4.19/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
| D | SchedGui.py | 23 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/ |
| D | aq_nic.c | 43 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 …]
|
| D | aq_ring.c | 61 static int aq_get_rxpages(struct aq_ring_s *self, struct aq_ring_buff_s *rxbuf, in aq_get_rxpages() argument 73 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages() 74 self->stats.rx.pg_flips++; in aq_get_rxpages() 75 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages() 81 aq_nic_get_dev(self->aq_nic)); in aq_get_rxpages() 82 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages() 83 self->stats.rx.pg_losts++; in aq_get_rxpages() 84 u64_stats_update_end(&self->stats.rx.syncp); in aq_get_rxpages() 88 u64_stats_update_begin(&self->stats.rx.syncp); in aq_get_rxpages() 89 self->stats.rx.pg_reuses++; in aq_get_rxpages() [all …]
|
| D | aq_vec.c | 35 struct aq_vec_s *self = container_of(napi, struct aq_vec_s, napi); in aq_vec_poll() local 43 if (!self) { in aq_vec_poll() 46 for (i = 0U, ring = self->ring[0]; in aq_vec_poll() 47 self->tx_rings > i; ++i, ring = self->ring[i]) { in aq_vec_poll() 51 if (self->aq_hw_ops->hw_ring_tx_head_update) { in aq_vec_poll() 52 err = self->aq_hw_ops->hw_ring_tx_head_update( in aq_vec_poll() 53 self->aq_hw, in aq_vec_poll() 65 err = self->aq_hw_ops->hw_ring_rx_receive(self->aq_hw, in aq_vec_poll() 85 err = self->aq_hw_ops->hw_ring_rx_fill( in aq_vec_poll() 86 self->aq_hw, in aq_vec_poll() [all …]
|
| /kernel/linux/linux-5.10/tools/bpf/bpftool/ |
| D | json_writer.c | 29 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 …]
|
| /kernel/linux/linux-4.19/tools/bpf/bpftool/ |
| D | json_writer.c | 33 static void jsonw_indent(json_writer_t *self) in jsonw_indent() argument 36 for (i = 0; i < self->depth; ++i) in jsonw_indent() 37 fputs(" ", self->out); in jsonw_indent() 41 static void jsonw_eol(json_writer_t *self) in jsonw_eol() argument 43 if (!self->pretty) in jsonw_eol() 46 putc('\n', self->out); in jsonw_eol() 47 jsonw_indent(self); in jsonw_eol() 51 static void jsonw_eor(json_writer_t *self) in jsonw_eor() argument 53 if (self->sep != '\0') in jsonw_eor() 54 putc(self->sep, self->out); in jsonw_eor() [all …]
|
| /kernel/linux/linux-5.10/tools/testing/kunit/ |
| D | kunit_tool_test.py | 37 def test_is_subset_of(self): argument 39 self.assertTrue(kconfig0.is_subset_of(kconfig0)) 43 self.assertTrue(kconfig1.is_subset_of(kconfig1)) 44 self.assertTrue(kconfig0.is_subset_of(kconfig1)) 45 self.assertFalse(kconfig1.is_subset_of(kconfig0)) 47 def test_read_from_file(self): argument 66 self.assertEqual(kconfig.entries(), expected_kconfig.entries()) 68 def test_write_to_file(self): argument 88 self.assertEqual(actual_kconfig.entries(), 93 def assertContains(self, needle, haystack): argument [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/aquantia/atlantic/ |
| D | aq_nic.c | 39 static void aq_nic_update_ndev_stats(struct aq_nic_s *self); 41 static void aq_nic_rss_init(struct aq_nic_s *self, unsigned int num_rss_queues) in aq_nic_rss_init() argument 43 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_rss_init() 64 void aq_nic_cfg_start(struct aq_nic_s *self) in aq_nic_cfg_start() argument 66 struct aq_nic_cfg_s *cfg = &self->aq_nic_cfg; in aq_nic_cfg_start() 89 aq_nic_rss_init(self, cfg->num_rss_queues); in aq_nic_cfg_start() 98 cfg->vecs = min(cfg->vecs, self->irqvecs); in aq_nic_cfg_start() 111 cfg->irq_type = aq_pci_func_get_irq_type(self); in aq_nic_cfg_start() 124 static int aq_nic_update_link_status(struct aq_nic_s *self) in aq_nic_update_link_status() argument 126 int err = self->aq_fw_ops->update_link_status(self->aq_hw); in aq_nic_update_link_status() [all …]
|
| D | aq_vec.c | 37 struct aq_vec_s *self = container_of(napi, struct aq_vec_s, napi); in aq_vec_poll() local 45 if (!self) { in aq_vec_poll() 48 for (i = 0U, ring = self->ring[0]; in aq_vec_poll() 49 self->tx_rings > i; ++i, ring = self->ring[i]) { in aq_vec_poll() 50 if (self->aq_hw_ops->hw_ring_tx_head_update) { in aq_vec_poll() 51 err = self->aq_hw_ops->hw_ring_tx_head_update( in aq_vec_poll() 52 self->aq_hw, in aq_vec_poll() 64 err = self->aq_hw_ops->hw_ring_rx_receive(self->aq_hw, in aq_vec_poll() 84 err = self->aq_hw_ops->hw_ring_rx_fill( in aq_vec_poll() 85 self->aq_hw, in aq_vec_poll() [all …]
|
| D | aq_ring.c | 19 static struct aq_ring_s *aq_ring_alloc(struct aq_ring_s *self, in aq_ring_alloc() argument 24 self->buff_ring = in aq_ring_alloc() 25 kcalloc(self->size, sizeof(struct aq_ring_buff_s), GFP_KERNEL); in aq_ring_alloc() 27 if (!self->buff_ring) { in aq_ring_alloc() 31 self->dx_ring = dma_alloc_coherent(aq_nic_get_dev(aq_nic), in aq_ring_alloc() 32 self->size * self->dx_size, in aq_ring_alloc() 33 &self->dx_ring_pa, GFP_KERNEL); in aq_ring_alloc() 34 if (!self->dx_ring) { in aq_ring_alloc() 41 aq_ring_free(self); in aq_ring_alloc() 42 self = NULL; in aq_ring_alloc() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
| D | hw_atl_a0.c | 86 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 …]
|
| D | hw_atl_b0.c | 115 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 …]
|
| D | hw_atl_utils.c | 58 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 …]
|
| /kernel/linux/linux-4.19/tools/perf/scripts/python/ |
| D | sched-migration.py | 43 def __repr__(self): argument 51 def __init__(self, sleeper): argument 52 self.sleeper = sleeper 54 def __repr__(self): argument 55 return "%s gone to sleep" % thread_name(self.sleeper) 62 def __init__(self, wakee): argument 63 self.wakee = wakee 65 def __repr__(self): argument 66 return "%s woke up" % thread_name(self.wakee) 73 def __init__(self, child): argument [all …]
|
| D | call-graph-from-sql.py | 65 def __init__(self, db, row, parent_item): argument 66 self.db = db 67 self.row = row 68 self.parent_item = parent_item 69 self.query_done = False; 70 self.child_count = 0 71 self.child_items = [] 72 self.data = ["", "", "", "", "", "", ""] 73 self.comm_id = 0 74 self.thread_id = 0 [all …]
|
| /kernel/linux/linux-4.19/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
| D | hw_atl_a0.c | 85 static int hw_atl_a0_hw_reset(struct aq_hw_s *self) in hw_atl_a0_hw_reset() argument 89 hw_atl_glb_glb_reg_res_dis_set(self, 1U); in hw_atl_a0_hw_reset() 90 hw_atl_pci_pci_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset() 91 hw_atl_rx_rx_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset() 92 hw_atl_tx_tx_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset() 95 hw_atl_glb_soft_res_set(self, 1); in hw_atl_a0_hw_reset() 98 AQ_HW_WAIT_FOR(hw_atl_glb_soft_res_get(self) == 0, 1000U, 10U); in hw_atl_a0_hw_reset() 102 hw_atl_itr_irq_reg_res_dis_set(self, 0U); in hw_atl_a0_hw_reset() 103 hw_atl_itr_res_irq_set(self, 1U); in hw_atl_a0_hw_reset() 106 AQ_HW_WAIT_FOR(hw_atl_itr_res_irq_get(self) == 0, 1000U, 10U); in hw_atl_a0_hw_reset() [all …]
|
| D | hw_atl_b0.c | 88 static int hw_atl_b0_hw_reset(struct aq_hw_s *self) in hw_atl_b0_hw_reset() argument 92 err = hw_atl_utils_soft_reset(self); in hw_atl_b0_hw_reset() 96 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl_b0_hw_reset() 98 err = aq_hw_err_from_flags(self); in hw_atl_b0_hw_reset() 103 static int hw_atl_b0_hw_qos_set(struct aq_hw_s *self) in hw_atl_b0_hw_qos_set() argument 111 hw_atl_tps_tx_pkt_shed_desc_rate_curr_time_res_set(self, 0x0U); in hw_atl_b0_hw_qos_set() 112 hw_atl_tps_tx_pkt_shed_desc_rate_lim_set(self, 0xA); in hw_atl_b0_hw_qos_set() 115 hw_atl_tps_tx_pkt_shed_desc_vm_arb_mode_set(self, 0U); in hw_atl_b0_hw_qos_set() 118 hw_atl_tps_tx_pkt_shed_desc_tc_arb_mode_set(self, 0U); in hw_atl_b0_hw_qos_set() 119 hw_atl_tps_tx_pkt_shed_data_arb_mode_set(self, 0U); in hw_atl_b0_hw_qos_set() [all …]
|
| D | hw_atl_utils.c | 52 static int hw_atl_utils_mpi_set_state(struct aq_hw_s *self, 55 int hw_atl_utils_initfw(struct aq_hw_s *self, const struct aq_fw_ops **fw_ops) in hw_atl_utils_initfw() argument 59 err = hw_atl_utils_soft_reset(self); in hw_atl_utils_initfw() 63 hw_atl_utils_hw_chip_features_init(self, in hw_atl_utils_initfw() 64 &self->chip_features); in hw_atl_utils_initfw() 66 hw_atl_utils_get_fw_version(self, &self->fw_ver_actual); in hw_atl_utils_initfw() 69 self->fw_ver_actual) == 0) { in hw_atl_utils_initfw() 72 self->fw_ver_actual) == 0) { in hw_atl_utils_initfw() 75 self->fw_ver_actual) == 0) { in hw_atl_utils_initfw() 79 self->fw_ver_actual); in hw_atl_utils_initfw() [all …]
|
| /kernel/linux/linux-4.19/tools/kvm/kvm_stat/ |
| D | kvm_stat | 264 def tracepoint_is_child(self, field): argument 271 def __init__(self, exit_reasons): argument 272 self.sc_perf_evt_open = 298 273 self.ioctl_numbers = IOCTL_NUMBERS 274 self.exit_reason_field = 'exit_reason' 275 self.exit_reasons = exit_reasons 277 def debugfs_is_child(self, field): argument 283 def __init__(self): argument 284 self.sc_perf_evt_open = 319 285 self.ioctl_numbers = IOCTL_NUMBERS [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/tpm2/ |
| D | tpm2_tests.py | 14 def setUp(self): argument 15 self.client = tpm2.Client() 16 self.root_key = self.client.create_root_key() 18 def tearDown(self): argument 19 self.client.flush_context(self.root_key) 20 self.client.close() 22 def test_seal_with_auth(self): argument 26 blob = self.client.seal(self.root_key, data, auth, None) 27 result = self.client.unseal(self.root_key, blob, auth, None) 28 self.assertEqual(data, result) [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
| D | hw_atl2.c | 19 static int hw_atl2_act_rslvr_table_set(struct aq_hw_s *self, u8 location, 75 static u32 hw_atl2_sem_act_rslvr_get(struct aq_hw_s *self) in hw_atl2_sem_act_rslvr_get() argument 77 return hw_atl_reg_glb_cpu_sem_get(self, HW_ATL2_FW_SM_ACT_RSLVR); in hw_atl2_sem_act_rslvr_get() 80 static int hw_atl2_hw_reset(struct aq_hw_s *self) in hw_atl2_hw_reset() argument 82 struct hw_atl2_priv *priv = (struct hw_atl2_priv *)self->priv; in hw_atl2_hw_reset() 85 err = hw_atl2_utils_soft_reset(self); in hw_atl2_hw_reset() 91 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl2_hw_reset() 93 err = aq_hw_err_from_flags(self); in hw_atl2_hw_reset() 98 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 100 struct aq_nic_cfg_s *cfg = self->aq_nic_cfg; in hw_atl2_hw_queue_to_tc_map_set() [all …]
|
| /kernel/linux/linux-5.10/tools/kvm/kvm_stat/ |
| D | kvm_stat | 268 def tracepoint_is_child(self, field): argument 275 def __init__(self, exit_reasons): argument 276 self.sc_perf_evt_open = 298 277 self.ioctl_numbers = IOCTL_NUMBERS 278 self.exit_reason_field = 'exit_reason' 279 self.exit_reasons = exit_reasons 281 def debugfs_is_child(self, field): argument 287 def __init__(self): argument 288 self.sc_perf_evt_open = 319 289 self.ioctl_numbers = IOCTL_NUMBERS [all …]
|