1695SN/A/* 214205Sandreas.sandberg@arm.com * Copyright (c) 2019 Arm Limited 314205Sandreas.sandberg@arm.com * All rights reserved. 414205Sandreas.sandberg@arm.com * 514205Sandreas.sandberg@arm.com * The license below extends only to copyright in the software and shall 614205Sandreas.sandberg@arm.com * not be construed as granting a license to any other intellectual 714205Sandreas.sandberg@arm.com * property including but not limited to intellectual property relating 814205Sandreas.sandberg@arm.com * to a hardware implementation of the functionality of the software 914205Sandreas.sandberg@arm.com * licensed hereunder. You may use the software subject to the license 1014205Sandreas.sandberg@arm.com * terms below provided that you ensure that this notice is replicated 1114205Sandreas.sandberg@arm.com * unmodified and in its entirety in all distributions of the software, 1214205Sandreas.sandberg@arm.com * modified or unmodified, in source code or in binary form. 1314205Sandreas.sandberg@arm.com * 141762SN/A * Copyright (c) 2004-2005 The Regents of The University of Michigan 15695SN/A * All rights reserved. 16695SN/A * 17695SN/A * Redistribution and use in source and binary forms, with or without 18695SN/A * modification, are permitted provided that the following conditions are 19695SN/A * met: redistributions of source code must retain the above copyright 20695SN/A * notice, this list of conditions and the following disclaimer; 21695SN/A * redistributions in binary form must reproduce the above copyright 22695SN/A * notice, this list of conditions and the following disclaimer in the 23695SN/A * documentation and/or other materials provided with the distribution; 24695SN/A * neither the name of the copyright holders nor the names of its 25695SN/A * contributors may be used to endorse or promote products derived from 26695SN/A * this software without specific prior written permission. 27695SN/A * 28695SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 29695SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 30695SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 31695SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 32695SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 33695SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 34695SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 35695SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 36695SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 37695SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 38695SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 392665Ssaidi@eecs.umich.edu * 402665Ssaidi@eecs.umich.edu * Authors: Nathan Binkert 41695SN/A */ 42695SN/A 43695SN/A#ifndef __BASE_STATS_OUTPUT_HH__ 44695SN/A#define __BASE_STATS_OUTPUT_HH__ 45695SN/A 468296Snate@binkert.org#include <list> 47695SN/A#include <string> 48695SN/A 49729SN/Anamespace Stats { 50695SN/A 518296Snate@binkert.orgclass Info; 528296Snate@binkert.orgclass ScalarInfo; 538296Snate@binkert.orgclass VectorInfo; 548296Snate@binkert.orgclass DistInfo; 558296Snate@binkert.orgclass VectorDistInfo; 568296Snate@binkert.orgclass Vector2dInfo; 578296Snate@binkert.orgclass FormulaInfo; 588514SThomas.Grass@ARM.comclass SparseHistInfo; // Sparse histogram 598296Snate@binkert.org 608296Snate@binkert.orgstruct Output 61695SN/A{ 628338Sgblack@eecs.umich.edu virtual ~Output() {} 6314205Sandreas.sandberg@arm.com 648296Snate@binkert.org virtual void begin() = 0; 658296Snate@binkert.org virtual void end() = 0; 66695SN/A virtual bool valid() const = 0; 678296Snate@binkert.org 6814205Sandreas.sandberg@arm.com virtual void beginGroup(const char *name) = 0; 6914205Sandreas.sandberg@arm.com virtual void endGroup() = 0; 7014205Sandreas.sandberg@arm.com 718296Snate@binkert.org virtual void visit(const ScalarInfo &info) = 0; 728296Snate@binkert.org virtual void visit(const VectorInfo &info) = 0; 738296Snate@binkert.org virtual void visit(const DistInfo &info) = 0; 748296Snate@binkert.org virtual void visit(const VectorDistInfo &info) = 0; 758296Snate@binkert.org virtual void visit(const Vector2dInfo &info) = 0; 768296Snate@binkert.org virtual void visit(const FormulaInfo &info) = 0; 778514SThomas.Grass@ARM.com virtual void visit(const SparseHistInfo &info) = 0; // Sparse histogram 78695SN/A}; 79695SN/A 807811Ssteve.reinhardt@amd.com} // namespace Stats 81695SN/A 82695SN/A#endif // __BASE_STATS_OUTPUT_HH__ 83