From 7bd57d5a94acbdcb64b4927ea6a673cae18adcc0 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 9 Oct 2019 17:47:19 -0700 Subject: cpu: Create a PCEventScope class to abstract the scope of PCEvents. This abstraction will allow scheduling PCEvents for a particular ThreadContext, all contexts on a CPU, all contexts in a system, etc., and delegates scheduling and removing events to each particular scope. Right now the PCEventQueue is the only implementor of the PCEventSCope interface. Change-Id: I8fb62931511136229915c2e19d36aae7ffdec9df Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22099 Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg Tested-by: kokoro --- src/arch/arm/linux/system.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/arch/arm') diff --git a/src/arch/arm/linux/system.hh b/src/arch/arm/linux/system.hh index 247ebae13..098ceda2e 100644 --- a/src/arch/arm/linux/system.hh +++ b/src/arch/arm/linux/system.hh @@ -127,8 +127,8 @@ class LinuxArmSystem : public GenericArmSystem class DumpStatsPCEvent : public PCEvent { public: - DumpStatsPCEvent(PCEventQueue *q, const std::string &desc, Addr addr) - : PCEvent(q, desc, addr) + DumpStatsPCEvent(PCEventScope *s, const std::string &desc, Addr addr) + : PCEvent(s, desc, addr) {} virtual void process(ThreadContext* tc); @@ -140,8 +140,8 @@ class DumpStatsPCEvent : public PCEvent class DumpStatsPCEvent64 : public DumpStatsPCEvent { public: - DumpStatsPCEvent64(PCEventQueue *q, const std::string &desc, Addr addr) - : DumpStatsPCEvent(q, desc, addr) + DumpStatsPCEvent64(PCEventScope *s, const std::string &desc, Addr addr) + : DumpStatsPCEvent(s, desc, addr) {} private: void getTaskDetails(ThreadContext *tc, uint32_t &pid, uint32_t &tgid, -- cgit v1.2.3