/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 | 45 def __init__(self): argument 46 self.line = "" 48 def write(self,msg): argument 49 self.line += msg 52 def get(self): argument 53 return self.line 76 def __init__(self): argument 77 self.old_files = set() 78 self.new_files = set() 79 self.new_data = {} [all …]
|
/bionic/libc/tools/ |
D | test_genseccomp.py | 11 def setUp(self): argument 14 def get_config(self, arch): argument 18 self.fail("No such architecture") 20 def get_headers(self, arch): argument 21 return self.get_config(arch)[1] 23 def get_switches(self, arch): argument 24 return self.get_config(arch)[2] 26 def test_get_names(self): argument 48 self.assertIn("fchown", names64) 49 self.assertNotIn("fchown", names) [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 | 313 def __init__(self): argument 314 self.syscalls = [] 315 self.lineno = 0 317 def E(self, msg): argument 318 print "%d: %s" % (self.lineno, msg) 320 def parse_line(self, line): argument 327 E = self.E 416 self.syscalls.append(t) 418 def parse_open_file(self, fp): argument 420 self.lineno += 1 [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/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 | 263 def __init__(self, root: LoadedLibrary): argument 264 self._root = root 265 self._names: Dict[LoadedLibrary, str] = {} 269 self._names = {x : f'{i:0{num_digits}}' for i, x in enumerate(all_libs)} 271 self._names = {x : re.sub(r'\.so$', '', x.soname) for x in all_libs} 273 def name(self, lib: LoadedLibrary) -> str: argument 274 if lib is self._root:
|
/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 | 38 pthread_internal_t* self = __get_thread(); in __clone_for_fork() local 41 nullptr, nullptr, nullptr, &(self->tid)); in __clone_for_fork() 46 self->set_cached_pid(gettid()); in __clone_for_fork()
|
/bionic/libc/kernel/uapi/linux/ |
D | scif_ioctl.h | 27 struct scif_port_id self; member 73 __u64 self; member
|
/bionic/libc/system_properties/ |
D | system_properties.cpp | 359 find_nth* self = reinterpret_cast<find_nth*>(ptr); in FindNth() local 360 if (self->current++ == self->sought) self->result = pi; in FindNth()
|
/bionic/tests/ |
D | dlfcn_test.cpp | 90 void* self = dlopen(nullptr, RTLD_NOW); in TEST() local 91 ASSERT_TRUE(self != nullptr); in TEST() 94 void* sym = dlsym(self, "DlSymTestFunction"); in TEST() 103 ASSERT_EQ(0, dlclose(self)); in TEST() 828 void* self = dlopen("/does/not/exist", RTLD_NOW); in TEST() local 829 ASSERT_TRUE(self == nullptr); in TEST() 896 void* self = dlopen(nullptr, RTLD_NOW); in TEST() local 897 ASSERT_TRUE(self != nullptr); in TEST() 911 sym = dlsym(self, "ThisSymbolDoesNotExist"); in TEST() 915 ASSERT_EQ(0, dlclose(self)); in TEST() [all …]
|
D | unistd_test.cpp | 440 pthread_internal_t* self = __get_thread(); in TEST() local 443 ASSERT_TRUE(self->get_cached_pid(&cached_pid)); in TEST() 445 ASSERT_FALSE(self->is_vforked()); in TEST() 450 if (self->get_cached_pid(&cached_pid)) { in TEST() 456 if (!self->is_vforked()) { in TEST() 464 ASSERT_TRUE(self->get_cached_pid(&cached_pid)); in TEST() 466 ASSERT_FALSE(self->is_vforked()); in TEST()
|