platform_bionic/libc/bionic
André Goddard Rosa 78c1c04ced pthread: introduce pthread_setname_np() as a mean to give names to threads
... so that each cloned process at the kernel level can be named
independently. Tools like 'top' can display the CPU/memory statistics
for each process's thread if "Show Threads" mode is on.

With this function in place, we can convert dalvik/Thread.c setThreadName()
function over this function. This feature ought to be provided by the
underlying C library and not coded directly in Dalvik.

Change-Id: Ifa997665dbaa114e0b126f8c667708be9a4137fd
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
2010-05-19 23:17:16 -03:00
..
__errno.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__set_errno.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
_rand48.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
arc4random.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
atomics_x86.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
basename.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
basename_r.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
dirname.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
dirname_r.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
dlmalloc.c eclair snapshot 2009-11-12 18:45:14 -08:00
dlmalloc.h eclair snapshot 2009-11-12 18:45:14 -08:00
drand48.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
eabi.c Fix __eabi_atexit() implementation, as well as a bug in the BSD-originated __cxa_finalize() implementation 2009-05-20 11:42:52 +02:00
erand48.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fork.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
hash.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
if_indextoname.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
if_nametoindex.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
ioctl.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
ldexp.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
libc_init_common.c Restore malloc debug. 2009-07-21 15:44:23 -07:00
libc_init_common.h Fix the C library runtime initialization order. 2009-07-18 01:11:10 +02:00
libc_init_dynamic.c Restore malloc debug. 2009-07-21 15:44:23 -07:00
libc_init_static.c Restore malloc debug. 2009-07-21 15:44:23 -07:00
logd_write.c Fix log channel initialization at bionic/logd_write.c. 2009-12-03 11:37:22 +10:00
malloc_leak.c bionic: add missing NULL check from memory allocation on record_backtrace() 2010-04-29 07:37:42 -07:00
md5.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
md5.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
pthread-timers.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
pthread.c pthread: introduce pthread_setname_np() as a mean to give names to threads 2010-05-19 23:17:16 -03:00
pthread_internal.h Revert "Fix the C library initialization to avoid calling static C++ constructors twice." 2009-06-03 19:32:37 +02:00
ptrace.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
pututline.c bionic: ftell() returns a long, not an int 2010-02-05 16:05:52 -02:00
rand48.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
realpath.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
rules.jam auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
semaphore.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
sha1.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
ssp.c bionic: equalize the <unknown> program name between ssp.c and libc_init_common.c 2010-02-05 17:48:07 -02:00
stubs.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
system_properties.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
thread_atexit.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
time64.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
time64_config.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
utime.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
utmp.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00