stat_control.hh revision 729
11689SN/A/*
22329SN/A * Copyright (c) 2003 The Regents of The University of Michigan
31689SN/A * All rights reserved.
41689SN/A *
51689SN/A * Redistribution and use in source and binary forms, with or without
61689SN/A * modification, are permitted provided that the following conditions are
71689SN/A * met: redistributions of source code must retain the above copyright
81689SN/A * notice, this list of conditions and the following disclaimer;
91689SN/A * redistributions in binary form must reproduce the above copyright
101689SN/A * notice, this list of conditions and the following disclaimer in the
111689SN/A * documentation and/or other materials provided with the distribution;
121689SN/A * neither the name of the copyright holders nor the names of its
131689SN/A * contributors may be used to endorse or promote products derived from
141689SN/A * this software without specific prior written permission.
151689SN/A *
161689SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
171689SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
181689SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
191689SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
201689SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
211689SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
221689SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
231689SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
241689SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
251689SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
261689SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
272665Ssaidi@eecs.umich.edu */
282665Ssaidi@eecs.umich.edu
292935Sksewell@umich.edu#ifndef __SIM_STAT_CONTROL_HH__
301689SN/A#define __SIM_STAT_CONTROL_HH__
311689SN/A
321060SN/A#include <fstream>
331060SN/A#include <list>
343773Sgblack@eecs.umich.edu
353773Sgblack@eecs.umich.edunamespace Stats {
361858SN/A
371717SN/Aenum {
381060SN/A    Reset = 0x1,
391061SN/A    Dump = 0x2
402292SN/A};
412292SN/A
422292SN/Aclass Output;
432292SN/Aextern std::list<Output *> OutputList;
442292SN/A
452292SN/Avoid DumpNow();
463788Sgblack@eecs.umich.eduvoid SetupEvent(int flags, Tick when, Tick repeat = 0);
473798Sgblack@eecs.umich.edu
482361SN/Avoid InitSimStats();
492361SN/A
501060SN/A/* namespace Stats */ }
512292SN/A
522292SN/A#endif // __SIM_STAT_CONTROL_HH__
532292SN/A