projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
X86: Rework interrupt pins to allow one to many connections.
[gem5.git]
/
src
/
dev
/
etherdump.hh
diff --git
a/src/dev/etherdump.hh
b/src/dev/etherdump.hh
index f3080f34147aeda2ee5013db199b1534049823d1..733e61c97db9a1636e1cd70a086251df42641c4f 100644
(file)
--- a/
src/dev/etherdump.hh
+++ b/
src/dev/etherdump.hh
@@
-38,6
+38,7
@@
#include <fstream>
#include "dev/etherpkt.hh"
#include "sim/sim_object.hh"
#include <fstream>
#include "dev/etherpkt.hh"
#include "sim/sim_object.hh"
+#include "params/EtherDump.hh"
/*
* Simple object for creating a simple pcap style packet trace
/*
* Simple object for creating a simple pcap style packet trace
@@
-45,7
+46,7
@@
class EtherDump : public SimObject
{
private:
class EtherDump : public SimObject
{
private:
- std::o
fstream
stream;
+ std::o
stream *
stream;
const int maxlen;
void dumpPacket(EthPacketPtr &packet);
void init();
const int maxlen;
void dumpPacket(EthPacketPtr &packet);
void init();
@@
-53,7
+54,8
@@
class EtherDump : public SimObject
Tick curtime;
public:
Tick curtime;
public:
- EtherDump(const std::string &name, const std::string &file, int max);
+ typedef EtherDumpParams Params;
+ EtherDump(const Params *p);
inline void dump(EthPacketPtr &pkt) { dumpPacket(pkt); }
};
inline void dump(EthPacketPtr &pkt) { dumpPacket(pkt); }
};