Home
last modified time | relevance | path

Searched refs:self (Results 2551 - 2575 of 6519) sorted by relevance

1...<<101102103104105106107108109110>>...261

/kernel/linux/linux-5.10/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
H A DCore.py103 def __init__(self, common_cpu, common_secs, common_nsecs,
105 self.cpu = common_cpu
106 self.secs = common_secs
107 self.nsecs = common_nsecs
108 self.pid = common_pid
109 self.comm = common_comm
110 self.callchain = common_callchain
112 def ts(self):
113 return (self.secs * (10 ** 9)) + self
[all...]
/kernel/linux/linux-6.6/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
H A DCore.py103 def __init__(self, common_cpu, common_secs, common_nsecs,
105 self.cpu = common_cpu
106 self.secs = common_secs
107 self.nsecs = common_nsecs
108 self.pid = common_pid
109 self.comm = common_comm
110 self.callchain = common_callchain
112 def ts(self):
113 return (self.secs * (10 ** 9)) + self
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/af_unix/
H A Dunix_connect.c104 self->family = AF_UNIX; in FIXTURE_SETUP()
109 close(self->server); in FIXTURE_TEARDOWN()
110 close(self->client); in FIXTURE_TEARDOWN()
120 .sun_family = self->family, in TEST_F()
124 self->server = socket(self->family, variant->type, 0); in TEST_F()
125 ASSERT_NE(-1, self->server); in TEST_F()
130 err = bind(self->server, (struct sockaddr *)&addr, addrlen); in TEST_F()
134 err = listen(self->server, 32); in TEST_F()
141 self in TEST_F()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_bpftool.py74 def test_feature_dev_json(self, iface):
86 self.assertCountEqual(res.keys(), expected_keys)
91 self.assertNotIn(unexpected_helper, helpers)
93 def test_feature_kernel(self):
111 self.assertCountEqual(tc.keys(), expected_keys)
116 self.assertNotIn(unexpected_helper, helpers)
118 def test_feature_kernel_full(self):
139 self.assertTrue(found_helpers)
141 def test_feature_kernel_full_vs_not_full(self):
155 self
[all...]
/third_party/musl/src/thread/
H A Dpthread_mutex_trylock.c7 pthread_t self = __pthread_self(); in __pthread_mutex_trylock_owner() local
8 int tid = self->tid; in __pthread_mutex_trylock_owner()
40 if (!self->robust_list.off) { in __pthread_mutex_trylock_owner()
41 self->robust_list.off = (char*)&m->_m_lock-(char *)&m->_m_next; in __pthread_mutex_trylock_owner()
43 __syscall(SYS_set_robust_list, &self->robust_list, 3*sizeof(long)); in __pthread_mutex_trylock_owner()
47 self->robust_list.pending = &m->_m_next; in __pthread_mutex_trylock_owner()
52 self->robust_list.pending = 0; in __pthread_mutex_trylock_owner()
64 self->robust_list.pending = 0; in __pthread_mutex_trylock_owner()
69 volatile void *next = self->robust_list.head; in __pthread_mutex_trylock_owner()
71 m->_m_prev = &self in __pthread_mutex_trylock_owner()
[all...]
/third_party/python/Tools/demo/
H A Dmarkov.py8 def __init__(self, histsize, choice):
9 self.histsize = histsize
10 self.choice = choice
11 self.trans = {}
13 def add(self, state, next):
14 self.trans.setdefault(state, []).append(next)
16 def put(self, seq):
17 n = self.histsize
18 add = self.add
24 def get(self)
[all...]
/third_party/python/Lib/distutils/tests/
H A Dtest_msvc9compiler.py106 def test_no_compiler(self):
118 self.assertRaises(DistutilsPlatformError, query_vcvarsall,
123 def test_reg_class(self):
125 self.assertRaises(KeyError, Reg.get_value, 'xxx', 'xxx')
131 self.assertIn(v, ('0', '1', '2'))
136 self.assertEqual(keys, None)
139 self.assertIn('Desktop', keys)
141 def test_remove_visual_c_ref(self):
143 tempdir = self.mkdtemp()
163 self
[all...]
/third_party/python/Lib/test/
H A Dtest_ioctl.py30 def test_ioctl(self):
37 self.assertIn(rpgrp, ids)
39 def _check_ioctl_mutate_len(self, nbytes=None):
48 self.assertEqual(len(buf) * intsize, nbytes) # sanity check
54 self.assertEqual(r, 0)
55 self.assertIn(rpgrp, ids)
57 def test_ioctl_mutate(self):
58 self._check_ioctl_mutate_len()
60 def test_ioctl_mutate_1024(self):
63 self
[all...]
/kernel/linux/linux-5.10/net/tipc/
H A Dmonitor.c49 * @ack_gen: most recent generation of self's domain acked by peer
90 struct tipc_peer *self; member
169 return mon->self; in get_self()
193 /* Do nothing if self or peer already see member as down */ in mon_identify_lost_members()
242 struct tipc_peer *self = mon->self; in mon_update_local_domain() local
244 struct tipc_mon_domain *dom = self->domain; in mon_update_local_domain()
245 struct tipc_peer *peer = self; in mon_update_local_domain()
252 self->applied = member_cnt; in mon_update_local_domain()
273 mon_apply_domain(mon, self); in mon_update_local_domain()
297 struct tipc_peer *self = mon->self; mon_assign_roles() local
325 struct tipc_peer *self; tipc_mon_remove_peer() local
363 struct tipc_peer *self = mon->self; tipc_mon_add_peer() local
395 struct tipc_peer *self = get_self(net, bearer_id); tipc_mon_peer_up() local
414 struct tipc_peer *self; tipc_mon_peer_down() local
603 struct tipc_peer *self; mon_timeout() local
620 struct tipc_peer *self; tipc_mon_create() local
655 struct tipc_peer *self; tipc_mon_delete() local
[all...]
/kernel/linux/linux-6.6/net/tipc/
H A Dmonitor.c49 * @ack_gen: most recent generation of self's domain acked by peer
90 struct tipc_peer *self; member
199 return mon->self; in get_self()
223 /* Do nothing if self or peer already see member as down */ in mon_identify_lost_members()
272 struct tipc_peer *self = mon->self; in mon_update_local_domain() local
274 struct tipc_mon_domain *dom = self->domain; in mon_update_local_domain()
275 struct tipc_peer *peer = self; in mon_update_local_domain()
282 self->applied = member_cnt; in mon_update_local_domain()
303 mon_apply_domain(mon, self); in mon_update_local_domain()
327 struct tipc_peer *self = mon->self; mon_assign_roles() local
355 struct tipc_peer *self; tipc_mon_remove_peer() local
393 struct tipc_peer *self = mon->self; tipc_mon_add_peer() local
425 struct tipc_peer *self = get_self(net, bearer_id); tipc_mon_peer_up() local
444 struct tipc_peer *self; tipc_mon_peer_down() local
634 struct tipc_peer *self; mon_timeout() local
651 struct tipc_peer *self; tipc_mon_create() local
686 struct tipc_peer *self; tipc_mon_delete() local
[all...]
/third_party/node/lib/
H A Dzlib.js185 const self = this[owner_symbol];
192 self.destroy(error);
193 self[kError] = error;
435 function processChunkSync(self, chunk, flushFlag) {
437 let availOutBefore = self._chunkSize - self._outOffset;
445 const state = self._writeState;
446 const handle = self._handle;
447 let buffer = self._outBuffer;
448 let offset = self
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c1060 memset(&self->prog, 0, sizeof(self->prog)); in FIXTURE_SETUP()
1061 self->prog.filter = malloc(sizeof(filter)); in FIXTURE_SETUP()
1062 ASSERT_NE(NULL, self->prog.filter); in FIXTURE_SETUP()
1063 memcpy(self->prog.filter, filter, sizeof(filter)); in FIXTURE_SETUP()
1064 self->prog.len = (unsigned short)ARRAY_SIZE(filter); in FIXTURE_SETUP()
1069 if (self->prog.filter) in FIXTURE_TEARDOWN()
1070 free(self->prog.filter); in FIXTURE_TEARDOWN()
1080 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self->prog); in TEST_F_SIGNAL()
1095 ret = prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &self in TEST_F_SIGNAL()
3835 pid_t self; TEST() local
[all...]
/third_party/mesa3d/src/mapi/glapi/gen/
H A Dgl_marshal.py71 def __init__(self):
72 super(PrintCode, self).__init__()
74 self.name = 'gl_marshal.py'
75 self.license = license.bsd_license_template % (
78 def printRealHeader(self):
81 def printRealFooter(self):
84 def print_sync_call(self, func, unmarshal = 0):
95 def print_sync_body(self, func):
105 self.print_sync_call(func)
110 def print_async_dispatch(self, fun
[all...]
/third_party/node/deps/npm/node_modules/yallist/
H A Dyallist.js8 var self = this
9 if (!(self instanceof Yallist)) {
10 self = new Yallist()
13 self.tail = null
14 self.head = null
15 self.length = 0
19 self.push(item)
23 self.push(arguments[i])
27 return self
367 function insert (self, nod
[all...]
/third_party/vk-gl-cts/external/openglcts/scripts/
H A Dmustpass.py45 def __init__ (self, name, path, incpath, devicepath, copyright = None):
46 self.name = name
47 self.path = path
48 self.incpath = incpath
49 self.devicepath = devicepath
50 self.copyright = copyright
53 def __init__ (self, name, filters, glconfig = None, rotation = "unspecified", surfacetype = None, surfacewidth = None, surfaceheight = None, baseseed = None, fboconfig = None, required = False, runtime = None, os = "any", skip = "none"):
54 self.name = name
55 self.glconfig = glconfig
56 self
[all...]
/third_party/node/tools/gyp/pylib/gyp/generator/
H A Dxcode.py113 def __init__(self, gyp_path, path, build_file_dict):
114 self.gyp_path = gyp_path
115 self.path = path
116 self.project = gyp.xcodeproj_file.PBXProject(path=path)
118 os.path.dirname(os.path.abspath(self.gyp_path)),
121 self.project.SetProperty("projectDirPath", projectDirPath)
122 self.project_file = gyp.xcodeproj_file.XCProjectFile(
123 {"rootObject": self.project}
125 self.build_file_dict = build_file_dict
127 # TODO(mark): add destructor that cleans up self
[all...]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/
H A Dxcode.py113 def __init__(self, gyp_path, path, build_file_dict):
114 self.gyp_path = gyp_path
115 self.path = path
116 self.project = gyp.xcodeproj_file.PBXProject(path=path)
118 os.path.dirname(os.path.abspath(self.gyp_path)),
121 self.project.SetProperty("projectDirPath", projectDirPath)
122 self.project_file = gyp.xcodeproj_file.XCProjectFile(
123 {"rootObject": self.project}
125 self.build_file_dict = build_file_dict
127 # TODO(mark): add destructor that cleans up self
[all...]
/third_party/python/Modules/clinic/
H A Doverlapped.c.h380 "cancel($self, /)\n"
389 _overlapped_Overlapped_cancel_impl(OverlappedObject *self);
392 _overlapped_Overlapped_cancel(OverlappedObject *self, PyObject *Py_UNUSED(ignored)) in _overlapped_Overlapped_cancel() argument
394 return _overlapped_Overlapped_cancel_impl(self); in _overlapped_Overlapped_cancel()
398 "getresult($self, wait=False, /)\n"
410 _overlapped_Overlapped_getresult_impl(OverlappedObject *self, BOOL wait);
413 _overlapped_Overlapped_getresult(OverlappedObject *self, PyObject *const *args, Py_ssize_t nargs) in _overlapped_Overlapped_getresult() argument
422 return_value = _overlapped_Overlapped_getresult_impl(self, wait); in _overlapped_Overlapped_getresult()
429 "ReadFile($self, handle, size, /)\n"
438 _overlapped_Overlapped_ReadFile_impl(OverlappedObject *self, HANDL
442 _overlapped_Overlapped_ReadFile(OverlappedObject *self, PyObject *const *args, Py_ssize_t nargs) _overlapped_Overlapped_ReadFile() argument
472 _overlapped_Overlapped_ReadFileInto(OverlappedObject *self, PyObject *const *args, Py_ssize_t nargs) _overlapped_Overlapped_ReadFileInto() argument
507 _overlapped_Overlapped_WSARecv(OverlappedObject *self, PyObject *const *args, Py_ssize_t nargs) _overlapped_Overlapped_WSARecv() argument
539 _overlapped_Overlapped_WSARecvInto(OverlappedObject *self, PyObject *const *args, Py_ssize_t nargs) _overlapped_Overlapped_WSARecvInto() argument
575 _overlapped_Overlapped_WriteFile(OverlappedObject *self, PyObject *const *args, Py_ssize_t nargs) _overlapped_Overlapped_WriteFile() argument
610 _overlapped_Overlapped_WSASend(OverlappedObject *self, PyObject *const *args, Py_ssize_t nargs) _overlapped_Overlapped_WSASend() argument
647 _overlapped_Overlapped_AcceptEx(OverlappedObject *self, PyObject *const *args, Py_ssize_t nargs) _overlapped_Overlapped_AcceptEx() argument
680 _overlapped_Overlapped_ConnectEx(OverlappedObject *self, PyObject *const *args, Py_ssize_t nargs) _overlapped_Overlapped_ConnectEx() argument
709 _overlapped_Overlapped_DisconnectEx(OverlappedObject *self, PyObject *const *args, Py_ssize_t nargs) _overlapped_Overlapped_DisconnectEx() argument
743 _overlapped_Overlapped_TransmitFile(OverlappedObject *self, PyObject *const *args, Py_ssize_t nargs) _overlapped_Overlapped_TransmitFile() argument
778 _overlapped_Overlapped_ConnectNamedPipe(OverlappedObject *self, PyObject *arg) _overlapped_Overlapped_ConnectNamedPipe() argument
806 _overlapped_Overlapped_ConnectPipe(OverlappedObject *self, PyObject *arg) _overlapped_Overlapped_ConnectPipe() argument
879 _overlapped_Overlapped_WSASendTo(OverlappedObject *self, PyObject *const *args, Py_ssize_t nargs) _overlapped_Overlapped_WSASendTo() argument
917 _overlapped_Overlapped_WSARecvFrom(OverlappedObject *self, PyObject *const *args, Py_ssize_t nargs) _overlapped_Overlapped_WSARecvFrom() argument
949 _overlapped_Overlapped_WSARecvFromInto(OverlappedObject *self, PyObject *const *args, Py_ssize_t nargs) _overlapped_Overlapped_WSARecvFromInto() argument
[all...]
/third_party/protobuf/python/google/protobuf/pyext/
H A Drepeated_scalar_container.cc65 RepeatedScalarContainer* self, PyObject* list) { in InternalAssignRepeatedField()
66 Message* message = self->parent->message; in InternalAssignRepeatedField()
67 message->GetReflection()->ClearField(message, self->parent_field_descriptor); in InternalAssignRepeatedField()
70 if (ScopedPyObjectPtr(Append(self, value)) == NULL) { in InternalAssignRepeatedField()
78 RepeatedScalarContainer* self = in Len() local
80 Message* message = self->parent->message; in Len()
82 self->parent_field_descriptor); in Len()
86 RepeatedScalarContainer* self = in AssignItem() local
89 cmessage::AssureWritable(self->parent); in AssignItem()
90 Message* message = self in AssignItem()
64 InternalAssignRepeatedField( RepeatedScalarContainer* self, PyObject* list) InternalAssignRepeatedField() argument
192 RepeatedScalarContainer* self = Item() local
343 Append(RepeatedScalarContainer* self, PyObject* item) Subscript() argument
423 AppendMethod(PyObject* self, PyObject* item) Subscript() argument
428 RepeatedScalarContainer* self = Subscript() local
491 Extend(RepeatedScalarContainer* self, PyObject* value) Subscript() argument
520 RepeatedScalarContainer* self = Subscript() local
559 ExtendMethod(PyObject* self, PyObject* value) Subscript() argument
676 RepeatedScalarContainer* self = reinterpret_cast<RepeatedScalarContainer*>( Subscript() local
[all...]
/third_party/musl/porting/linux/user/src/process/
H A Dvfork.c20 pthread_t self = __pthread_self(); in vfork() local
21 pid_t parent_pid = self->pid; in vfork()
22 self->pid = 0; in vfork()
23 int parent_by_vfork = self->by_vfork; in vfork()
24 self->by_vfork = 1; in vfork()
27 self->pid = parent_pid; in vfork()
28 self->by_vfork = parent_by_vfork; in vfork()
30 self->proc_tid = -1; in vfork()
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_rpc.py10 def test_pickle_unpickle(self):
13 self.assertIs(func, rpc.unpickle_code)
14 self.assertIn(b'test_rpc.py', cbytes)
16 self.assertEqual(code.co_names, ('a', 'b', 'c'))
18 def test_code_pickler(self):
19 self.assertIn(type((lambda:None).__code__),
22 def test_dumps(self):
25 self.assertIn(b'test_rpc.py', rpc.dumps(f.__code__))
H A Dtest_mainmenu.py11 def test_menudefs(self):
15 self.assertEqual(actual, expect)
17 def test_default_keydefs(self):
18 self.assertGreaterEqual(len(mainmenu.default_keydefs), 50)
20 def test_tcl_indexes(self):
29 with self.subTest(menu=menu, pattern=pattern):
34 self.assertTrue(0, f"{menu} not in menudefs")
35 self.assertTrue(any(re.search(pattern, menuitem[0])
/third_party/python/Lib/lib2to3/tests/
H A Dtest_all_fixers.py21 def setUp(self):
22 self.refactor = support.get_refactorer()
24 def refactor_file(self, filepath):
32 self.refactor.refactor_file(filepath)
34 self.refactor.refactor_file(filepath)
36 def test_all_project_files(self):
38 with self.subTest(filepath=filepath):
39 self.refactor_file(filepath)
/third_party/vk-gl-cts/external/vulkancts/scripts/
H A Dohos_gen_framework.py154 def __init__ (self, name, aType, alias, value):
155 self.name = name
156 self.type = aType
157 self.alias = alias
158 self.value = value
161 def __init__ (self, name, aType, alias, parent, objtypeenum):
162 self.name = name
163 self.type = aType
164 self.alias = alias
165 self
[all...]
/test/testfwk/xdevice/plugins/devicetest/controllers/tools/
H A Dscreen_agent.py37 def __init__(self, device):
38 self._device = device
39 self.log = device.log
40 self.proc = None
41 self.thread = None
42 self.local_port = None
43 self.is_server_started = False
45 def __del__(self):
46 self.terminate()
230 def terminate(self)
[all...]

Completed in 16 milliseconds

1...<<101102103104105106107108109110>>...261