fixup! libdvm interface tweaks/bugfixes
pthread/TLS bugfixes and tweaks

This commit patches up some holes in the TLS handling during pthread
creation and fork/exec. Basically, everytime we fork or create a thread
we need to ensure that the new thread will start with its TLS data in a
zero-state. The only way to do that is to zero out our own state and
have both parties re-create the necessary data structures.

Signed-off-by: Jeremy C. Andrus <jeremya@cs.columbia.edu>
special signal handler to close log files

This patch installs per-thread signal handlers for the SIGUSR2 signal.
When this signal is delivered to a thread, it will close and flush it's
logfile. This is handy when the logs are being compressed via zlib and
you want a complete archive.

Signed-off-by: Jeremy C. Andrus <jeremya@cs.columbia.edu>
Android application + script to signal threads

The 'tkill' binary (precompiled version included) is a simple wrapper
around the Linux tgkill syscall which sends a signal to an individual
thread. The "android_sendsig.sh" script looks through the
/data/trace_logs directory and invokes tkill for each thread logfile it
finds. This should help to flush compressed logfiles from memory to
disk.

Install:
    adb remount
    adb push scripts/tkill/tkill /system/bin
    adb push scripts/tkill/android_sendsig.sh /system/bin

Signed-off-by: Jeremy C. Andrus <jeremya@cs.columbia.edu>
ignore compiled python output

Signed-off-by: Jeremy C. Andrus <jeremya@cs.columbia.edu>