kernel_stats.hh (2716:b9114064d77a) kernel_stats.hh (3544:3db423e3b41d)
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;
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<> _ivlb;
68 Stats::Scalar<> _ivle;
69 Stats::Scalar<> _hwrei;
70
71 Stats::Vector<> _iplCount;
72 Stats::Vector<> _iplGood;
73 Stats::Vector<> _iplTicks;
74 Stats::Formula _iplUsed;
75
76 Stats::Vector<> _callpal;

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

92 Statistics(System *system);
93
94 const std::string name() const { return myname; }
95 void regStats(const std::string &name);
96
97 public:
98 void arm() { _arm++; }
99 void quiesce() { _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++; }
100 void ivlb() { _ivlb++; }
101 void ivle() { _ivle++; }
102 void hwrei() { _hwrei++; }
103 void swpipl(int ipl);
104 void mode(cpu_mode newmode, ThreadContext *tc);
105 void context(Addr oldpcbb, Addr newpcbb, ThreadContext *tc);
106 void callpal(int code, ThreadContext *tc);
107
108 void setIdleProcess(Addr idle, ThreadContext *tc);
109
110 public:
111 virtual void serialize(std::ostream &os);
112 virtual void unserialize(Checkpoint *cp, const std::string &section);
113};
114
115/* end namespace Kernel */ }
116
117#endif // __KERNEL_STATS_HH__
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__