aboutsummaryrefslogtreecommitdiff
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
commit090321281be9a379e61e6828a2372d544ff17bd0 (patch)
treee31cf1b465a9daa6097eb17f519637db19a8c06c /sim/common/sim-profile.h
parent1db77c8ec957684c09a03910ac18681a75c07554 (diff)
downloadgdb-090321281be9a379e61e6828a2372d544ff17bd0.zip
gdb-090321281be9a379e61e6828a2372d544ff17bd0.tar.gz
gdb-090321281be9a379e61e6828a2372d544ff17bd0.tar.bz2
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 4ffe850..81fad7d 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)