X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=dev%2Fetherdump.hh;h=149192cd7cdf92bd57ac0edd7f952783fc10dd12;hb=9e3d79694ca9e204bcbfa9c197db17b581dc7a29;hp=ef4399e1aafbab556cf89a7d1fafab68736ba9cd;hpb=4deb81989496b360500985377e8f8c1a2f017b27;p=gem5.git diff --git a/dev/etherdump.hh b/dev/etherdump.hh index ef4399e1a..149192cd7 100644 --- a/dev/etherdump.hh +++ b/dev/etherdump.hh @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002-2004 The Regents of The University of Michigan + * Copyright (c) 2002-2005 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -44,17 +44,16 @@ class EtherDump : public SimObject { private: std::ofstream stream; + const int maxlen; void dumpPacket(PacketPtr &packet); void init(); Tick curtime; - Tick s_freq; - Tick us_freq; public: - EtherDump(const std::string &name, const std::string &file); + EtherDump(const std::string &name, const std::string &file, int max); - inline void dump(PacketPtr &pkt) { if (stream.is_open()) dumpPacket(pkt); } + inline void dump(PacketPtr &pkt) { dumpPacket(pkt); } }; #endif // __ETHERDUMP_H__