summaryrefslogtreecommitdiff
path: root/sim/common/sim-profile.h
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2000-08-15 18:39:02 +0000
committerDave Brolley <brolley@redhat.com>2000-08-15 18:39:02 +0000
commit26aac2e8a11d9041a65e125111b3ebdd01ca1afb (patch)
treea473814d23b286da628369eea95e8694ab06c91e /sim/common/sim-profile.h
parentbd12ea10e0a57bcbd951124d80637fd0ae305298 (diff)
downloadgdb-26aac2e8a11d9041a65e125111b3ebdd01ca1afb.tar.gz
2000-08-15 Dave Brolley <brolley@redhat.com>
* sim-profile.h (PROFILE_DATA): Add cpu_freq. (PROFILE_CPU_FREQ): New macro. * sim-profile.c (OPTION_PROFILE_CPU_FREQUENCY): New enumerator. (profile-options): Add profile-cpu-frequency. (parse_frequency): New function. (profile_option_handler): Handle OPTION_PROFILE_CPU_FREQUENCY. (profile_print_speed): Print cpu frequency and simulated execution time. Re-indent other items to match.
Diffstat (limited to 'sim/common/sim-profile.h')
-rw-r--r--sim/common/sim-profile.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sim/common/sim-profile.h b/sim/common/sim-profile.h
index 4ffe8503766..81fad7d1cad 100644
--- a/sim/common/sim-profile.h
+++ b/sim/common/sim-profile.h
@@ -150,6 +150,10 @@ typedef struct {
unsigned long total_insn_count;
#define PROFILE_TOTAL_INSN_COUNT(p) ((p)->total_insn_count)
+ /* CPU frequency. Always accepted, regardless of profiling options. */
+ unsigned long cpu_freq;
+#define PROFILE_CPU_FREQ(p) ((p)->cpu_freq)
+
#if WITH_PROFILE_INSN_P
unsigned int *insn_count;
#define PROFILE_INSN_COUNT(p) ((p)->insn_count)