/bionic/libc/kernel/tools/ |
D | cpp.py | 105 def __init__(self, tu=None, group=None, int_data=None, ptr_data=None, argument 107 clang.cindex.Token.__init__(self) 108 self._id = None 109 self._tu = tu 110 self._group = group 111 self._cursor = cursor 115 self.int_data = int_data 116 self.ptr_data = ptr_data 119 def id(self): argument 121 if self._id is None: [all …]
|
D | kernel.py | 67 def __init__(self,config={}): argument 69 self.reset() 70 self.config = config 72 def reset(self,config={}): argument 73 self.files = set() # set of files being parsed for headers 74 self.headers = {} # maps headers to set of users 75 self.config = config 77 def checkInclude(self, line, from_file, kernel_root=None): argument 87 self.files.add(from_file) 98 if not header in self.headers: [all …]
|
D | utils.py | 44 def __init__(self): argument 45 self.line = "" 47 def write(self,msg): argument 48 self.line += msg 51 def get(self): argument 52 return self.line 75 def __init__(self): argument 76 self.old_files = set() 77 self.new_files = set() 78 self.new_data = {} [all …]
|
/bionic/benchmarks/linker_relocation/regen/ |
D | common_types.py | 35 def to_json(self) -> str: argument 36 return {SymKind.Func: 'func', SymKind.Var: 'var'}[self] 47 def to_json(self) -> str: argument 48 return {SymBind.Global: 'global', SymBind.Weak: 'weak'}[self] 56 def __init__(self, name: str, kind: SymKind, bind: SymBind, defined: bool, argument 59 self.name: str = name 60 self.kind: SymKind = kind 61 self.bind: SymBind = bind 62 self.defined: bool = defined 63 self.ver_type: Optional[str] = ver_type [all …]
|
D | gen_bench.py | 268 def __init__(self, root: LoadedLibrary): argument 269 self._root = root 270 self._names: Dict[LoadedLibrary, str] = {} 274 self._names = {x : f'{i:0{num_digits}}' for i, x in enumerate(all_libs)} 276 self._names = {x : re.sub(r'\.so$', '', x.soname) for x in all_libs} 278 def name(self, lib: LoadedLibrary) -> str: argument 279 if lib is self._root:
|
/bionic/libc/tools/ |
D | test_genseccomp.py | 10 def test_convert_NRs_to_ranges(self): argument 12 self.assertEqual(len(ranges), 1) 13 self.assertEqual(ranges[0].begin, 1) 14 self.assertEqual(ranges[0].end, 3) 15 self.assertEqual(set(ranges[0].names), {"a", "b"}) 18 self.assertEqual(len(ranges), 2) 19 self.assertEqual(ranges[0].begin, 1) 20 self.assertEqual(ranges[0].end, 2) 21 self.assertEqual(set(ranges[0].names), {"a"}) 22 self.assertEqual(ranges[1].begin, 3) [all …]
|
D | genserv.py | 18 def __init__(self,name,port,proto): argument 19 self.name = name 20 self.port = port 21 self.proto = proto 22 self.aliases = [] 24 def add_alias(self,alias): argument 25 self.aliases.append(alias) 27 def __str__(self): argument 28 result = "\\%0o%s" % (len(self.name),self.name) 29 result += "\\%0o\\%0o" % (((self.port >> 8) & 255), self.port & 255) [all …]
|
D | gensyscalls.py | 329 def __init__(self): argument 330 self.syscalls = [] 331 self.lineno = 0 332 self.errors = False 334 def E(self, msg): argument 335 print("%d: %s" % (self.lineno, msg)) 336 self.errors = True 338 def parse_line(self, line): argument 345 E = self.E 434 self.syscalls.append(t) [all …]
|
D | genseccomp.py | 20 def __init__(self, name, value): argument 21 self.names = [name] 22 self.begin = value 23 self.end = self.begin + 1 25 def __str__(self): argument 26 return "(%s, %s, %s)" % (self.begin, self.end, self.names) 28 def add(self, name, value): argument 29 if value != self.end: 31 self.end += 1 32 self.names.append(name)
|
/bionic/libc/bionic/ |
D | clone.cpp | 48 pthread_internal_t* self = __get_thread(); in __start_thread() local 49 if (self && self->tid == -1) { in __start_thread() 50 self->tid = syscall(__NR_gettid); in __start_thread() 88 pthread_internal_t* self = __get_thread(); in clone() local 89 pid_t parent_pid = self->invalidate_cached_pid(); in clone() 92 pid_t caller_tid = self->tid; in clone() 97 self->tid = -1; in clone() 119 self->set_cached_pid(parent_pid); in clone() 120 self->tid = caller_tid; in clone() 121 } else if (self->tid == -1) { in clone() [all …]
|
D | gettid.cpp | 35 pthread_internal_t* self = __get_thread(); in gettid() local 36 if (__predict_true(self)) { in gettid() 37 pid_t tid = self->tid; in gettid() 41 self->tid = syscall(__NR_gettid); in gettid() 42 return self->tid; in gettid()
|
D | getpid.cpp | 36 pthread_internal_t* self = __get_thread(); in __get_cached_pid() local 37 if (__predict_true(self)) { in __get_cached_pid() 39 if (__predict_true(self->get_cached_pid(&cached_pid))) { in __get_cached_pid()
|
D | fork.cpp | 39 pthread_internal_t* self = __get_thread(); in __clone_for_fork() local 42 nullptr, nullptr, nullptr, &(self->tid)); in __clone_for_fork() 47 self->set_cached_pid(gettid()); in __clone_for_fork()
|
/bionic/tests/ |
D | pidfd_test.cpp | 66 unique_fd self(pidfd_open(getpid(), 0)); in TEST() local 67 if (self.get() == -1 && errno == ENOSYS) GTEST_SKIP() << "no pidfd_open() in this kernel"; in TEST() 68 ASSERT_NE(-1, self.get()) << strerror(errno); in TEST() 70 unique_fd dup(pidfd_getfd(self.get(), r.get(), 0)); in TEST() 84 unique_fd self(pidfd_open(getpid(), 0)); in TEST_F() local 85 if (self.get() == -1 && errno == ENOSYS) GTEST_SKIP() << "no pidfd_open() in this kernel"; in TEST_F() 86 ASSERT_NE(-1, self.get()) << strerror(errno); in TEST_F() 88 int rc = pidfd_send_signal(self.get(), 0, nullptr, 0); in TEST_F()
|
D | dlfcn_test.cpp | 76 void* self = dlopen(nullptr, RTLD_NOW); in TEST() local 77 ASSERT_TRUE(self != nullptr); in TEST() 80 void* sym = dlsym(self, "DlSymTestFunction"); in TEST() 89 ASSERT_EQ(0, dlclose(self)); in TEST() 817 void* self = dlopen("/does/not/exist", RTLD_NOW); in TEST() local 818 ASSERT_TRUE(self == nullptr); in TEST() 887 void* self = dlopen(nullptr, RTLD_NOW); in TEST() local 888 ASSERT_TRUE(self != nullptr); in TEST() 905 sym = dlsym(self, "ThisSymbolDoesNotExist"); in TEST() 909 ASSERT_EQ(0, dlclose(self)); in TEST() [all …]
|
D | unistd_test.cpp | 461 pthread_internal_t* self = __get_thread(); in TEST() local 464 ASSERT_TRUE(self->get_cached_pid(&cached_pid)); in TEST() 466 ASSERT_FALSE(self->is_vforked()); in TEST() 471 if (self->get_cached_pid(&cached_pid)) { in TEST() 477 if (!self->is_vforked()) { in TEST() 485 ASSERT_TRUE(self->get_cached_pid(&cached_pid)); in TEST() 487 ASSERT_FALSE(self->is_vforked()); in TEST()
|
/bionic/libc/kernel/uapi/linux/ |
D | scif_ioctl.h | 15 struct scif_port_id self; member 61 __u64 self; member
|
/bionic/build/ |
D | coverage.sh | 62 /proc/self/cwd/bionic/libc \ 63 /proc/self/cwd/bionic/libm \
|
/bionic/libc/system_properties/ |
D | system_properties.cpp | 463 find_nth* self = reinterpret_cast<find_nth*>(ptr); in FindNth() local 464 if (self->current++ == self->sought) self->result = pi; in FindNth()
|