Lines Matching refs:self
249 def __init__(self): argument
250 self.old_stubs = []
251 self.new_stubs = []
252 self.other_files = []
253 self.syscalls = []
255 def x86_genstub(self, fname, numparams, idname): argument
276 def x86_genstub_cid(self, fname, numparams, idname, cid): argument
314 def arm_genstub(self,fname, flags, idname): argument
324 def arm_eabi_genstub(self,fname, flags, idname): argument
334 def thumb_genstub(self,fname, flags, idname): argument
344 def superh_genstub(self, fname, flags, idname): argument
361 def process_file(self,input): argument
364 self.syscalls = parser.syscalls
367 for t in self.syscalls:
374 … t["asm-thumb"] = self.thumb_genstub(syscall_func,len(syscall_params),"__NR_"+syscall_name)
377 … t["asm-arm"] = self.arm_eabi_genstub(syscall_func,len(syscall_params),"__NR_"+syscall_name)
379 … t["asm-arm"] = self.arm_genstub(syscall_func,len(syscall_params),"__NR_"+syscall_name)
383 …t["asm-x86"] = self.x86_genstub_cid(syscall_func, len(syscall_params), "__NR_"+syscall_name, t["ci…
385 … t["asm-x86"] = self.x86_genstub(syscall_func,len(syscall_params),"__NR_"+syscall_name)
391 … t["asm-sh"] = self.superh_genstub(syscall_func,len(syscall_params),"__NR_"+syscall_name)
395 def gen_NR_syscall(self,fp,name,id): argument
399 def gen_linux_syscalls_h(self): argument
413 for sc in self.syscalls:
418 self.gen_NR_syscall( fp, sc_name, sc_id )
422 for sc in self.syscalls:
427 self.gen_NR_syscall( fp, sc_name, sc_id )
433 for sc in self.syscalls:
438 self.gen_NR_syscall( fp, sc_name, sc_id2 )
444 for sc in self.syscalls:
450 self.gen_NR_syscall( fp, sc_name, sc_id3 )
453 self.gen_NR_syscall( fp, sc_name, sc_id2 )
459 self.other_files.append( path )
463 def gen_linux_unistd_h(self): argument
471 for sc in self.syscalls:
477 self.other_files.append( path )
480 def gen_arch_syscalls_mk(self, arch): argument
492 for sc in self.syscalls:
497 self.other_files.append( path )
500 def gen_syscall_stubs(self): argument
501 for sc in self.syscalls:
508 self.new_stubs.append( fname )
516 self.new_stubs.append( fname )
524 self.new_stubs.append( fname )
532 self.new_stubs.append( fname )
535 def regenerate(self): argument
545 self.old_stubs.append( f[bionic_root_len:] )
547 D( "found %d stub files" % len(self.old_stubs) )
561 self.gen_linux_syscalls_h()
563 self.gen_arch_syscalls_mk(arch)
564 self.gen_linux_unistd_h()
565 self.gen_syscall_stubs()
571 for stub in self.new_stubs + self.other_files:
583 for stub in self.old_stubs:
584 if not stub in self.new_stubs: