Clean up debug printing for scheduler / pthreads. Two new flags,
--trace-sched=no|yes and --trace-pthread=no|yes, if you really want
to see tons of gory details.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@55 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/vg_libpthread.c b/vg_libpthread.c
index e8d6043..ca2057a 100644
--- a/vg_libpthread.c
+++ b/vg_libpthread.c
@@ -152,17 +152,17 @@
int pthread_mutexattr_init(pthread_mutexattr_t *attr)
{
- char* str = "pthread_mutexattr_init\n";
- write(2, str, strlen(str));
- return 0;
+ char* str = "IGNORED pthread_mutexattr_init\n";
+ write(2, str, strlen(str));
+ return 0;
}
int pthread_mutex_init(pthread_mutex_t *mutex,
const pthread_mutexattr_t *mutexattr)
{
int res;
- char* str = "pthread_mutex_init\n";
- write(2, str, strlen(str));
+ // char* str = "pthread_mutex_init\n";
+ // write(2, str, strlen(str));
ensure_valgrind("pthread_mutex_init");
VALGRIND_MAGIC_SEQUENCE(res, 0 /* default */,
VG_USERREQ__PTHREAD_MUTEX_INIT,
@@ -172,7 +172,7 @@
int pthread_mutexattr_destroy(pthread_mutexattr_t *attr)
{
- char* str = "pthread_mutexattr_destroy\n";
+ char* str = "IGNORED pthread_mutexattr_destroy\n";
write(2, str, strlen(str));
return 0;
}
@@ -237,7 +237,7 @@
int pthread_setcanceltype(int type, int *oldtype)
{
- char* str = "pthread_setcanceltype\n";
+ char* str = "IGNORED pthread_setcanceltype\n";
write(2, str, strlen(str));
return 0;
}