kernel_stats.cc (7811:a8fc35183c10) kernel_stats.cc (7823:dac01f14f20f)
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;

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

115 assert(ipl >= 0 && ipl <= 0x1f && "invalid IPL\n");
116
117 _iplCount[ipl]++;
118
119 if (ipl == iplLast)
120 return;
121
122 _iplGood[ipl]++;
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;

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

115 assert(ipl >= 0 && ipl <= 0x1f && "invalid IPL\n");
116
117 _iplCount[ipl]++;
118
119 if (ipl == iplLast)
120 return;
121
122 _iplGood[ipl]++;
123 _iplTicks[iplLast] += curTick - iplLastTick;
124 iplLastTick = curTick;
123 _iplTicks[iplLast] += curTick() - iplLastTick;
124 iplLastTick = curTick();
125 iplLast = ipl;
126}
127
128void
129Statistics::serialize(ostream &os)
130{
131 SERIALIZE_SCALAR(iplLast);
132 SERIALIZE_SCALAR(iplLastTick);
133}
134
135void
136Statistics::unserialize(Checkpoint *cp, const string &section)
137{
138 UNSERIALIZE_SCALAR(iplLast);
139 UNSERIALIZE_SCALAR(iplLastTick);
140}
141
142} // namespace Kernel
125 iplLast = ipl;
126}
127
128void
129Statistics::serialize(ostream &os)
130{
131 SERIALIZE_SCALAR(iplLast);
132 SERIALIZE_SCALAR(iplLastTick);
133}
134
135void
136Statistics::unserialize(Checkpoint *cp, const string &section)
137{
138 UNSERIALIZE_SCALAR(iplLast);
139 UNSERIALIZE_SCALAR(iplLastTick);
140}
141
142} // namespace Kernel