Deleted Added
sdiff udiff text old ( 2680:246e7104f744 ) new ( 2716:b9114064d77a )
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;

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

42class BaseCPU;
43class ThreadContext;
44class FnEvent;
45// What does kernel stats expect is included?
46class System;
47
48namespace Kernel {
49
50enum cpu_mode { kernel, user, idle, cpu_mode_num };
51extern const char *modestr[];
52
53class Statistics : public Serializable
54{
55 private:
56 std::string myname;
57
58 Addr idleProcess;
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;

--- 49 unchanged lines hidden ---