trace.hh (5543:3af77710f397) trace.hh (5806:130e19359857)
1/*
2 * Copyright (c) 2001-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

92 Trace::dump(curTick, name(), data, count); \
93} while (0)
94
95#define DPRINTF(x, ...) do { \
96 if (DTRACE(x)) \
97 Trace::dprintf(curTick, name(), __VA_ARGS__); \
98} while (0)
99
1/*
2 * Copyright (c) 2001-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

92 Trace::dump(curTick, name(), data, count); \
93} while (0)
94
95#define DPRINTF(x, ...) do { \
96 if (DTRACE(x)) \
97 Trace::dprintf(curTick, name(), __VA_ARGS__); \
98} while (0)
99
100#define DPRINTFS(x,s, ...) do { \
101 if (DTRACE(x)) \
102 Trace::dprintf(curTick, s->name(), __VA_ARGS__); \
103} while (0)
104
105
100#define DPRINTFR(x, ...) do { \
101 if (DTRACE(x)) \
102 Trace::dprintf((Tick)-1, std::string(), __VA_ARGS__); \
103} while (0)
104
105#define DDUMPN(data, count) do { \
106 Trace::dump(curTick, name(), data, count); \
107} while (0)

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

114 Trace::dprintf((Tick)-1, string(), __VA_ARGS__); \
115} while (0)
116
117#else // !TRACING_ON
118
119#define DTRACE(x) (false)
120#define DDUMP(x, data, count) do {} while (0)
121#define DPRINTF(x, ...) do {} while (0)
106#define DPRINTFR(x, ...) do { \
107 if (DTRACE(x)) \
108 Trace::dprintf((Tick)-1, std::string(), __VA_ARGS__); \
109} while (0)
110
111#define DDUMPN(data, count) do { \
112 Trace::dump(curTick, name(), data, count); \
113} while (0)

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

120 Trace::dprintf((Tick)-1, string(), __VA_ARGS__); \
121} while (0)
122
123#else // !TRACING_ON
124
125#define DTRACE(x) (false)
126#define DDUMP(x, data, count) do {} while (0)
127#define DPRINTF(x, ...) do {} while (0)
128#define DPRINTFS(x, ...) do {} while (0)
122#define DPRINTFR(...) do {} while (0)
123#define DDUMPN(data, count) do {} while (0)
124#define DPRINTFN(...) do {} while (0)
125#define DPRINTFNR(...) do {} while (0)
126
127#endif // TRACING_ON
128
129#endif // __BASE_TRACE_HH__
129#define DPRINTFR(...) do {} while (0)
130#define DDUMPN(data, count) do {} while (0)
131#define DPRINTFN(...) do {} while (0)
132#define DPRINTFNR(...) do {} while (0)
133
134#endif // TRACING_ON
135
136#endif // __BASE_TRACE_HH__