kernel_stats.hh revision 11723
12440SN/A/*
22440SN/A * Copyright (c) 2004-2005 The Regents of The University of Michigan
32440SN/A * All rights reserved.
42440SN/A *
52440SN/A * Redistribution and use in source and binary forms, with or without
62440SN/A * modification, are permitted provided that the following conditions are
72440SN/A * met: redistributions of source code must retain the above copyright
82440SN/A * notice, this list of conditions and the following disclaimer;
92440SN/A * redistributions in binary form must reproduce the above copyright
102440SN/A * notice, this list of conditions and the following disclaimer in the
112440SN/A * documentation and/or other materials provided with the distribution;
122440SN/A * neither the name of the copyright holders nor the names of its
132440SN/A * contributors may be used to endorse or promote products derived from
142440SN/A * this software without specific prior written permission.
152440SN/A *
162440SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
172440SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
182440SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
192440SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
202440SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
212440SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
222440SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
232440SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
242440SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
252440SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
262440SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272665Ssaidi@eecs.umich.edu *
282665Ssaidi@eecs.umich.edu * Authors: Lisa Hsu
292665Ssaidi@eecs.umich.edu *          Nathan Binkert
302440SN/A */
312440SN/A
322440SN/A#ifndef __ARCH_RISCV_KERNEL_STATS_HH__
332440SN/A#define __ARCH_RISCV_KERNEL_STATS_HH__
342440SN/A
352440SN/A#include "kern/kernel_stats.hh"
362972Sgblack@eecs.umich.edu
376330Sgblack@eecs.umich.edunamespace RiscvISA {
382440SN/Anamespace Kernel {
395569Snate@binkert.org
403120Sgblack@eecs.umich.eduenum cpu_mode { kernel, user, idle, cpu_mode_num };
412440SN/Aextern const char *modestr[];
425569Snate@binkert.org
435569Snate@binkert.orgclass Statistics : public ::Kernel::Statistics
447707Sgblack@eecs.umich.edu{
455569Snate@binkert.org  public:
465569Snate@binkert.org    Statistics(System *system) : ::Kernel::Statistics(system)
475569Snate@binkert.org    {}
482440SN/A};
495569Snate@binkert.org
505569Snate@binkert.org
514826Ssaidi@eecs.umich.edu} // namespace RiscvISA::Kernel
525569Snate@binkert.org} // namespace RiscvISA
535569Snate@binkert.org
545569Snate@binkert.org#endif // __ARCH_RISCV_KERNEL_STATS_HH__
555569Snate@binkert.org