comm_monitor.hh (10412:6400a2ab4e22) comm_monitor.hh (10615:cd8aae15f89a)
1/*
2 * Copyright (c) 2012-2013 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

--- 30 unchanged lines hidden (view full) ---

39 */
40
41#ifndef __MEM_COMM_MONITOR_HH__
42#define __MEM_COMM_MONITOR_HH__
43
44#include "base/statistics.hh"
45#include "base/time.hh"
46#include "mem/mem_object.hh"
1/*
2 * Copyright (c) 2012-2013 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

--- 30 unchanged lines hidden (view full) ---

39 */
40
41#ifndef __MEM_COMM_MONITOR_HH__
42#define __MEM_COMM_MONITOR_HH__
43
44#include "base/statistics.hh"
45#include "base/time.hh"
46#include "mem/mem_object.hh"
47#include "mem/stack_dist_calc.hh"
47#include "params/CommMonitor.hh"
48#include "proto/protoio.hh"
49#include "sim/system.hh"
50
51/**
52 * The communication monitor is a MemObject which can monitor statistics of
53 * the communication happening between two ports in the memory system.
54 *

--- 208 unchanged lines hidden (view full) ---

263 bool isSnooping() const;
264
265 void recvRetryMaster();
266
267 void recvRetrySlave();
268
269 void recvRangeChange();
270
48#include "params/CommMonitor.hh"
49#include "proto/protoio.hh"
50#include "sim/system.hh"
51
52/**
53 * The communication monitor is a MemObject which can monitor statistics of
54 * the communication happening between two ports in the memory system.
55 *

--- 208 unchanged lines hidden (view full) ---

264 bool isSnooping() const;
265
266 void recvRetryMaster();
267
268 void recvRetrySlave();
269
270 void recvRangeChange();
271
271 void periodicTraceDump();
272
273 /** Stats declarations, all in a struct for convenience. */
274 struct MonitorStats
275 {
276
277 /** Disable flag for burst length historgrams **/
278 bool disableBurstLengthHists;
279
280 /** Histogram of read burst lengths */

--- 131 unchanged lines hidden (view full) ---

412 Addr readAddrMask;
413
414 /** Address mask for sources of write accesses to be captured */
415 Addr writeAddrMask;
416
417 /** Instantiate stats */
418 MonitorStats stats;
419
272 /** Stats declarations, all in a struct for convenience. */
273 struct MonitorStats
274 {
275
276 /** Disable flag for burst length historgrams **/
277 bool disableBurstLengthHists;
278
279 /** Histogram of read burst lengths */

--- 131 unchanged lines hidden (view full) ---

411 Addr readAddrMask;
412
413 /** Address mask for sources of write accesses to be captured */
414 Addr writeAddrMask;
415
416 /** Instantiate stats */
417 MonitorStats stats;
418
419 /** Optional stack distance calculator */
420 StackDistCalc* stackDistCalc;
421
420 /** Output stream for a potential trace. */
421 ProtoOutputStream* traceStream;
422
423 /** The system in which the monitor lives */
424 System *system;
425};
426
427#endif //__MEM_COMM_MONITOR_HH__
422 /** Output stream for a potential trace. */
423 ProtoOutputStream* traceStream;
424
425 /** The system in which the monitor lives */
426 System *system;
427};
428
429#endif //__MEM_COMM_MONITOR_HH__