diff options
author | Andreas Sandberg <Andreas.Sandberg@ARM.com> | 2014-10-16 05:49:38 -0400 |
---|---|---|
committer | Andreas Sandberg <Andreas.Sandberg@ARM.com> | 2014-10-16 05:49:38 -0400 |
commit | 132ea6319ab9292bef7c0ea87f396ef9de2db0fe (patch) | |
tree | 82e931043550594401c2de7230249b72164e701a /src/sim/probe/probe.hh | |
parent | 804ed4b4186b93071fe6e8ba8e491a44cb7b0c45 (diff) | |
download | gem5-132ea6319ab9292bef7c0ea87f396ef9de2db0fe.tar.xz |
sim: Add typedefs for PMU probe points
In order to show make PMU probe points usable across different PMU
implementations, we want a common probe interface. This patch the
namespace ProbePoins that contains typedefs for probe points that are
shared between multiple SimObjects. It also adds typedefs for the PMU
probe interface.
Diffstat (limited to 'src/sim/probe/probe.hh')
-rw-r--r-- | src/sim/probe/probe.hh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/sim/probe/probe.hh b/src/sim/probe/probe.hh index 2946f4664..8f68c0441 100644 --- a/src/sim/probe/probe.hh +++ b/src/sim/probe/probe.hh @@ -73,6 +73,21 @@ class ProbeManager; class ProbeListener; /** + * Name space containing shared probe point declarations. + * + * Probe types that are shared between multiple types of SimObjects + * should live in this name space. This makes it possible to use a + * common instrumentation interface for devices such as PMUs that have + * different implementations in different ISAs. + */ +namespace ProbePoints { +/* Note: This is only here for documentation purposes, new probe + * points should normally be declared in their own header files. See + * for example pmu.hh. + */ +} + +/** * This class is a minimal wrapper around SimObject. It is used to declare * a python derived object that can be added as a ProbeListener to any other * SimObject. |