Home
last modified time | relevance | path

Searched +full:self +full:- (Results 1 – 25 of 1093) sorted by relevance

12345678910>>...44

/kernel/linux/linux-6.6/tools/perf/scripts/python/
Dexported-sql-viewer.py2 # SPDX-License-Identifier: GPL-2.0
3 # exported-sql-viewer.py: view data from sql database
4 # Copyright (c) 2014-2018, Intel Corporation.
7 # export-to-sqlite.py or the export-to-postgresql.py script. Refer to those
11 # call-graph can be displayed for the pt_example database like this:
13 # python tools/perf/scripts/python/exported-sql-viewer.py pt_example
18 # python tools/perf/scripts/python/exported-sql-viewer.py "hostname=myhost username=myuser password…
20 # The result is a GUI window with a tree representing a context-sensitive
21 # call-graph. Expanding a couple of levels of the tree and adjusting column
26 # v- ls
[all …]
/kernel/linux/linux-6.6/scripts/gdb/linux/
Dmm.py1 # SPDX-License-Identifier: GPL-2.0
6 # Kuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>
14 return ((n) + (d) - 1) // (d)
24 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
[all …]
Dpgtable.py1 # SPDX-License-Identifier: GPL-2.0-only
44 return (bit_start, bit_end), data >> bit_start & ((1 << (1 + bit_end - bit_start)) - 1)
66 def __init__(self, cr3, page_levels): argument
67 self.cr3 = cr3
68 self.page_levels = page_levels
69 self.page_level_write_through = is_bit_defined_tupled(cr3, 3)
70 self.page_level_cache_disabled = is_bit_defined_tupled(cr3, 4)
71 self.next_entry_physical_address = cr3 & PHYSICAL_ADDRESS_MASK & page_mask()
73 def next_entry(self, va): argument
74 next_level = self.page_levels
[all …]
/kernel/linux/linux-5.10/tools/perf/scripts/python/
Dexported-sql-viewer.py2 # SPDX-License-Identifier: GPL-2.0
3 # exported-sql-viewer.py: view data from sql database
4 # Copyright (c) 2014-2018, Intel Corporation.
7 # export-to-sqlite.py or the export-to-postgresql.py script. Refer to those
11 # call-graph can be displayed for the pt_example database like this:
13 # python tools/perf/scripts/python/exported-sql-viewer.py pt_example
18 # python tools/perf/scripts/python/exported-sql-viewer.py "hostname=myhost username=myuser password…
20 # The result is a GUI window with a tree representing a context-sensitive
21 # call-graph. Expanding a couple of levels of the tree and adjusting column
26 # v- ls
[all …]
/kernel/linux/linux-6.6/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DSchedGui.py1 # SchedGui.py - Python extension for perf script, basic GUI code for
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)
[all …]
/kernel/linux/linux-5.10/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
DSchedGui.py1 # SchedGui.py - Python extension for perf script, basic GUI code for
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)
[all …]
/kernel/uniproton/
Dbuild.py2 # coding=utf-8
6 # Copyright (c) 2021-2023 Huawei Device Co., Ltd.
11 # http://www.apache.org/licenses/LICENSE-2.0
39 def get_config(self, cpu_type, cpu_plat): argument
40 self.compile_mode = get_compile_mode()
41self.lib_type, self.plam_type, self.hcc_path, self.kconf_dir, self.system, self.core = get_cpu_inf…
42 …if not self.compile_mode and self.lib_type and self.plam_type and self.hcc_path and self.kconf_dir:
45self.config_file_path = '%s/build/uniproton_config/config_%s'%(self.home_path, self.kconf_dir)
47 self.objcopy_path = self.hcc_path
49 def setCmdEnv(self): argument
[all …]
/kernel/linux/linux-6.6/tools/crypto/ccp/
Dtest_dbc.py2 # SPDX-License-Identifier: GPL-2.0
25 def system_is_secured() -> bool:
34 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:
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/
Daq_nic.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2014-2019 aQuantia Corporation
5 * Copyright (C) 2019-2020 Marvell International Ltd.
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()
58 rss_params = &cfg->aq_rss; in aq_nic_rss_init()
60 rss_params->hash_secret_key_size = sizeof(rss_key); in aq_nic_rss_init()
61 memcpy(rss_params->hash_secret_key, rss_key, sizeof(rss_key)); in aq_nic_rss_init()
62 rss_params->indirection_table_size = AQ_CFG_RSS_INDIRECTION_TABLE_MAX; in aq_nic_rss_init()
[all …]
Daq_ring.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2014-2019 aQuantia Corporation
5 * Copyright (C) 2019-2020 Marvell International Ltd.
21 unsigned int len = PAGE_SIZE << rxpage->order; in aq_free_rxpage()
23 dma_unmap_page(dev, rxpage->daddr, len, DMA_FROM_DEVICE); in aq_free_rxpage()
26 __free_pages(rxpage->page, rxpage->order); in aq_free_rxpage()
27 rxpage->page = NULL; in aq_free_rxpage()
34 int ret = -ENOMEM; in aq_get_rxpage()
47 rxpage->page = page; in aq_get_rxpage()
48 rxpage->daddr = daddr; in aq_get_rxpage()
[all …]
/kernel/linux/linux-6.6/tools/net/ynl/lib/
Dnlspec.py1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
31 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
[all …]
Dynl.py1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
80 def __init__(self, nl_msg): argument
81 self.nl_msg = nl_msg
83 def __str__(self): argument
84 return f"Netlink error: {os.strerror(-self.nl_msg.error)}\n{self.nl_msg}"
100 def __init__(self, raw, offset): argument
101 self._len, self._type = struct.unpack("HH", raw[offset:offset + 4])
102 self.type = self._type & ~Netlink.NLA_TYPE_MASK
103 self.payload_len = self._len
104 self.full_len = (self.payload_len + 3) & ~3
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
Djson_writer.c1 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
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()
[all …]
/kernel/linux/linux-5.10/tools/bpf/bpftool/
Djson_writer.c1 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
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()
[all …]
/kernel/linux/linux-6.6/tools/bpf/bpftool/
Djson_writer.c1 // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
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()
[all …]
/kernel/linux/linux-6.6/scripts/
Drust_is_available_test.py2 # SPDX-License-Identifier: GPL-2.0
40 if "-E" in " ".join(sys.argv):
50 if "--print sysroot" in " ".join(sys.argv):
86 …cls.rustc_default_version = subprocess.check_output(("scripts/min-tool-version.sh", "rustc")).deco…
87 …cls.bindgen_default_version = subprocess.check_output(("scripts/min-tool-version.sh", "bindgen")).…
88 …cls.llvm_default_version = subprocess.check_output(("scripts/min-tool-version.sh", "llvm")).decode…
89 …cls.rust_default_sysroot = subprocess.check_output(("rustc", "--print", "sysroot")).decode().strip…
92 …gen_libclang.h:2:9: warning: clang version {cls.llvm_default_version} [-W#pragma-messages], err: f…
98 def run_script(self, expected, override_env): argument
100 "RUSTC": self.default_rustc,
[all …]
/kernel/linux/linux-6.6/tools/perf/pmu-events/
Dmetric.py1 # SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
13 def ToPerfJson(self) -> str: argument
17 def ToPython(self) -> str: argument
21 def Simplify(self): argument
22 """Returns a simplified version of self."""
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
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/
Daq_nic.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2014-2019 aQuantia Corporation
5 * Copyright (C) 2019-2020 Marvell International Ltd.
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()
58 rss_params = &cfg->aq_rss; in aq_nic_rss_init()
60 rss_params->hash_secret_key_size = sizeof(rss_key); in aq_nic_rss_init()
61 memcpy(rss_params->hash_secret_key, rss_key, sizeof(rss_key)); in aq_nic_rss_init()
62 rss_params->indirection_table_size = AQ_CFG_RSS_INDIRECTION_TABLE_MAX; in aq_nic_rss_init()
[all …]
/kernel/linux/linux-6.6/tools/testing/kunit/
Dkunit_tool_test.py2 # SPDX-License-Identifier: GPL-2.0
43 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)
[all …]
/kernel/linux/linux-5.10/tools/testing/kunit/
Dkunit_tool_test.py2 # SPDX-License-Identifier: GPL-2.0
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(),
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_a0.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2014-2019 aQuantia Corporation
5 * Copyright (C) 2019-2020 Marvell International Ltd.
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()
[all …]
Dhw_atl_b0.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2014-2019 aQuantia Corporation
5 * Copyright (C) 2019-2020 Marvell International Ltd.
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
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/
Dhw_atl_a0.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2014-2019 aQuantia Corporation
5 * Copyright (C) 2019-2020 Marvell International Ltd.
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()
[all …]
Dhw_atl_b0.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2014-2019 aQuantia Corporation
5 * Copyright (C) 2019-2020 Marvell International Ltd.
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
[all …]
/kernel/linux/linux-6.6/tools/verification/dot2/
Ddot2c.py2 # SPDX-License-Identifier: GPL-2.0-only
4 # Copyright (C) 2019-2022 Red Hat, Inc. Daniel Bristot de Oliveira <bristot@kernel.org>
25 def __init__(self, file_path): argument
27 self.line_length = 100
29 def __buff_to_string(self, buff): argument
36 return string[:-1]
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:
[all …]

12345678910>>...44