aboutsummaryrefslogtreecommitdiffstats
path: root/lib/isc/pthreads/mutex.c
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2012-05-28 10:21:54 +0000
committerDoug Barton <dougb@FreeBSD.org>2012-05-28 10:21:54 +0000
commit31ffd11de096ff42940ae937e8e5a955664514c9 (patch)
tree6dc3dc4c57d86d545b84f6bf88014bfc1dcf80fa /lib/isc/pthreads/mutex.c
parent65880d08f9383b1b2f7d971891cc32f9ba70e051 (diff)
downloadsrc-31ffd11de096ff42940ae937e8e5a955664514c9.tar.gz
src-31ffd11de096ff42940ae937e8e5a955664514c9.zip
Vendor import of BIND 9.6-ESV-R7vendor/bind9/9.6-ESV-R7
Notes
Notes: svn path=/vendor/bind9/dist-9.6/; revision=236174 svn path=/vendor/bind9/9.6-ESV-R7/; revision=236175; tag=vendor/bind9/9.6-ESV-R7
Diffstat (limited to 'lib/isc/pthreads/mutex.c')
-rw-r--r--lib/isc/pthreads/mutex.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/isc/pthreads/mutex.c b/lib/isc/pthreads/mutex.c
index f8bc43481f65..7c9cc19e651e 100644
--- a/lib/isc/pthreads/mutex.c
+++ b/lib/isc/pthreads/mutex.c
@@ -78,7 +78,7 @@ struct isc_mutexstats {
};
#ifndef ISC_MUTEX_PROFTABLESIZE
-#define ISC_MUTEX_PROFTABLESIZE (16 * 1024)
+#define ISC_MUTEX_PROFTABLESIZE (1024 * 1024)
#endif
static isc_mutexstats_t stats[ISC_MUTEX_PROFTABLESIZE];
static int stats_next = 0;
@@ -200,24 +200,24 @@ isc_mutex_statsprofile(FILE *fp) {
fprintf(fp, "Mutex stats (in us)\n");
for (i = 0; i < stats_next; i++) {
- fprintf(fp, "%-12s %4d: %10u %lu.%06lu %lu.%06lu\n",
+ fprintf(fp, "%-12s %4d: %10u %lu.%06lu %lu.%06lu %5d\n",
stats[i].file, stats[i].line, stats[i].count,
stats[i].locked_total.tv_sec,
stats[i].locked_total.tv_usec,
stats[i].wait_total.tv_sec,
- stats[i].wait_total.tv_usec
- );
+ stats[i].wait_total.tv_usec,
+ i);
for (j = 0; j < ISC_MUTEX_MAX_LOCKERS; j++) {
locker = &stats[i].lockers[j];
if (locker->file == NULL)
continue;
- fprintf(fp, " %-11s %4d: %10u %lu.%06lu %lu.%06lu\n",
+ fprintf(fp, " %-11s %4d: %10u %lu.%06lu %lu.%06lu %5d\n",
locker->file, locker->line, locker->count,
locker->locked_total.tv_sec,
locker->locked_total.tv_usec,
locker->wait_total.tv_sec,
- locker->wait_total.tv_usec
- );
+ locker->wait_total.tv_usec,
+ i);
}
}
}