cp_annotate.hh (10377:434228c914e5) | cp_annotate.hh (10470:2c6a72e919f6) |
---|---|
1/* 2 * Copyright (c) 2014 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 31 unchanged lines hidden (view full) --- 40 * Authors: Ali Saidi 41 */ 42 43#ifndef __BASE__CP_ANNOTATE_HH__ 44#define __BASE__CP_ANNOTATE_HH__ 45 46#include <list> 47#include <map> | 1/* 2 * Copyright (c) 2014 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 31 unchanged lines hidden (view full) --- 40 * Authors: Ali Saidi 41 */ 42 43#ifndef __BASE__CP_ANNOTATE_HH__ 44#define __BASE__CP_ANNOTATE_HH__ 45 46#include <list> 47#include <map> |
48#include <memory> |
|
48#include <string> 49#include <vector> 50 51#include "base/loader/symtab.hh" 52#include "base/hashmap.hh" 53#include "base/trace.hh" 54#include "base/types.hh" 55#include "debug/AnnotateQ.hh" --- 128 unchanged lines hidden (view full) --- 184 protected: 185 const Params * 186 params() const 187 { 188 return dynamic_cast<const Params *>(_params); 189 } 190 191 /* struct that is written to the annotation output file */ | 49#include <string> 50#include <vector> 51 52#include "base/loader/symtab.hh" 53#include "base/hashmap.hh" 54#include "base/trace.hh" 55#include "base/types.hh" 56#include "debug/AnnotateQ.hh" --- 128 unchanged lines hidden (view full) --- 185 protected: 186 const Params * 187 params() const 188 { 189 return dynamic_cast<const Params *>(_params); 190 } 191 192 /* struct that is written to the annotation output file */ |
192 struct AnnotateData : public RefCounted { | 193 struct AnnotateData { |
193 194 Tick time; 195 uint32_t data; 196 uint32_t orig_data; 197 uint16_t sm; 198 uint16_t stq; 199 uint8_t op; 200 uint8_t flag; 201 uint8_t cpu; 202 bool dump; 203 204 void serialize(std::ostream &os); 205 void unserialize(Checkpoint *cp, const std::string §ion); 206 207 }; 208 | 194 195 Tick time; 196 uint32_t data; 197 uint32_t orig_data; 198 uint16_t sm; 199 uint16_t stq; 200 uint8_t op; 201 uint8_t flag; 202 uint8_t cpu; 203 bool dump; 204 205 void serialize(std::ostream &os); 206 void unserialize(Checkpoint *cp, const std::string §ion); 207 208 }; 209 |
209 typedef RefCountingPtr<AnnotateData> AnnDataPtr; | 210 typedef std::shared_ptr<AnnotateData> AnnDataPtr; |
210 211 /* header for the annotation file */ 212 struct AnnotateHeader { 213 uint64_t version; 214 uint64_t num_recs; 215 uint64_t key_off; 216 uint64_t idx_off; 217 uint32_t key_len; --- 333 unchanged lines hidden --- | 211 212 /* header for the annotation file */ 213 struct AnnotateHeader { 214 uint64_t version; 215 uint64_t num_recs; 216 uint64_t key_off; 217 uint64_t idx_off; 218 uint32_t key_len; --- 333 unchanged lines hidden --- |