kernel_stats.hh revision 3561
12315SN/A/*
22332SN/A * Copyright (c) 2004-2005 The Regents of The University of Michigan
32315SN/A * All rights reserved.
42315SN/A *
52315SN/A * Redistribution and use in source and binary forms, with or without
62315SN/A * modification, are permitted provided that the following conditions are
72315SN/A * met: redistributions of source code must retain the above copyright
82315SN/A * notice, this list of conditions and the following disclaimer;
92315SN/A * redistributions in binary form must reproduce the above copyright
102315SN/A * notice, this list of conditions and the following disclaimer in the
112315SN/A * documentation and/or other materials provided with the distribution;
122315SN/A * neither the name of the copyright holders nor the names of its
132315SN/A * contributors may be used to endorse or promote products derived from
142315SN/A * this software without specific prior written permission.
152315SN/A *
162315SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
172315SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
182315SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
192315SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
202315SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
212315SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
222315SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
232315SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
242315SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
252315SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
262315SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272689SN/A *
282689SN/A * Authors: Gabe Black
292315SN/A */
302315SN/A
312315SN/A#ifndef __ARCH_SPARC_KERNEL_STATS_HH__
322315SN/A#define __ARCH_SPARC_KERNEL_STATS_HH__
332315SN/A
342315SN/A#include <map>
352315SN/A#include <stack>
362315SN/A#include <string>
372683SN/A#include <vector>
382680SN/A
392315SN/A#include "kern/base_kernel_stats.hh"
402722SN/A
412315SN/Anamespace SparcISA {
422315SN/Anamespace Kernel {
432315SN/A
442315SN/Aenum cpu_mode { hypervisor, kernel, user, idle, cpu_mode_num };
452315SN/Aextern const char *modestr[];
462315SN/A
472315SN/Aclass Statistics : public ::Kernel::Statistics
482315SN/A{
492315SN/A  public:
502315SN/A    Statistics(System *system) : ::Kernel::Statistics(system)
512315SN/A    {}
522315SN/A};
532315SN/A
542315SN/A} /* end namespace AlphaISA::Kernel */
552732SN/A} /* end namespace AlphaISA */
562315SN/A
572315SN/A#endif // __ARCH_SPARC_KERNEL_STATS_HH__
582315SN/A