/linux/tools/perf/scripts/python/ |
A D | exported-sql-viewer.py | 728 self.value, self.direction, self.pattern, self.query, self.last_value, self.last_pattern = x 730 …self.value, self.direction, self.pattern, self.last_value, self.last_pattern = x + (self.value, se… 1098 self.find_bar = FindBar(self, self) 1120 self.find_bar = FindBar(self, self) 2133 x = self.ToPDP(self.dp.x, self.scale.x) 2134 y = self.ToPDP(self.dp.y, self.scale.y) 2475 self.value, self.direction, self.pattern, self.last_value, self.last_pattern = (None,) * 5 2521 …self.value, self.direction, self.pattern, self.last_value, self.last_pattern = (value, direction,p… 3226 self.find_bar = FindBar(self, self, True) 4091 self.find_bar = FindBar(self, self, True) [all …]
|
A D | sched-migration.py | 41 def __repr__(self): argument 83 self.new = new 94 self.old = old 109 return self 128 return self 136 return self 150 def load(self): argument 225 self.end = t 249 if self.data[i].start <= ts and self.data[i].end >= ts: 270 ts = self[idx] [all …]
|
A D | libxed.py | 35 self.xedd = xedd_t() 36 self.xedp = addressof(self.xedd) 39 self.statep = addressof(self.state) 42 self.bufferp = addressof(self.buffer) 46 def __init__(self): argument 50 self.libxed = None 51 if not self.libxed: 54 self.xed_tables_init = self.libxed.xed_tables_init 58 self.xed_decoded_inst_zero = self.libxed.xed_decoded_inst_zero 70 self.xed_decode = self.libxed.xed_decode [all …]
|
A D | compaction-times.py | 30 self.re = re 42 return not (pid >= self.low and (self.high == 0 or pid <= self.high)) 64 return self 67 return "%s=%d %s=%d" % (self.alabel, self.aval, self.blabel, self.bval) 71 self.ns = ns 81 return self 97 self.ns = ns(secs, nsecs) - self.ns 170 return self 183 self.val += self.pending 186 self.list.append(self.pending) [all …]
|
/linux/tools/bpf/bpftool/ |
A D | json_writer.c | 39 if (!self->pretty) in jsonw_eol() 50 putc(self->sep, self->out); in jsonw_eor() 51 self->sep = ','; in jsonw_eor() 95 json_writer_t *self = malloc(sizeof(*self)); in jsonw_new() local 96 if (self) { in jsonw_new() 97 self->out = f; in jsonw_new() 102 return self; in jsonw_new() 113 free(self); in jsonw_destroy() 131 jsonw_eor(self); in jsonw_begin() 133 ++self->depth; in jsonw_begin() [all …]
|
/linux/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
A D | SchedGui.py | 32 self.sched_tracer.set_root_win(self) 39 self.panel = wx.Panel(self, size=(self.screen_width, self.screen_height)) 42 self.scroll = wx.ScrolledWindow(self.panel) 43 …self.scroll.SetScrollbars(self.scroll_scale, self.scroll_scale, self.width_virtual / self.scroll_s… 48 self.scroll_panel = wx.Panel(self.scroll, size=(self.screen_width - 15, self.screen_height / 2)) 52 self.scroll.Bind(wx.EVT_PAINT, self.on_paint) 131 self.txt = wx.StaticText(self.panel, -1, txt, (0, (self.screen_height / 2) + 50)) 140 t = self.px_to_us(x) + self.ts_start 146 self.width_virtual = self.us_to_px(self.ts_end - self.ts_start) 151 xpos = self.us_to_px(x) / self.scroll_scale [all …]
|
/linux/tools/testing/kunit/ |
A D | kunit_tool_test.py | 149 self.assertEqual( 157 self.assertEqual( 173 self.assertEqual( 183 self.assertEqual( 195 self.assertEqual( 205 self.assertEqual( 224 self.assertEqual( 234 self.assertEqual( 243 self.assertEqual( 321 def setUp(self): argument [all …]
|
/linux/drivers/net/ethernet/aquantia/atlantic/ |
A D | aq_nic.c | 222 self->aq_hw_ops->hw_irq_enable(self->aq_hw, in aq_linkstate_threaded_isr() 249 self->aq_fw_ops->update_stats(self->aq_hw); in aq_nic_service_task() 287 err = self->aq_hw_ops->hw_prepare(self->aq_hw, &self->aq_fw_ops); in aq_nic_hw_prepare() 345 for (self->aq_vecs = 0; self->aq_vecs < aq_nic_get_cfg(self)->vecs; in aq_nic_ndev_register() 347 self->aq_vec[self->aq_vecs] = in aq_nic_ndev_register() 348 aq_vec_alloc(self, self->aq_vecs, aq_nic_get_cfg(self)); in aq_nic_ndev_register() 349 if (!self->aq_vec[self->aq_vecs]) { in aq_nic_ndev_register() 539 self->ndev->name, self); in aq_nic_start() 1310 self->aq_fw_ops->deinit(self->aq_hw); in aq_nic_deinit() 1340 for (self->aq_vecs = 0; self->aq_vecs < cfg->vecs; self->aq_vecs++) { in aq_nic_realloc_vectors() [all …]
|
A D | aq_ring.c | 121 self->size * self->dx_size, in aq_ring_alloc() 149 self = aq_ring_alloc(self, aq_nic); in aq_ring_tx_alloc() 181 self = aq_ring_alloc(self, aq_nic); in aq_ring_rx_alloc() 203 memset(self, 0, sizeof(*self)); in aq_ring_hwts_rx_alloc() 312 self->sw_head = aq_ring_next_dx(self, self->sw_head); in aq_ring_tx_clean() 353 self->sw_head = aq_ring_next_dx(self, self->sw_head), in aq_ring_rx_clean() 521 (self->sw_head * self->dx_size), in aq_ring_hwts_rx_clean() 525 self->sw_head = aq_ring_next_dx(self, self->sw_head); in aq_ring_hwts_rx_clean() 542 self->sw_tail = aq_ring_next_dx(self, self->sw_tail)) { in aq_ring_rx_fill() 566 self->sw_head = aq_ring_next_dx(self, self->sw_head)) { in aq_ring_rx_deinit() [all …]
|
A D | aq_vec.c | 43 if (!self) { in aq_vec_poll() 47 self->tx_rings > i; ++i, ring = self->ring[i]) { in aq_vec_poll() 99 self->aq_hw_ops->hw_irq_enable(self->aq_hw, in aq_vec_poll() 112 self = kzalloc(sizeof(*self), GFP_KERNEL); in aq_vec_alloc() 113 if (!self) in aq_vec_alloc() 186 self->tx_rings > i; ++i, ring = self->ring[i]) { in aq_vec_init() 228 self->tx_rings > i; ++i, ring = self->ring[i]) { in aq_vec_start() 252 self->tx_rings > i; ++i, ring = self->ring[i]) { in aq_vec_stop() 253 self->aq_hw_ops->hw_ring_tx_stop(self->aq_hw, in aq_vec_stop() 256 self->aq_hw_ops->hw_ring_rx_stop(self->aq_hw, in aq_vec_stop() [all …]
|
/linux/tools/kvm/kvm_stat/ |
A D | kvm_stat | 357 super(self.__class__, self).__init__() 359 self.size = ctypes.sizeof(self) 405 self.syscall = self.libc.syscall 536 self.filters = self._get_filters() 705 self.fields = self._fields 873 self.providers = self._get_providers(options) 1137 self.screen.addstr(0, 0, self._headline, curses.A_BOLD) 1195 if not self._is_running_guest(self.stats.pid_filter): 1198 pids = self.get_pid_from_gname(self._gname) 1211 stats = self.stats.get(self._display_guests) [all …]
|
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
A D | hw_atl_b0.c | 123 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl_b0_hw_reset() 195 hw_atl_b0_set_fc(self, self->aq_nic_cfg->fc.req, tc); in hw_atl_b0_hw_qos_set() 464 aq_hw_write_reg(self, 0x00007040U, ATL_HW_IS_CHIP_FEATURE(self, TPO2) ? in hw_atl_b0_hw_init_tx_path() 524 aq_hw_write_reg(self, 0x00005040U, ATL_HW_IS_CHIP_FEATURE(self, RPF2) ? in hw_atl_b0_hw_init_rx_path() 579 self->aq_fw_ops->set_link_speed(self, aq_nic_cfg->link_speed_msk); in hw_atl_b0_hw_init() 580 self->aq_fw_ops->set_state(self, MPI_INIT); in hw_atl_b0_hw_init() 599 self->aq_fw_ops->update_stats(self); in hw_atl_b0_hw_init() 1296 self->aq_fw_ops->adjust_ptp(self, self->ptp_clk_offset); in hw_atl_b0_adj_sys_clock() 1333 return self->aq_fw_ops->send_fw_request(self, &fwreq, size); in hw_atl_b0_adj_clock_freq() 1351 return self->aq_fw_ops->send_fw_request(self, &fwreq, size); in hw_atl_b0_gpio_pulse() [all …]
|
A D | hw_atl_a0.c | 101 self, val, val == 0, in hw_atl_a0_hw_reset() 111 self, val, val == 0, in hw_atl_a0_hw_reset() 116 self->aq_fw_ops->set_state(self, MPI_RESET); in hw_atl_a0_hw_reset() 199 self, val, val == 0, in hw_atl_a0_hw_rss_hash_set() 235 self, val, val == 0, in hw_atl_a0_hw_rss_set() 367 self->aq_fw_ops->set_link_speed(self, aq_nic_cfg->link_speed_msk); in hw_atl_a0_hw_init() 368 self->aq_fw_ops->set_state(self, MPI_INIT); in hw_atl_a0_hw_init() 373 hw_atl_a0_hw_qos_set(self); in hw_atl_a0_hw_init() 379 self->aq_fw_ops->update_stats(self); in hw_atl_a0_hw_init() 740 atomic_inc(&self->dpc); in hw_atl_a0_hw_irq_disable() [all …]
|
A D | hw_atl_utils.c | 74 self->fw_ver_actual = hw_atl_utils_get_fw_version(self); in hw_atl_utils_initfw() 90 err = self->aq_fw_ops->init(self); in hw_atl_utils_initfw() 271 self, val, in hw_atl_utils_soft_reset() 338 self, val, in hw_atl_utils_fw_downld_dwords() 379 self, val, in hw_atl_utils_write_b1_mbox() 405 self, val, in hw_atl_utils_write_b0_mbox() 446 return hw_atl_utils_fw_upload_dwords(self, self->rpc_addr, p, in hw_atl_write_fwcfg_dwords() 492 self, self->mbox_addr, in hw_atl_utils_init_ucp() 524 err = hw_atl_write_fwcfg_dwords(self, (u32 *)(void *)&self->rpc, in hw_atl_utils_fw_rpc_call() 551 self, fw.val, in hw_atl_utils_fw_rpc_wait() [all …]
|
A D | hw_atl_utils_fw2x.c | 101 self, self->mbox_addr, in aq_fw2x_init() 102 self->mbox_addr != 0U, in aq_fw2x_init() 106 self, self->rpc_addr, in aq_fw2x_init() 107 self->rpc_addr != 0U, in aq_fw2x_init() 110 err = aq_fw2x_settings_get(self, &self->settings_addr); in aq_fw2x_init() 232 self->aq_nic_cfg->fc.req); in aq_fw2x_set_state() 314 self, stats_val, in aq_fw2x_update_stats() 408 if (self->aq_nic_cfg->wol) in aq_fw2x_set_power() 409 err = aq_fw2x_set_wol(self, mac); in aq_fw2x_set_power() 530 self->aq_nic_cfg->fc.req); in aq_fw2x_set_flow_control() [all …]
|
/linux/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
A D | hw_atl2.c | 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() 142 aq_hw_write_reg(self, in hw_atl2_hw_queue_to_tc_map_set() 151 aq_hw_write_reg(self, in hw_atl2_hw_queue_to_tc_map_set() 200 hw_atl_b0_set_fc(self, self->aq_nic_cfg->fc.req, tc); in hw_atl2_hw_qos_set() 471 self, val, val == 1, in hw_atl2_act_rslvr_table_set() 561 self->aq_fw_ops->set_link_speed(self, aq_nic_cfg->link_speed_msk); in hw_atl2_hw_init() 562 self->aq_fw_ops->set_state(self, MPI_INIT); in hw_atl2_hw_init() 564 hw_atl2_hw_qos_set(self); in hw_atl2_hw_init() 572 self->aq_fw_ops->update_stats(self); in hw_atl2_hw_init() [all …]
|
/linux/scripts/ |
A D | bpf_doc.py | 38 self.proto = proto 39 self.desc = desc 40 self.ret = ret 87 self.line = '' 88 self.helpers = [] 112 self.line = self.reader.readline() 127 self.line = self.reader.readline() 141 self.line = self.reader.readline() 164 self.line = self.reader.readline() 184 self.line = self.reader.readline() [all …]
|
/linux/scripts/kconfig/tests/ |
A D | conftest.py | 30 def __init__(self, request): argument 86 self.retcode = ps.returncode 97 self.config = None 109 print(self.stdout) 112 print(self.stderr) 114 if self.config is not None: 116 print(self.config) 118 return self.retcode 148 def defconfig(self, defconfig): argument 235 return self._read_and_compare( [all …]
|
/linux/tools/testing/selftests/tpm2/ |
A D | tpm2_tests.py | 14 def setUp(self): argument 16 self.root_key = self.client.create_root_key() 18 def tearDown(self): argument 19 self.client.flush_context(self.root_key) 26 blob = self.client.seal(self.root_key, data, auth, None) 27 result = self.client.unseal(self.root_key, blob, auth, None) 45 blob = self.client.seal(self.root_key, data, auth, policy_dig) 65 blob = self.client.seal(self.root_key, data, auth, None) 67 result = self.client.unseal(self.root_key, blob, 89 blob = self.client.seal(self.root_key, data, auth, policy_dig) [all …]
|
A D | tpm2.py | 242 return '%s: cc=0x%08x, rc=0x%08x' % (self.name, self.cc, self.rc) 244 return '%s: rc=0x%08x' % (self.name, self.rc) 258 fmt = '>I H%us B H%us' % (len(self.nonce), len(self.hmac)) 260 self.nonce, self.session_attributes, len(self.hmac), 264 fmt = '>I H%us B H%us' % (len(self.nonce), len(self.hmac)) 276 fmt = '>H%us H%us' % (len(self.user_auth), len(self.data)) 278 len(self.data), self.data) 281 fmt = '>H%us H%us' % (len(self.user_auth), len(self.data)) 297 (len(self.auth_policy), len(self.parameters), len(self.unique)) 380 self.tpm_poll.register(self.tpm, select.POLLIN) [all …]
|
/linux/tools/testing/selftests/tc-testing/plugin-lib/ |
A D | nsPlugin.py | 11 def __init__(self): argument 19 if self.args.namespace: 20 self._ns_create() 22 self._ports_create() 27 if self.args.verbose: 31 self._ns_destroy() 37 self.argparser_group = self.argparser.add_argument_group( 43 return self.argparser 53 if self.args.verbose: 93 def _ns_create(self): argument [all …]
|
/linux/tools/perf/tests/ |
A D | attr.py | 36 def getMsg(self): argument 37 return '\'%s\' - %s' % (self.test.path, self.msg) 44 return '[%s] \'%s\'' % (self.arch, self.test.path) 115 if 'optional' in self and self['optional'] == '1': 167 self.load_events(path, self.expect) 229 self.perf, self.command, tempdir, self.args) 311 self.load_events(f, self.result); 314 self.resolve_groups(self.expect); 315 self.resolve_groups(self.result); 318 self.compare(self.expect, self.result) [all …]
|
/linux/tools/testing/selftests/tc-testing/ |
A D | TdcResults.py | 13 self.test_id = test_id 16 self.failmsg = "" 17 self.errormsg = "" 18 self.steps = [] 27 def get_result(self): argument 28 return self.result 35 self.errormsg = '{}\n{}'.format(self.errormsg, errormsg) 37 def get_errormsg(self): argument 45 self.failmsg = '{}\n{}'.format(self.failmsg, failmsg) 47 def get_failmsg(self): argument [all …]
|
/linux/tools/testing/selftests/bpf/ |
A D | test_bpftool_synctypes.py | 20 def __init__(self, reader): argument 21 self.reader = reader 64 def search_block(self): argument 70 def parse(self): argument 115 def __init__(self): argument 116 self.reader = open(self.filename, 'r') 118 def close(self): argument 122 self.reader.close() 124 def reset_read(self): argument 321 def __init__(self): argument [all …]
|
/linux/tools/testing/selftests/pidfd/ |
A D | pidfd_setns_test.c | 131 self->nsfds[i] = -EBADF; in FIXTURE_SETUP() 141 self->pid = getpid(); in FIXTURE_SETUP() 153 self->pidfd = sys_pidfd_open(self->pid, 0); in FIXTURE_SETUP() 159 self->child_pid_exited = create_child(&self->child_pidfd_exited, in FIXTURE_SETUP() 168 self->pidfd = sys_pidfd_open(self->pid, 0); in FIXTURE_SETUP() 177 self->child_pid1 = create_child(&self->child_pidfd1, in FIXTURE_SETUP() 206 self->child_pid2 = create_child(&self->child_pidfd2, in FIXTURE_SETUP() 286 close(self->nsfds[i]); in FIXTURE_TEARDOWN() 409 info->name, self->child_pid1, self->child_pidfd1); in TEST_F() 445 info->name, self->child_pid1, self->child_nsfds1[i]); in TEST_F() [all …]
|