Deleted Added
sdiff udiff text old ( 2716:b9114064d77a ) new ( 3544:3db423e3b41d )
full compact
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 50 unchanged lines hidden (view full) ---

59 cpu_mode themode;
60 Tick lastModeTick;
61
62 void changeMode(cpu_mode newmode, ThreadContext *tc);
63
64 private:
65 Stats::Scalar<> _arm;
66 Stats::Scalar<> _quiesce;
67 Stats::Scalar<> _hwrei;
68
69 Stats::Vector<> _iplCount;
70 Stats::Vector<> _iplGood;
71 Stats::Vector<> _iplTicks;
72 Stats::Formula _iplUsed;
73
74 Stats::Vector<> _callpal;

--- 15 unchanged lines hidden (view full) ---

90 Statistics(System *system);
91
92 const std::string name() const { return myname; }
93 void regStats(const std::string &name);
94
95 public:
96 void arm() { _arm++; }
97 void quiesce() { _quiesce++; }
98 void hwrei() { _hwrei++; }
99 void swpipl(int ipl);
100 void mode(cpu_mode newmode, ThreadContext *tc);
101 void context(Addr oldpcbb, Addr newpcbb, ThreadContext *tc);
102 void callpal(int code, ThreadContext *tc);
103
104 void setIdleProcess(Addr idle, ThreadContext *tc);
105
106 public:
107 virtual void serialize(std::ostream &os);
108 virtual void unserialize(Checkpoint *cp, const std::string &section);
109};
110
111/* end namespace Kernel */ }
112
113#endif // __KERNEL_STATS_HH__