From af620e118709e1a5272661c94641c3adf19fa524 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Fri, 3 Sep 2004 14:12:59 -0400 Subject: added system option to bin interrupt code seperately. arch/alpha/ev5.cc: set the mode explictly rather than having a bool user/notuser cpu/simple_cpu/simple_cpu.hh: there is no class Kernel kern/kernel_stats.cc: use cpu_mode_num kern/kernel_stats.hh: add interrupt mode and use cpu_mode_num rather than constant kern/linux/linux_system.cc: kern/linux/linux_system.hh: kern/system_events.cc: kern/system_events.hh: add events to change the mode to/from interrupt sim/system.cc: sim/system.hh: add a pal symbol table --HG-- extra : convert_revision : 9d30e826b72122062a5ea12d094f94760e75c66a --- kern/kernel_stats.hh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'kern/kernel_stats.hh') diff --git a/kern/kernel_stats.hh b/kern/kernel_stats.hh index 8339c578c..af93eb95c 100644 --- a/kern/kernel_stats.hh +++ b/kern/kernel_stats.hh @@ -45,7 +45,7 @@ enum Fault; namespace Kernel { -enum cpu_mode { kernel, user, idle, cpu_mode_num }; +enum cpu_mode { kernel, user, idle, interrupt, cpu_mode_num }; extern const char *modestr[]; class Binning @@ -98,7 +98,7 @@ class Binning std::vector binned_fns; private: - Stats::MainBin *modeBin[3]; + Stats::MainBin *modeBin[cpu_mode_num]; public: const bool bin; @@ -133,6 +133,7 @@ class Statistics : public Serializable Addr idleProcess; cpu_mode themode; Tick lastModeTick; + bool bin_int; void changeMode(cpu_mode newmode); @@ -177,7 +178,7 @@ class Statistics : public Serializable void hwrei() { _hwrei++; } void fault(Fault fault) { _faults[fault]++; } void swpipl(int ipl); - void mode(bool usermode); + void mode(cpu_mode newmode); void context(Addr oldpcbb, Addr newpcbb); void callpal(int code); -- cgit v1.2.3