[Ltrace-devel] [PATCH 5/6] Improve pthread call logging

Роман Донченко dpb at corrigendum.ru
Mon Apr 20 00:39:26 UTC 2015


* use signum as the type for pthread_kill's second parameter;
* import libpthread.so.conf into libc.so.conf, since libc.so also
  defines several functions from libpthread.so.
---
 etc/libc.so.conf       | 5 +++++
 etc/libpthread.so.conf | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/etc/libc.so.conf b/etc/libc.so.conf
index 4e9db60..e101e4a 100644
--- a/etc/libc.so.conf
+++ b/etc/libc.so.conf
@@ -523,3 +523,8 @@ addr mremap(addr, size_t, size_t, hex(int));
 int remap_file_pages(addr, size_t, int, size_t, mmap_flags_t);
 int shm_open(string, hex(int), oct(int));
 int shm_unlink(string);
+
+# libc.so defines several functions from libpthread.so.
+# Rather than cherrypick, just import them all.
+
+import "libpthread.so";
diff --git a/etc/libpthread.so.conf b/etc/libpthread.so.conf
index 7cb8f45..c5c0f4e 100644
--- a/etc/libpthread.so.conf
+++ b/etc/libpthread.so.conf
@@ -120,5 +120,5 @@ void  pthread_testcancel();
 
 # <signal.h>
 
-int    pthread_kill(pthread_t, int);
+int    pthread_kill(pthread_t, signum);
 int    pthread_sigmask(int, sigset_t *, +sigset_t *);
-- 
1.8.5.6




More information about the Ltrace-devel mailing list