sim: profile: implement --profile-file backend
authorMike Frysinger <vapier@gentoo.org>
Thu, 22 Apr 2010 02:18:32 +0000 (02:18 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 22 Apr 2010 02:18:32 +0000 (02:18 +0000)
Need to update the sim_profile_print_bar() call after the common/ changes.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
sim/common/ChangeLog
sim/common/cgen-scache.c

index 1b0ac7640a4abdad9a12d6a6ffb13e3dfc7ee546..ddca26658c066b9423f133d9ee0a04e4f32140d6 100644 (file)
@@ -1,3 +1,7 @@
+2010-04-21  Mike Frysinger  <vapier@gentoo.org>
+
+       * profile.c (sim_profile_print_bar): Add cpu argument.
+
 2010-04-21  Mike Frysinger  <vapier@gentoo.org>
 
        * sim-profile.h (sim_profile_print_bar): Use sim_cpu, not SIM_CPU.
index 82f57b4793617683eb549d129ec26aee09c97fd6..d92ecac0d49c12507ee00d492ef65c58f63a90d8 100644 (file)
@@ -466,7 +466,7 @@ scache_print_profile (SIM_CPU *cpu, int verbose)
                         i,
                         max_val < 10000 ? 5 : 10,
                         sim_add_commas (buf, sizeof (buf), lengths[i]));
-         sim_profile_print_bar (sd, PROFILE_HISTOGRAM_WIDTH,
+         sim_profile_print_bar (sd, cpu, PROFILE_HISTOGRAM_WIDTH,
                                 lengths[i], max_val);
          sim_io_printf (sd, "\n");
        }