trace.hh (6214:1ec0ec8933ae) trace.hh (7811:a8fc35183c10)
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;

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

55
56extern ObjectMatch ignore;
57extern const std::string DefaultName;
58
59void dprintf(Tick when, const std::string &name, const char *format,
60 CPRINTF_DECLARATION);
61void dump(Tick when, const std::string &name, const void *data, int len);
62
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;

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

55
56extern ObjectMatch ignore;
57extern const std::string DefaultName;
58
59void dprintf(Tick when, const std::string &name, const char *format,
60 CPRINTF_DECLARATION);
61void dump(Tick when, const std::string &name, const void *data, int len);
62
63/* namespace Trace */ }
63} // namespace Trace
64
65// This silly little class allows us to wrap a string in a functor
66// object so that we can give a name() that DPRINTF will like
67struct StringWrap
68{
69 std::string str;
70 StringWrap(const std::string &s) : str(s) {}
71 const std::string &operator()() const { return str; }

--- 65 unchanged lines hidden ---
64
65// This silly little class allows us to wrap a string in a functor
66// object so that we can give a name() that DPRINTF will like
67struct StringWrap
68{
69 std::string str;
70 StringWrap(const std::string &s) : str(s) {}
71 const std::string &operator()() const { return str; }

--- 65 unchanged lines hidden ---