Build and install 'cachegrind' along with 'valgrind'.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@181 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_main.c b/coregrind/vg_main.c
index ee875e2..3fbaca8 100644
--- a/coregrind/vg_main.c
+++ b/coregrind/vg_main.c
@@ -840,10 +840,17 @@
VG_(clo_instrument) = False;
}
- if (VG_(clo_verbosity > 0))
- VG_(message)(Vg_UserMsg,
- "valgrind-%s, a memory error detector for x86 GNU/Linux.",
- VERSION);
+ if (VG_(clo_verbosity > 0)) {
+ if (VG_(clo_cachesim)) {
+ VG_(message)(Vg_UserMsg,
+ "cachegrind-%s, an I1/D1/L2 cache profiler for x86 GNU/Linux.",
+ VERSION);
+ } else {
+ VG_(message)(Vg_UserMsg,
+ "valgrind-%s, a memory error detector for x86 GNU/Linux.",
+ VERSION);
+ }
+ }
if (VG_(clo_verbosity > 0))
VG_(message)(Vg_UserMsg,
@@ -855,7 +862,7 @@
}
}
- if (VG_(clo_n_suppressions) == 0) {
+ if (VG_(clo_n_suppressions) == 0 && !VG_(clo_cachesim)) {
config_error("No error-suppression files were specified.");
}
}