trace.hh (7811:a8fc35183c10) trace.hh (7823:dac01f14f20f)
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;

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

84//
85
86#if TRACING_ON
87
88#define DTRACE(x) (Trace::IsOn(Trace::x) && Trace::enabled)
89
90#define DDUMP(x, data, count) do { \
91 if (DTRACE(x)) \
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;

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

84//
85
86#if TRACING_ON
87
88#define DTRACE(x) (Trace::IsOn(Trace::x) && Trace::enabled)
89
90#define DDUMP(x, data, count) do { \
91 if (DTRACE(x)) \
92 Trace::dump(curTick, name(), data, count); \
92 Trace::dump(curTick(), name(), data, count); \
93} while (0)
94
95#define DPRINTF(x, ...) do { \
96 if (DTRACE(x)) \
93} while (0)
94
95#define DPRINTF(x, ...) do { \
96 if (DTRACE(x)) \
97 Trace::dprintf(curTick, name(), __VA_ARGS__); \
97 Trace::dprintf(curTick(), name(), __VA_ARGS__); \
98} while (0)
99
100#define DPRINTFS(x,s, ...) do { \
101 if (DTRACE(x)) \
98} while (0)
99
100#define DPRINTFS(x,s, ...) do { \
101 if (DTRACE(x)) \
102 Trace::dprintf(curTick, s->name(), __VA_ARGS__); \
102 Trace::dprintf(curTick(), s->name(), __VA_ARGS__); \
103} while (0)
104
105
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 { \
103} while (0)
104
105
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); \
112 Trace::dump(curTick(), name(), data, count); \
113} while (0)
114
115#define DPRINTFN(...) do { \
113} while (0)
114
115#define DPRINTFN(...) do { \
116 Trace::dprintf(curTick, name(), __VA_ARGS__); \
116 Trace::dprintf(curTick(), name(), __VA_ARGS__); \
117} while (0)
118
119#define DPRINTFNR(...) do { \
120 Trace::dprintf((Tick)-1, string(), __VA_ARGS__); \
121} while (0)
122
123#else // !TRACING_ON
124

--- 12 unchanged lines hidden ---
117} while (0)
118
119#define DPRINTFNR(...) do { \
120 Trace::dprintf((Tick)-1, string(), __VA_ARGS__); \
121} while (0)
122
123#else // !TRACING_ON
124

--- 12 unchanged lines hidden ---