kernel_stats.hh revision 3565:6ad587fb7dfd
13931Ssaidi@eecs.umich.edu/*
23388Sgblack@eecs.umich.edu * Copyright (c) 2004-2005 The Regents of The University of Michigan
33388Sgblack@eecs.umich.edu * All rights reserved.
43388Sgblack@eecs.umich.edu *
53388Sgblack@eecs.umich.edu * Redistribution and use in source and binary forms, with or without
63388Sgblack@eecs.umich.edu * modification, are permitted provided that the following conditions are
73388Sgblack@eecs.umich.edu * met: redistributions of source code must retain the above copyright
83388Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer;
93388Sgblack@eecs.umich.edu * redistributions in binary form must reproduce the above copyright
103388Sgblack@eecs.umich.edu * notice, this list of conditions and the following disclaimer in the
113388Sgblack@eecs.umich.edu * documentation and/or other materials provided with the distribution;
123388Sgblack@eecs.umich.edu * neither the name of the copyright holders nor the names of its
133388Sgblack@eecs.umich.edu * contributors may be used to endorse or promote products derived from
143388Sgblack@eecs.umich.edu * this software without specific prior written permission.
153388Sgblack@eecs.umich.edu *
163388Sgblack@eecs.umich.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
173388Sgblack@eecs.umich.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
183388Sgblack@eecs.umich.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
193388Sgblack@eecs.umich.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
203388Sgblack@eecs.umich.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
213388Sgblack@eecs.umich.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
223388Sgblack@eecs.umich.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
233388Sgblack@eecs.umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
243388Sgblack@eecs.umich.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
253388Sgblack@eecs.umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
263388Sgblack@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
273388Sgblack@eecs.umich.edu *
283388Sgblack@eecs.umich.edu * Authors: Gabe Black
293388Sgblack@eecs.umich.edu */
303388Sgblack@eecs.umich.edu
313388Sgblack@eecs.umich.edu#ifndef __ARCH_SPARC_KERNEL_STATS_HH__
323388Sgblack@eecs.umich.edu#define __ARCH_SPARC_KERNEL_STATS_HH__
333388Sgblack@eecs.umich.edu
343388Sgblack@eecs.umich.edu#include <map>
353388Sgblack@eecs.umich.edu#include <stack>
363441Sgblack@eecs.umich.edu#include <string>
373441Sgblack@eecs.umich.edu#include <vector>
383441Sgblack@eecs.umich.edu
393441Sgblack@eecs.umich.edu#include "kern/kernel_stats.hh"
403441Sgblack@eecs.umich.edu
413441Sgblack@eecs.umich.edunamespace SparcISA {
423441Sgblack@eecs.umich.edunamespace Kernel {
433441Sgblack@eecs.umich.edu
443441Sgblack@eecs.umich.eduenum cpu_mode { hypervisor, kernel, user, idle, cpu_mode_num };
453441Sgblack@eecs.umich.eduextern const char *modestr[];
463441Sgblack@eecs.umich.edu
473441Sgblack@eecs.umich.educlass Statistics : public ::Kernel::Statistics
483441Sgblack@eecs.umich.edu{
493441Sgblack@eecs.umich.edu  public:
503441Sgblack@eecs.umich.edu    Statistics(System *system) : ::Kernel::Statistics(system)
513441Sgblack@eecs.umich.edu    {}
523441Sgblack@eecs.umich.edu};
533441Sgblack@eecs.umich.edu
543441Sgblack@eecs.umich.edu} /* end namespace AlphaISA::Kernel */
553441Sgblack@eecs.umich.edu} /* end namespace AlphaISA */
563441Sgblack@eecs.umich.edu
573441Sgblack@eecs.umich.edu#endif // __ARCH_SPARC_KERNEL_STATS_HH__
583441Sgblack@eecs.umich.edu