frequency to a prime number.
(profile_print_pc): Convert gmon.out sample data into target
byte order.
+2006-08-29 Nigel Stephens <nigel@mips.com>
+
+ * sim-profile.c (profile_pc_init): Initialise default profiling
+ frequency to a prime number.
+ (profile_print_pc): Convert gmon.out sample data into target
+ byte order.
+
2006-06-13 Richard Earnshaw <rearnsha@arm.com>
* aclocal.m4: Pass ../../intl to ZW_GNU_GETTEXT_SISTER_DIR.
int bucket_size;
/* fill in the frequency if not specified */
if (PROFILE_PC_FREQ (data) == 0)
- PROFILE_PC_FREQ (data) = 256;
+ PROFILE_PC_FREQ (data) = 257;
/* fill in the start/end if not specified */
if (PROFILE_PC_END (data) == 0)
{
sample = 0xffff;
else
sample = PROFILE_PC_COUNT (profile) [loop];
+ H2T (sample);
ok = fwrite (&sample, sizeof (sample), 1, pf);
}
if (ok == 0)