kernel_stats.hh revision 7811
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: Gabe Black 293561SN/A */ 303561SN/A 313561SN/A#ifndef __ARCH_SPARC_KERNEL_STATS_HH__ 323561SN/A#define __ARCH_SPARC_KERNEL_STATS_HH__ 333561SN/A 343561SN/A#include <map> 353561SN/A#include <stack> 363561SN/A#include <string> 373561SN/A#include <vector> 383561SN/A 393565Sgblack@eecs.umich.edu#include "kern/kernel_stats.hh" 403561SN/A 413561SN/Anamespace SparcISA { 423561SN/Anamespace Kernel { 433561SN/A 443561SN/Aenum cpu_mode { hypervisor, kernel, user, idle, cpu_mode_num }; 453561SN/Aextern const char *modestr[]; 463561SN/A 473561SN/Aclass Statistics : public ::Kernel::Statistics 483561SN/A{ 493561SN/A public: 503561SN/A Statistics(System *system) : ::Kernel::Statistics(system) 513561SN/A {} 523561SN/A}; 533561SN/A 547811Ssteve.reinhardt@amd.com} // namespace AlphaISA::Kernel 557811Ssteve.reinhardt@amd.com} // namespace AlphaISA 563561SN/A 573561SN/A#endif // __ARCH_SPARC_KERNEL_STATS_HH__ 58