diff options
author | Uri Wiener <uri.wiener@arm.com> | 2013-04-22 13:20:33 -0400 |
---|---|---|
committer | Uri Wiener <uri.wiener@arm.com> | 2013-04-22 13:20:33 -0400 |
commit | a8fbfefb5e0fd3b45d6961b07a172018c87c0251 (patch) | |
tree | dbc13a043ab0c0daa0da3913ee349c933fc94ac6 /src/mem/packet.hh | |
parent | 9929e884b6fe6567c3bd2fe2dd3bba85d4e9bbd1 (diff) | |
download | gem5-a8fbfefb5e0fd3b45d6961b07a172018c87c0251.tar.xz |
mem: Adding verbose debug output in the memory system
This patch provides useful printouts throughut the memory system. This
includes pretty-printed cache tags and function call messages
(call-stack like).
Diffstat (limited to 'src/mem/packet.hh')
-rw-r--r-- | src/mem/packet.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mem/packet.hh b/src/mem/packet.hh index 92fb2a31c..fa7070f2e 100644 --- a/src/mem/packet.hh +++ b/src/mem/packet.hh @@ -923,6 +923,14 @@ class Packet : public Printable void print(std::ostream &o, int verbosity = 0, const std::string &prefix = "") const; + + /** + * A no-args wrapper of print(std::ostream...) + * meant to be invoked from DPRINTFs + * avoiding string overheads in fast mode + * @return string with the request's type and start<->end addresses + */ + std::string print() const; }; #endif //__MEM_PACKET_HH |