kernel_stats.hh revision 6757
110260SAndrew.Bardsley@arm.com/* 210260SAndrew.Bardsley@arm.com * Copyright (c) 2004-2005 The Regents of The University of Michigan 310260SAndrew.Bardsley@arm.com * All rights reserved. 410260SAndrew.Bardsley@arm.com * 510260SAndrew.Bardsley@arm.com * Redistribution and use in source and binary forms, with or without 610260SAndrew.Bardsley@arm.com * modification, are permitted provided that the following conditions are 710260SAndrew.Bardsley@arm.com * met: redistributions of source code must retain the above copyright 810260SAndrew.Bardsley@arm.com * notice, this list of conditions and the following disclaimer; 910260SAndrew.Bardsley@arm.com * redistributions in binary form must reproduce the above copyright 1010260SAndrew.Bardsley@arm.com * notice, this list of conditions and the following disclaimer in the 1110260SAndrew.Bardsley@arm.com * documentation and/or other materials provided with the distribution; 1210260SAndrew.Bardsley@arm.com * neither the name of the copyright holders nor the names of its 1310260SAndrew.Bardsley@arm.com * contributors may be used to endorse or promote products derived from 1410260SAndrew.Bardsley@arm.com * this software without specific prior written permission. 1510260SAndrew.Bardsley@arm.com * 1610260SAndrew.Bardsley@arm.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1710260SAndrew.Bardsley@arm.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1810260SAndrew.Bardsley@arm.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1910260SAndrew.Bardsley@arm.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2010260SAndrew.Bardsley@arm.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2110260SAndrew.Bardsley@arm.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2210260SAndrew.Bardsley@arm.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2310260SAndrew.Bardsley@arm.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2410260SAndrew.Bardsley@arm.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2510260SAndrew.Bardsley@arm.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2610260SAndrew.Bardsley@arm.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2710260SAndrew.Bardsley@arm.com * 2810260SAndrew.Bardsley@arm.com * Authors: Gabe Black 2910260SAndrew.Bardsley@arm.com */ 3010260SAndrew.Bardsley@arm.com 3110260SAndrew.Bardsley@arm.com#ifndef __ARCH_ARM_KERNEL_STATS_HH__ 3210260SAndrew.Bardsley@arm.com#define __ARCH_ARM_KERNEL_STATS_HH__ 3310260SAndrew.Bardsley@arm.com 3410260SAndrew.Bardsley@arm.com#include <map> 3510260SAndrew.Bardsley@arm.com#include <stack> 3610260SAndrew.Bardsley@arm.com#include <string> 3710260SAndrew.Bardsley@arm.com#include <vector> 3810260SAndrew.Bardsley@arm.com 3910260SAndrew.Bardsley@arm.com#include "kern/kernel_stats.hh" 4010260SAndrew.Bardsley@arm.com 4110260SAndrew.Bardsley@arm.comnamespace ArmISA { 4210260SAndrew.Bardsley@arm.comnamespace Kernel { 4310260SAndrew.Bardsley@arm.com 4410260SAndrew.Bardsley@arm.comenum cpu_mode { hypervisor, kernel, user, idle, cpu_mode_num }; 4510260SAndrew.Bardsley@arm.comextern const char *modestr[]; 4610260SAndrew.Bardsley@arm.com 47class Statistics : public ::Kernel::Statistics 48{ 49 public: 50 Statistics(System *system) : ::Kernel::Statistics(system) 51 {} 52}; 53 54} /* end namespace ArmISA::Kernel */ 55} /* end namespace ArmISA */ 56 57#endif // __ARCH_ARM_KERNEL_STATS_HH__ 58