inst_dep_record.proto revision 11807:63325e5b0a9d
11388SN/A// Copyright (c) 2013,2017 ARM Limited 21388SN/A// All rights reserved 31388SN/A// 41388SN/A// The license below extends only to copyright in the software and shall 51388SN/A// not be construed as granting a license to any other intellectual 61388SN/A// property including but not limited to intellectual property relating 71388SN/A// to a hardware implementation of the functionality of the software 81388SN/A// licensed hereunder. You may use the software subject to the license 91388SN/A// terms below provided that you ensure that this notice is replicated 101388SN/A// unmodified and in its entirety in all distributions of the software, 111388SN/A// modified or unmodified, in source code or in binary form. 121388SN/A// 131388SN/A// Redistribution and use in source and binary forms, with or without 141388SN/A// modification, are permitted provided that the following conditions are 151388SN/A// met: redistributions of source code must retain the above copyright 161388SN/A// notice, this list of conditions and the following disclaimer; 171388SN/A// redistributions in binary form must reproduce the above copyright 181388SN/A// notice, this list of conditions and the following disclaimer in the 191388SN/A// documentation and/or other materials provided with the distribution; 201388SN/A// neither the name of the copyright holders nor the names of its 211388SN/A// contributors may be used to endorse or promote products derived from 221388SN/A// this software without specific prior written permission. 231388SN/A// 241388SN/A// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 251388SN/A// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 261388SN/A// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 272665Ssaidi@eecs.umich.edu// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 282665Ssaidi@eecs.umich.edu// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 298634Schris.emmons@arm.com// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 301388SN/A// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 311388SN/A// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 321388SN/A// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 331388SN/A// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 341388SN/A// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 355749Scws3k@cs.virginia.edu// 361388SN/A// Authors: Radhika Jagtap 371388SN/A 381388SN/Asyntax = "proto2"; 398634Schris.emmons@arm.com 401388SN/A// Put all the generated messages in a namespace 411388SN/Apackage ProtoMessage; 421388SN/A 438634Schris.emmons@arm.com// Packet header for the o3cpu data dependency trace. The header fields are the 441388SN/A// identifier describing what object captured the trace, the version of this 451388SN/A// file format, the tick frequency of the object and the window size used to 468634Schris.emmons@arm.com// limit the register dependencies during capture. 471388SN/Amessage InstDepRecordHeader { 488634Schris.emmons@arm.com required string obj_id = 1; 498634Schris.emmons@arm.com optional uint32 ver = 2 [default = 0]; 501388SN/A required uint64 tick_freq = 3; 511388SN/A required uint32 window_size = 4; 528634Schris.emmons@arm.com} 538634Schris.emmons@arm.com 548634Schris.emmons@arm.com// Packet to encapsulate an instruction in the o3cpu data dependency trace. 558634Schris.emmons@arm.com// The required fields include the instruction sequence number and the type 568634Schris.emmons@arm.com// of the record associated with the instruction e.g. load. The request related 578634Schris.emmons@arm.com// fields are optional, namely address, size and flags. The dependency related 588634Schris.emmons@arm.com// information includes a repeated field for order dependencies and register 598634Schris.emmons@arm.com// dependencies for loads, stores and comp records. There is a field for the 608634Schris.emmons@arm.com// computational delay with respect to the dependency that completed last. A 618634Schris.emmons@arm.com// weight field is used to account for committed instruction that were 628634Schris.emmons@arm.com// filtered out before writing the trace and is used to estimate ROB 635749Scws3k@cs.virginia.edu// occupancy during replay. An optional field is provided for the instruction 645749Scws3k@cs.virginia.edu// PC. 655749Scws3k@cs.virginia.edumessage InstDepRecord { 668634Schris.emmons@arm.com enum RecordType { 678634Schris.emmons@arm.com INVALID = 0; 688634Schris.emmons@arm.com LOAD = 1; 698634Schris.emmons@arm.com STORE = 2; 708634Schris.emmons@arm.com COMP = 3; 718634Schris.emmons@arm.com } 728634Schris.emmons@arm.com required uint64 seq_num = 1; 738634Schris.emmons@arm.com required RecordType type = 2 [default = INVALID]; 745749Scws3k@cs.virginia.edu optional uint64 p_addr = 3; 758634Schris.emmons@arm.com optional uint32 size = 4; 768634Schris.emmons@arm.com optional uint32 flags = 5; 778634Schris.emmons@arm.com repeated uint64 rob_dep = 6; 788634Schris.emmons@arm.com required uint64 comp_delay = 7; 798634Schris.emmons@arm.com repeated uint64 reg_dep = 8; 808634Schris.emmons@arm.com optional uint32 weight = 9; 818634Schris.emmons@arm.com optional uint64 pc = 10; 828634Schris.emmons@arm.com optional uint64 v_addr = 11; 838634Schris.emmons@arm.com optional uint32 asid = 12; 845749Scws3k@cs.virginia.edu}