bionic/libc/arch-x86/syscalls
Elliott Hughes 5d9a7ba0dc Avoid a system call in 'gettid'.
System calls can be pretty slow. This is mako, which has one of our
lowest latencies:

                       iterations      ns/op
  BM_unistd_getpid       10000000        209
  BM_unistd_gettid      200000000          8

Bug: 15297299 (kernel panic from too many gettid calls)
Bug: 15315766 (excessive gettid overhead in liblogd)
Change-Id: I49656c0fc5b5d092390264a59e4f2c0d8a8b1aeb
2014-06-02 10:32:55 -07:00
..
__accept4.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__brk.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__connect.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__epoll_pwait.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__exit.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__fcntl64.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__fstatfs64.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__getcpu.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__getcwd.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__getpriority.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__ioctl.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__llseek.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__mmap2.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__openat.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__ppoll.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__pselect6.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__ptrace.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__reboot.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__rt_sigaction.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__rt_sigpending.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__rt_sigprocmask.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__rt_sigsuspend.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__rt_sigtimedwait.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__sched_getaffinity.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__set_thread_area.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__set_tid_address.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__sigaction.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__signalfd4.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__socket.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__statfs64.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__timer_create.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__timer_delete.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__timer_getoverrun.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__timer_gettime.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__timer_settime.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
__waitid.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
_exit.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
acct.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
bind.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
capget.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
capset.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
chdir.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
chroot.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
clock_getres.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
clock_gettime.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
clock_nanosleep.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
clock_settime.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
close.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
delete_module.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
dup3.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
dup.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
epoll_create1.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
epoll_ctl.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
eventfd.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
execve.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
faccessat.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
fallocate64.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
fchdir.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
fchmod.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
fchmodat.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
fchown.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
fchownat.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
fdatasync.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
fgetxattr.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
flistxattr.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
flock.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
fremovexattr.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
fsetxattr.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
fstat64.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
fstatat64.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
fsync.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
ftruncate64.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
ftruncate.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
getdents.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
getegid.S Stop using the non-uapi <linux/err.h> header file. 2013-11-07 10:31:05 -08:00
geteuid.S Stop using the non-uapi <linux/err.h> header file. 2013-11-07 10:31:05 -08:00
getgid.S Stop using the non-uapi <linux/err.h> header file. 2013-11-07 10:31:05 -08:00
getgroups.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
getitimer.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
getpeername.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
getpgid.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
getpid.S Stop using the non-uapi <linux/err.h> header file. 2013-11-07 10:31:05 -08:00
getppid.S Stop using the non-uapi <linux/err.h> header file. 2013-11-07 10:31:05 -08:00
getresgid.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
getresuid.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
getrlimit.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
getrusage.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
getsid.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
getsockname.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
getsockopt.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
gettimeofday.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
getuid.S Stop using the non-uapi <linux/err.h> header file. 2013-11-07 10:31:05 -08:00
getxattr.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
init_module.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
inotify_add_watch.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
inotify_init1.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
inotify_rm_watch.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
ioprio_get.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
ioprio_set.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
kill.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
klogctl.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
lgetxattr.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
linkat.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
listen.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
listxattr.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
llistxattr.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
lremovexattr.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
lseek.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
lsetxattr.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
madvise.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
mincore.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
mkdirat.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
mknodat.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
mlock.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
mlockall.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
mount.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
mprotect.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
mremap.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
msync.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
munlock.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
munlockall.S Stop using the non-uapi <linux/err.h> header file. 2013-11-07 10:31:05 -08:00
munmap.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
nanosleep.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
personality.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
pipe2.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
prctl.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
pread64.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
prlimit64.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
pwrite64.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
read.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
readahead.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
readlinkat.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
readv.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
recvfrom.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
recvmmsg.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
recvmsg.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
removexattr.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
renameat.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
sched_get_priority_max.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
sched_get_priority_min.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
sched_getparam.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
sched_getscheduler.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
sched_rr_get_interval.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
sched_setaffinity.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
sched_setparam.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
sched_setscheduler.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
sched_yield.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
sendfile64.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
sendfile.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
sendmmsg.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
sendmsg.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
sendto.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
setgid.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
setgroups.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
setitimer.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
setns.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
setpgid.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
setpriority.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
setregid.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
setresgid.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
setresuid.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
setreuid.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
setrlimit.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
setsid.S Stop using the non-uapi <linux/err.h> header file. 2013-11-07 10:31:05 -08:00
setsockopt.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
settimeofday.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
setuid.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
setxattr.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
shutdown.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
sigaltstack.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
socketpair.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
swapoff.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
swapon.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
symlinkat.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
sync.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
sysinfo.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
tgkill.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
timerfd_create.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
timerfd_gettime.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
timerfd_settime.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
times.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
truncate64.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
truncate.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
umask.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
umount2.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
uname.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
unlinkat.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
unshare.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
utimensat.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
wait4.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
write.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00
writev.S Fix x86 cfi directives for syscalls. 2014-05-29 19:04:36 -07:00