Deleted Added
sdiff udiff text old ( 10475:5744891a444b ) new ( 11153:20bbfe5b2b86 )
full compact
1/*
2 * Copyright (c) 2014 ARM Limited
3 * All rights reserved
4 *
5 * Copyright (c) 2001-2006 The Regents of The University of Michigan
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

111Logger *getDebugLogger();
112
113/** Get the ostream from the current global logger */
114std::ostream &output();
115
116/** Delete the current global logger and assign a new one */
117void setDebugLogger(Logger *logger);
118
119/** Enable debug logging */
120extern bool enabled;
121
122} // namespace Trace
123
124// This silly little class allows us to wrap a string in a functor
125// object so that we can give a name() that DPRINTF will like
126struct StringWrap
127{
128 std::string str;

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

155// std::string & in the current scope.
156//
157// If you desire that the automatic printing not occur, use DPRINTFR
158// (R for raw)
159//
160
161#if TRACING_ON
162
163#define DTRACE(x) ((Debug::x) && Trace::enabled)
164
165#define DDUMP(x, data, count) do { \
166 using namespace Debug; \
167 if (DTRACE(x)) \
168 Trace::getDebugLogger()->dump(curTick(), name(), data, count); \
169} while (0)
170
171#define DPRINTF(x, ...) do { \

--- 49 unchanged lines hidden ---