Put kernel_stats back into arch.

--HG--
rename : src/kern/alpha/idle_event.cc => src/arch/alpha/idle_event.cc
rename : src/kern/alpha/idle_event.hh => src/arch/alpha/idle_event.hh
rename : src/kern/alpha/kernel_stats.cc => src/arch/alpha/kernel_stats.cc
rename : src/kern/alpha/kernel_stats.hh => src/arch/alpha/kernel_stats.hh
rename : src/kern/sparc/kernel_stats.hh => src/arch/sparc/kernel_stats.hh
rename : src/kern/base_kernel_stats.cc => src/kern/kernel_stats.cc
rename : src/kern/base_kernel_stats.hh => src/kern/kernel_stats.hh
extra : convert_revision : 42bd3e36b407edbd19b912c9218f4e5923a15966
This commit is contained in:
Gabe Black 2006-11-07 22:34:34 -05:00
parent 65bf3c521f
commit c693c6ba9f
22 changed files with 28 additions and 43 deletions

View file

@ -51,6 +51,7 @@ isa_switch_hdrs = Split('''
faults.hh
interrupts.hh
isa_traits.hh
kernel_stats.hh
locked_mem.hh
process.hh
regfile.hh

View file

@ -56,7 +56,9 @@ full_system_sources = Split('''
tlb.cc
arguments.cc
ev5.cc
idle_event.cc
ipr.cc
kernel_stats.cc
osfpal.cc
stacktrace.cc
vtophys.cc

View file

@ -31,6 +31,7 @@
#include "arch/alpha/faults.hh"
#include "arch/alpha/isa_traits.hh"
#include "arch/alpha/kernel_stats.hh"
#include "arch/alpha/osfpal.hh"
#include "arch/alpha/tlb.hh"
#include "arch/alpha/kgdb.h"
@ -40,7 +41,6 @@
#include "cpu/base.hh"
#include "cpu/simple_thread.hh"
#include "cpu/thread_context.hh"
#include "kern/alpha/kernel_stats.hh"
#include "sim/debug.hh"
#include "sim/sim_exit.hh"

View file

@ -29,9 +29,9 @@
* Nathan Binkert
*/
#include "arch/alpha/idle_event.hh"
#include "arch/alpha/kernel_stats.hh"
#include "cpu/thread_context.hh"
#include "kern/alpha/idle_event.hh"
#include "kern/kernel_stats.hh"
using namespace TheISA;

View file

@ -33,7 +33,7 @@
#include <stack>
#include <string>
#include "kern/alpha/kernel_stats.hh"
#include "arch/alpha/kernel_stats.hh"
#include "arch/alpha/osfpal.hh"
#include "base/trace.hh"
#include "cpu/thread_context.hh"

View file

@ -38,7 +38,7 @@
#include <vector>
#include "cpu/static_inst.hh"
#include "kern/base_kernel_stats.hh"
#include "kern/kernel_stats.hh"
class BaseCPU;
class ThreadContext;

View file

@ -42,6 +42,7 @@
#include "arch/arguments.hh"
#include "arch/vtophys.hh"
#include "arch/alpha/idle_event.hh"
#include "arch/alpha/linux/system.hh"
#include "arch/alpha/linux/threadinfo.hh"
#include "arch/alpha/system.hh"
@ -49,7 +50,6 @@
#include "cpu/thread_context.hh"
#include "cpu/base.hh"
#include "dev/platform.hh"
#include "kern/alpha/idle_event.hh"
#include "kern/linux/printk.hh"
#include "kern/linux/events.hh"
#include "mem/physical.hh"

View file

@ -38,8 +38,8 @@ class ThreadContext;
class BreakPCEvent;
class IdleStartEvent;
#include "arch/alpha/idle_event.hh"
#include "arch/alpha/system.hh"
#include "kern/alpha/idle_event.hh"
#include "kern/linux/events.hh"
using namespace AlphaISA;

View file

@ -36,7 +36,7 @@
#include <string>
#include <vector>
#include "kern/base_kernel_stats.hh"
#include "kern/kernel_stats.hh"
namespace SparcISA {
namespace Kernel {

View file

@ -38,8 +38,8 @@
#include "cpu/thread_context.hh"
#if FULL_SYSTEM
#include "arch/kernel_stats.hh"
#include "arch/vtophys.hh"
#include "kern/kernel_stats.hh"
#endif // FULL_SYSTEM
using namespace std;

View file

@ -48,8 +48,8 @@
#if FULL_SYSTEM
#include "arch/alpha/osfpal.hh"
#include "arch/isa_traits.hh"
#include "arch/kernel_stats.hh"
#include "cpu/quiesce_event.hh"
#include "kern/kernel_stats.hh"
#include "sim/sim_exit.hh"
#include "sim/system.hh"
#endif

View file

@ -39,7 +39,7 @@
#include "cpu/o3/comm.hh"
#if FULL_SYSTEM
#include "kern/kernel_stats.hh"
#include "arch/kernel_stats.hh"
#endif
#include <vector>

View file

@ -47,12 +47,12 @@
#if FULL_SYSTEM
#include "arch/faults.hh"
#include "arch/alpha/osfpal.hh"
#include "arch/alpha/tlb.hh"
#include "arch/alpha/types.hh"
#include "arch/tlb.hh"
#include "arch/types.hh"
#include "arch/kernel_stats.hh"
#include "arch/vtophys.hh"
#include "base/callback.hh"
#include "cpu/profile.hh"
#include "kern/kernel_stats.hh"
#include "mem/physical.hh"
#include "sim/faults.hh"
#include "sim/sim_events.hh"

View file

@ -31,7 +31,10 @@
#include "sim/faults.hh"
#include "config/full_system.hh"
#include "cpu/ozone/dyn_inst.hh"
#if FULL_SYSTEM
#include "kern/kernel_stats.hh"
#endif
template <class Impl>
OzoneDynInst<Impl>::OzoneDynInst(OzoneCPU *cpu)

View file

@ -57,11 +57,11 @@
#include "sim/system.hh"
#if FULL_SYSTEM
#include "arch/tlb.hh"
#include "arch/kernel_stats.hh"
#include "arch/stacktrace.hh"
#include "arch/tlb.hh"
#include "arch/vtophys.hh"
#include "base/remote_gdb.hh"
#include "kern/kernel_stats.hh"
#else // !FULL_SYSTEM
#include "mem/mem_object.hh"
#endif // FULL_SYSTEM

View file

@ -39,13 +39,13 @@
#include "cpu/thread_context.hh"
#if FULL_SYSTEM
#include "arch/kernel_stats.hh"
#include "base/callback.hh"
#include "base/cprintf.hh"
#include "base/output.hh"
#include "base/trace.hh"
#include "cpu/profile.hh"
#include "cpu/quiesce_event.hh"
#include "kern/kernel_stats.hh"
#include "sim/serialize.hh"
#include "sim/sim_exit.hh"
#include "arch/stacktrace.hh"

View file

@ -37,8 +37,8 @@
#include "sim/serialize.hh"
#if FULL_SYSTEM
#include "arch/kernel_stats.hh"
#include "cpu/quiesce_event.hh"
#include "kern/kernel_stats.hh"
#endif
#if FULL_SYSTEM

View file

@ -34,7 +34,7 @@ import os.path, sys
Import('env')
sources = Split('''
base_kernel_stats.cc
kernel_stats.cc
system_events.cc
linux/events.cc
linux/linux_syscalls.cc
@ -45,25 +45,4 @@ sources = Split('''
# path relative to the top of the directory tree.
sources = [File(s) for s in sources]
#################################################################
#
# ISA "switch header" generation.
#
# Auto-generate arch headers that include the right ISA-specific
# header based on the setting of THE_ISA preprocessor variable.
#
#################################################################
# List of headers to generate
kern_switch_hdrs = Split('''
kernel_stats.hh
''')
env.make_switching_dir('kern', kern_switch_hdrs, env)
isa = env['TARGET_ISA'] # someday this may be a list of ISAs
# Let the target architecture define what additional sources it needs
sources += SConscript(os.path.join(isa, 'SConscript'), exports = 'env')
Return('sources')

View file

@ -33,7 +33,7 @@
#include "base/trace.hh"
#include "cpu/thread_context.hh"
#include "kern/base_kernel_stats.hh"
#include "kern/kernel_stats.hh"
#include "kern/tru64/tru64_syscalls.hh"
#include "sim/system.hh"

View file

@ -34,14 +34,14 @@
#include <string>
#include "sim/pseudo_inst.hh"
#include "arch/vtophys.hh"
#include "base/annotate.hh"
#include "cpu/base.hh"
#include "cpu/thread_context.hh"
#include "cpu/quiesce_event.hh"
#include "kern/kernel_stats.hh"
#include "arch/kernel_stats.hh"
#include "sim/param.hh"
#include "sim/pseudo_inst.hh"
#include "sim/serialize.hh"
#include "sim/sim_exit.hh"
#include "sim/stat_control.hh"