kernel_stats.hh revision 5254
13561SN/A/*
23561SN/A * Copyright (c) 2004-2005 The Regents of The University of Michigan
33561SN/A * All rights reserved.
43561SN/A *
53561SN/A * Redistribution and use in source and binary forms, with or without
63561SN/A * modification, are permitted provided that the following conditions are
73561SN/A * met: redistributions of source code must retain the above copyright
83561SN/A * notice, this list of conditions and the following disclaimer;
93561SN/A * redistributions in binary form must reproduce the above copyright
103561SN/A * notice, this list of conditions and the following disclaimer in the
113561SN/A * documentation and/or other materials provided with the distribution;
123561SN/A * neither the name of the copyright holders nor the names of its
133561SN/A * contributors may be used to endorse or promote products derived from
143561SN/A * this software without specific prior written permission.
153561SN/A *
163561SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
173561SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
183561SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
193561SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
203561SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
213561SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
223561SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
233561SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
243561SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
253561SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
263561SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
273561SN/A *
283561SN/A * Authors: Lisa Hsu
293561SN/A *          Nathan Binkert
303561SN/A */
316757SAli.Saidi@ARM.com
326757SAli.Saidi@ARM.com#ifndef __ARCH_MIPS_KERNEL_STATS_HH__
333561SN/A#define __ARCH_MIPS_KERNEL_STATS_HH__
343565SN/A
353561SN/A#include <map>
366757SAli.Saidi@ARM.com#include <stack>
373561SN/A#include <string>
383561SN/A#include <vector>
393561SN/A
403561SN/A#include "kern/kernel_stats.hh"
413561SN/A
4212181Sgabeblack@google.comnamespace MipsISA {
433561SN/Anamespace Kernel {
443561SN/A
453561SN/Aenum cpu_mode { kernel, user, idle, cpu_mode_num };
467811Ssteve.reinhardt@amd.comextern const char *modestr[];
477811Ssteve.reinhardt@amd.com
483561SN/Aclass Statistics : public ::Kernel::Statistics
496757SAli.Saidi@ARM.com{
50  public:
51    Statistics(System *system) : ::Kernel::Statistics(system)
52    {}
53};
54
55
56} /* end namespace MipsISA::Kernel */
57} /* end namespace MipsISA */
58
59#endif // __ARCH_MIPS_KERNEL_STATS_HH__
60