From 307ca5167cc5d77aad3847d253e035707243a6a9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 16 Sep 2009 04:44:37 +0200 Subject: give hint regarding R column --- mutrace.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/mutrace.c b/mutrace.c index 0ed4e17..a64b121 100644 --- a/mutrace.c +++ b/mutrace.c @@ -475,7 +475,7 @@ static bool mutex_info_stat(struct mutex_info *mi) { (double) mi->nsec_locked_total / mi->n_locked / 1000000.0, (double) mi->nsec_locked_max / 1000000.0, mi->broken ? '!' : (mi->dead ? 'x' : '-'), - mi->realtime ? 'R' : '-', + track_rt ? (mi->realtime ? 'R' : '-') : '.', mutex_type_name(mi->type), mutex_protocol_name(mi->protocol)); @@ -568,6 +568,10 @@ static void show_summary(void) { " Type: r = RECURSIVE, e = ERRRORCHECK, a = ADAPTIVE /\n" " Protocol: i = INHERIT, p = PROTECT \n"); + if (!track_rt) + fprintf(stderr, + "\n" + "mutrace: Note that the flags column R is only valid in --track-rt mode!\n"); } else fprintf(stderr, @@ -593,13 +597,13 @@ static void show_summary(void) { fprintf(stderr, "\n" "mutrace: WARNING: %u internal hash collisions detected. Results might not be as reliable as they could be.\n" - "mutrace: Try to increase $MUTRACE_HASH_SIZE (--hash-size=), which is currently at %u.\n", n_collisions, hash_size); + "mutrace: Try to increase --hash-size=, which is currently at %u.\n", n_collisions, hash_size); if (n_self_contended > 0) fprintf(stderr, "\n" "mutrace: WARNING: %u internal mutex contention detected. Results might not be reliable as they could be.\n" - "mutrace: Try to increase $MUTRACE_HASH_SIZE (--hash-size=), which is currently at %u.\n", n_self_contended, hash_size); + "mutrace: Try to increase --hash-size=, which is currently at %u.\n", n_self_contended, hash_size); finish: shown_summary = true; -- cgit