kernel_stats.cc (9329:3fe8438cbcfc) | kernel_stats.cc (10905:a6ca6831e775) |
---|---|
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; --- 180 unchanged lines hidden (view full) --- 189 int cvtnum = SystemCalls<Tru64>::convert(number); 190 _syscall[cvtnum]++; 191 } 192 } break; 193 } 194} 195 196void | 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; --- 180 unchanged lines hidden (view full) --- 189 int cvtnum = SystemCalls<Tru64>::convert(number); 190 _syscall[cvtnum]++; 191 } 192 } break; 193 } 194} 195 196void |
197Statistics::serialize(ostream &os) | 197Statistics::serialize(CheckpointOut &cp) const |
198{ | 198{ |
199 ::Kernel::Statistics::serialize(os); | 199 ::Kernel::Statistics::serialize(cp); |
200 int exemode = themode; 201 SERIALIZE_SCALAR(exemode); 202 SERIALIZE_SCALAR(idleProcess); 203 SERIALIZE_SCALAR(lastModeTick); 204} 205 206void | 200 int exemode = themode; 201 SERIALIZE_SCALAR(exemode); 202 SERIALIZE_SCALAR(idleProcess); 203 SERIALIZE_SCALAR(lastModeTick); 204} 205 206void |
207Statistics::unserialize(Checkpoint *cp, const string §ion) | 207Statistics::unserialize(CheckpointIn &cp) |
208{ | 208{ |
209 ::Kernel::Statistics::unserialize(cp, section); | 209 ::Kernel::Statistics::unserialize(cp); |
210 int exemode; 211 UNSERIALIZE_SCALAR(exemode); 212 UNSERIALIZE_SCALAR(idleProcess); 213 UNSERIALIZE_SCALAR(lastModeTick); 214 themode = (cpu_mode)exemode; 215} 216 217} // namespace Kernel 218} // namespace AlphaISA | 210 int exemode; 211 UNSERIALIZE_SCALAR(exemode); 212 UNSERIALIZE_SCALAR(idleProcess); 213 UNSERIALIZE_SCALAR(lastModeTick); 214 themode = (cpu_mode)exemode; 215} 216 217} // namespace Kernel 218} // namespace AlphaISA |