nativetrace.hh (6365:a3037fa327a0) nativetrace.hh (6409:6eaa041d043e)
1/*
2 * Copyright (c) 2006-2009 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;

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

32#define __CPU_NATIVETRACE_HH__
33
34#include <errno.h>
35#include <unistd.h>
36
37#include "base/socket.hh"
38#include "base/trace.hh"
39#include "base/types.hh"
1/*
2 * Copyright (c) 2006-2009 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;

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

32#define __CPU_NATIVETRACE_HH__
33
34#include <errno.h>
35#include <unistd.h>
36
37#include "base/socket.hh"
38#include "base/trace.hh"
39#include "base/types.hh"
40#include "cpu/exetrace.hh"
40#include "cpu/static_inst.hh"
41#include "cpu/static_inst.hh"
41#include "sim/insttracer.hh"
42
43class ThreadContext;
44
45namespace Trace {
46
47class NativeTrace;
48
42
43class ThreadContext;
44
45namespace Trace {
46
47class NativeTrace;
48
49class NativeTraceRecord : public InstRecord
49class NativeTraceRecord : public ExeTracerRecord
50{
51 protected:
52 NativeTrace * parent;
53
54 public:
55 NativeTraceRecord(NativeTrace * _parent,
56 Tick _when, ThreadContext *_thread,
57 const StaticInstPtr _staticInst, Addr _pc, bool spec,
58 const StaticInstPtr _macroStaticInst = NULL, MicroPC _upc = 0)
50{
51 protected:
52 NativeTrace * parent;
53
54 public:
55 NativeTraceRecord(NativeTrace * _parent,
56 Tick _when, ThreadContext *_thread,
57 const StaticInstPtr _staticInst, Addr _pc, bool spec,
58 const StaticInstPtr _macroStaticInst = NULL, MicroPC _upc = 0)
59 : InstRecord(_when, _thread, _staticInst, _pc, spec,
59 : ExeTracerRecord(_when, _thread, _staticInst, _pc, spec,
60 _macroStaticInst, _upc),
61 parent(_parent)
62 {
63 }
64
65 void dump();
66};
67
60 _macroStaticInst, _upc),
61 parent(_parent)
62 {
63 }
64
65 void dump();
66};
67
68class NativeTrace : public InstTracer
68class NativeTrace : public ExeTracer
69{
70 protected:
71 int fd;
72
73 ListenSocket native_listener;
74
75 public:
76

--- 48 unchanged lines hidden ---
69{
70 protected:
71 int fd;
72
73 ListenSocket native_listener;
74
75 public:
76

--- 48 unchanged lines hidden ---