kernel_stats.hh revision 5254
15222Sksewell@umich.edu/* 25254Sksewell@umich.edu * Copyright (c) 2004-2005 The Regents of The University of Michigan 35254Sksewell@umich.edu * All rights reserved. 45222Sksewell@umich.edu * 55254Sksewell@umich.edu * Redistribution and use in source and binary forms, with or without 65254Sksewell@umich.edu * modification, are permitted provided that the following conditions are 75254Sksewell@umich.edu * met: redistributions of source code must retain the above copyright 85254Sksewell@umich.edu * notice, this list of conditions and the following disclaimer; 95254Sksewell@umich.edu * redistributions in binary form must reproduce the above copyright 105254Sksewell@umich.edu * notice, this list of conditions and the following disclaimer in the 115254Sksewell@umich.edu * documentation and/or other materials provided with the distribution; 125254Sksewell@umich.edu * neither the name of the copyright holders nor the names of its 135254Sksewell@umich.edu * contributors may be used to endorse or promote products derived from 145254Sksewell@umich.edu * this software without specific prior written permission. 155222Sksewell@umich.edu * 165254Sksewell@umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 175254Sksewell@umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 185254Sksewell@umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 195254Sksewell@umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 205254Sksewell@umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 215254Sksewell@umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 225254Sksewell@umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 235254Sksewell@umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 245254Sksewell@umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 255254Sksewell@umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 265254Sksewell@umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 275222Sksewell@umich.edu * 285254Sksewell@umich.edu * Authors: Lisa Hsu 295254Sksewell@umich.edu * Nathan Binkert 305222Sksewell@umich.edu */ 315222Sksewell@umich.edu 325222Sksewell@umich.edu#ifndef __ARCH_MIPS_KERNEL_STATS_HH__ 335222Sksewell@umich.edu#define __ARCH_MIPS_KERNEL_STATS_HH__ 345222Sksewell@umich.edu 355222Sksewell@umich.edu#include <map> 365222Sksewell@umich.edu#include <stack> 375222Sksewell@umich.edu#include <string> 385222Sksewell@umich.edu#include <vector> 395222Sksewell@umich.edu 405222Sksewell@umich.edu#include "kern/kernel_stats.hh" 415222Sksewell@umich.edu 425222Sksewell@umich.edunamespace MipsISA { 435222Sksewell@umich.edunamespace Kernel { 445222Sksewell@umich.edu 455222Sksewell@umich.eduenum cpu_mode { kernel, user, idle, cpu_mode_num }; 465222Sksewell@umich.eduextern const char *modestr[]; 475222Sksewell@umich.edu 485222Sksewell@umich.educlass Statistics : public ::Kernel::Statistics 495222Sksewell@umich.edu{ 505222Sksewell@umich.edu public: 515222Sksewell@umich.edu Statistics(System *system) : ::Kernel::Statistics(system) 525222Sksewell@umich.edu {} 535222Sksewell@umich.edu}; 545222Sksewell@umich.edu 555222Sksewell@umich.edu 565222Sksewell@umich.edu} /* end namespace MipsISA::Kernel */ 575222Sksewell@umich.edu} /* end namespace MipsISA */ 585222Sksewell@umich.edu 595222Sksewell@umich.edu#endif // __ARCH_MIPS_KERNEL_STATS_HH__ 60