gem5  v20.1.0.0
fs_workload.hh
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Ruslan Bukin <br@bsdpad.com>
3  * All rights reserved.
4  *
5  * This software was developed by the University of Cambridge Computer
6  * Laboratory as part of the CTSRD Project, with support from the UK Higher
7  * Education Innovation Fund (HEIF).
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted provided that the following conditions are
11  * met: redistributions of source code must retain the above copyright
12  * notice, this list of conditions and the following disclaimer;
13  * redistributions in binary form must reproduce the above copyright
14  * notice, this list of conditions and the following disclaimer in the
15  * documentation and/or other materials provided with the distribution;
16  * neither the name of the copyright holders nor the names of its
17  * contributors may be used to endorse or promote products derived from
18  * this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
33 #ifndef __ARCH_ARM_FREEBSD_FS_WORKLOAD_HH__
34 #define __ARCH_ARM_FREEBSD_FS_WORKLOAD_HH__
35 
36 #include <map>
37 
38 #include "arch/arm/fs_workload.hh"
39 #include "kern/freebsd/events.hh"
40 #include "params/ArmFsFreebsd.hh"
41 
42 namespace ArmISA
43 {
44 
46 {
47  public:
49  typedef ArmFsFreebsdParams Params;
50  const Params *
51  params() const
52  {
53  return dynamic_cast<const Params *>(&_params);
54  }
55 
59 
64  std::map<uint32_t, uint32_t> taskMap;
65 
68  std::ostream* taskFile;
69 
70  FsFreebsd(Params *p);
71  ~FsFreebsd();
72 
73  void initState() override;
74 
77  void mapPid(ThreadContext* tc, uint32_t pid);
78 
79  private:
81  PCEvent *kernelPanic = nullptr;
82 
84  PCEvent *kernelOops = nullptr;
85 
91  PCEvent *skipUDelay = nullptr;
92 
103 };
104 
105 } // namespace ArmISA
106 
107 #endif // __ARCH_ARM_FREEBSD_FS_WORKLOAD_HH__
ArmISA::FsFreebsd::mapPid
void mapPid(ThreadContext *tc, uint32_t pid)
This function creates a new task Id for the given pid.
ArmISA::FsFreebsd::secDataAddr
Addr secDataAddr
Definition: fs_workload.hh:99
fs_workload.hh
ArmISA::FsFreebsd::taskFile
std::ostream * taskFile
This is a file that is placed in the run directory that prints out mappings between taskIds and OS pr...
Definition: fs_workload.hh:68
ArmISA::FsFreebsd::FsFreebsd
FsFreebsd(Params *p)
Definition: fs_workload.cc:54
events.hh
ArmISA::FsFreebsd::Params
ArmFsFreebsdParams Params
Boilerplate params code.
Definition: fs_workload.hh:49
ArmISA
Definition: ccregs.hh:41
ArmISA::FsFreebsd
Definition: fs_workload.hh:45
ArmISA::FsFreebsd::pen64ReleaseAddr
Addr pen64ReleaseAddr
Definition: fs_workload.hh:101
ArmISA::FsFreebsd::~FsFreebsd
~FsFreebsd()
Definition: fs_workload.cc:123
ThreadContext
ThreadContext is the external interface to all thread state for anything outside of the CPU.
Definition: thread_context.hh:88
ArmISA::FsFreebsd::taskMap
std::map< uint32_t, uint32_t > taskMap
This map stores a mapping of OS process IDs to internal Task IDs.
Definition: fs_workload.hh:64
ArmISA::FsWorkload
Definition: fs_workload.hh:62
ArmISA::FsFreebsd::secDataPtrAddr
Addr secDataPtrAddr
These variables store addresses of important data structures that are normaly kept coherent at boot w...
Definition: fs_workload.hh:98
ArmISA::FsFreebsd::enableContextSwitchStatsDump
bool enableContextSwitchStatsDump
When enabled, dump stats/task info on context switches for Streamline and per-thread cache occupancy ...
Definition: fs_workload.hh:58
Addr
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Definition: types.hh:142
ArmISA::FsFreebsd::penReleaseAddr
Addr penReleaseAddr
Definition: fs_workload.hh:100
ArmISA::FsFreebsd::kernelPanic
PCEvent * kernelPanic
Event to halt the simulator if the kernel calls panic()
Definition: fs_workload.hh:81
PCEvent
Definition: pc_event.hh:42
KernelWorkload::_params
const Params & _params
Definition: kernel_workload.hh:48
MipsISA::p
Bitfield< 0 > p
Definition: pra_constants.hh:323
ArmISA::FsFreebsd::skipUDelay
PCEvent * skipUDelay
PC based event to skip udelay(<time>) calls and quiesce the processor for the appropriate amount of t...
Definition: fs_workload.hh:91
ArmISA::FsFreebsd::params
const Params * params() const
Definition: fs_workload.hh:51
ArmISA::FsFreebsd::bootReleaseAddr
Addr bootReleaseAddr
Definition: fs_workload.hh:102
ArmISA::FsFreebsd::kernelOops
PCEvent * kernelOops
Event to halt the simulator if the kernel calls oopses
Definition: fs_workload.hh:84
ArmISA::FsFreebsd::initState
void initState() override
initState() is called on each SimObject when not restoring from a checkpoint.
Definition: fs_workload.cc:76

Generated on Wed Sep 30 2020 14:01:59 for gem5 by doxygen 1.8.17