gem5  v20.1.0.0
freebsd.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_FREEBSD_HH__
34 #define __ARCH_ARM_FREEBSD_FREEBSD_HH__
35 
36 #include "kern/freebsd/freebsd.hh"
37 
38 class ArmFreebsd : public FreeBSD
39 {
40  public:
41  static const ByteOrder byteOrder = ByteOrder::little;
42 };
43 
44 class ArmFreebsd32 : public ArmFreebsd
45 {
46  public:
50 
52  static const int NUM_OPEN_FLAGS;
53 
55  typedef uint32_t size_t;
57  typedef uint32_t off_t;
58  typedef int32_t time_t;
59  typedef int32_t clock_t;
61 
63  static const int TGT_O_RDONLY = 0x00000000;
65  static const int TGT_O_WRONLY = 0x00000001;
66  static const int TGT_O_RDWR = 0x00000002;
67  static const int TGT_O_CREAT = 0x00000200;
68  static const int TGT_O_EXCL = 0x00000800;
69  static const int TGT_O_NOCTTY = 0x00008000;
70  static const int TGT_O_TRUNC = 0x00000400;
71  static const int TGT_O_APPEND = 0x00000008;
72  static const int TGT_O_NONBLOCK = 0x00000004;
73  static const int TGT_O_SYNC = 0x00000080;
74  static const int TGT_FASYNC = 0x00000040;
75  static const int TGT_O_DIRECT = 0x00010000;
76  static const int TGT_O_DIRECTORY = 0x00020000;
77  static const int TGT_O_NOFOLLOW = 0x00000100;
78  static const int TGT_O_CLOEXEC = 0x00100000;
79 
80 
82  static const unsigned TGT_MAP_SHARED = 0x0001;
83  static const unsigned TGT_MAP_PRIVATE = 0x0002;
84  static const unsigned TGT_MAP_ANONYMOUS = 0x1000;
85  static const unsigned TGT_MAP_FIXED = 0x0010;
86 
88  struct rlimit {
89  uint32_t rlim_cur;
90  uint32_t rlim_max;
91  };
92 
94  struct timeval {
95  int32_t tv_sec;
96  int32_t tv_usec;
97  };
98 
99  // For writev/readv
100  struct tgt_iovec {
101  uint32_t iov_base; // void *
102  uint32_t iov_len;
103  };
104 
105  /*
106  * sizeof st 120
107  * sizeof st_dev 4
108  * sizeof st_ino 4
109  * sizeof st_mode 2
110  * sizeof st_nlink 2
111  * sizeof st_uid 4
112  * sizeof st_gid 4
113  * sizeof st_rdev 4
114  * sizeof st_atim 16
115  * sizeof st_size 8
116  * sizeof st_blocks 8
117  * sizeof st_blksize 4
118  * sizeof st_flags 4
119  * sizeof st_gen 4
120  * sizeof st_lspare 4
121  */
122 
123  typedef struct {
124  uint32_t st_dev;
125  uint32_t st_ino;
126  uint16_t st_mode;
127  uint16_t st_nlink;
128  uint32_t st_uid;
129  uint32_t st_gid;
130  uint32_t st_rdev;
131  uint64_t st_atimeX;
132  uint64_t st_atime_nsec;
133  uint64_t st_mtimeX;
134  uint64_t st_mtime_nsec;
135  uint64_t st_ctimeX;
136  uint64_t st_ctime_nsec;
137  uint64_t st_size;
138  uint64_t st_blocks;
139  uint32_t st_blksize;
140  uint32_t st_flags;
141  uint32_t st_gen;
142  uint32_t st_lspare;
143  uint64_t st_birthtimX;
144  uint64_t st_birthtim;
145  } tgt_stat;
146 
147  typedef struct {
148  uint32_t st_dev;
149  uint32_t st_ino;
150  uint16_t st_mode;
151  uint16_t st_nlink;
152  uint32_t st_uid;
153  uint32_t st_gid;
154  uint32_t st_rdev;
155  uint64_t st_atimeX;
156  uint64_t st_atime_nsec;
157  uint64_t st_mtimeX;
158  uint64_t st_mtime_nsec;
159  uint64_t st_ctimeX;
160  uint64_t st_ctime_nsec;
161  uint64_t st_size;
162  uint64_t st_blocks;
163  uint32_t st_blksize;
164  uint32_t st_flags;
165  uint32_t st_gen;
166  uint32_t st_lspare;
167  uint64_t st_birthtimX;
168  uint64_t st_birthtim;
169  } tgt_stat64;
170 
172  struct rusage {
173  struct timeval ru_utime;
174  struct timeval ru_stime;
175  int32_t ru_maxrss;
176  int32_t ru_ixrss;
177  int32_t ru_idrss;
178  int32_t ru_isrss;
179  int32_t ru_minflt;
180  int32_t ru_majflt;
181  int32_t ru_nswap;
182  int32_t ru_inblock;
183  int32_t ru_oublock;
184  int32_t ru_msgsnd;
185  int32_t ru_msgrcv;
186  int32_t ru_nsignals;
187  int32_t ru_nvcsw;
188  int32_t ru_nivcsw;
189  };
190 
192  struct tms {
193  int32_t tms_utime;
194  int32_t tms_stime;
195  int32_t tms_cutime;
196  int32_t tms_cstime;
197  };
198 };
199 
200 class ArmFreebsd64 : public ArmFreebsd
201 {
202  public:
203 
207 
209  static const int NUM_OPEN_FLAGS;
210 
212  typedef uint64_t size_t;
214  typedef uint64_t off_t;
215  typedef int64_t time_t;
216  typedef int64_t clock_t;
218 
220  static const int TGT_O_RDONLY = 0x00000000;
222  static const int TGT_O_WRONLY = 0x00000001;
223  static const int TGT_O_RDWR = 0x00000002;
224  static const int TGT_O_CREAT = 0x00000200;
225  static const int TGT_O_EXCL = 0x00000800;
226  static const int TGT_O_NOCTTY = 0x00008000;
227  static const int TGT_O_TRUNC = 0x00000400;
228  static const int TGT_O_APPEND = 0x00000008;
229  static const int TGT_O_NONBLOCK = 0x00000004;
230  static const int TGT_O_SYNC = 0x00000080;
231  static const int TGT_FASYNC = 0x00000040;
232  static const int TGT_O_DIRECT = 0x00010000;
233  static const int TGT_O_DIRECTORY = 0x00020000;
234  static const int TGT_O_NOFOLLOW = 0x00000100;
235  static const int TGT_O_CLOEXEC = 0x00100000;
236 
237 
239  static const unsigned TGT_MAP_SHARED = 0x0001;
240  static const unsigned TGT_MAP_PRIVATE = 0x0002;
241  static const unsigned TGT_MAP_ANONYMOUS = 0x1000;
242  static const unsigned TGT_MAP_FIXED = 0x0010;
243 
245  static const int TGT_RUSAGE_SELF = 0;
247  static const int TGT_RUSAGE_CHILDREN = -1;
248  static const int TGT_RUSAGE_THREAD = 1;
250 
268  };
269 
271  struct rlimit {
272  uint64_t rlim_cur;
273  uint64_t rlim_max;
274  };
275 
277  struct timeval {
278  int64_t tv_sec;
279  int64_t tv_usec;
280  };
281 
282  // For writev/readv
283  struct tgt_iovec {
284  uint64_t iov_base; // void *
285  uint64_t iov_len;
286  };
287 
288  typedef struct {
289  uint32_t st_dev;
290  uint32_t st_ino;
291  uint16_t st_mode;
292  uint16_t st_nlink;
293  uint32_t st_uid;
294  uint32_t st_gid;
295  uint32_t st_rdev;
296  uint64_t st_atimeX;
297  uint64_t st_atime_nsec;
298  uint64_t st_mtimeX;
299  uint64_t st_mtime_nsec;
300  uint64_t st_ctimeX;
301  uint64_t st_ctime_nsec;
302  uint64_t st_size;
303  uint64_t st_blocks;
304  uint32_t st_blksize;
305  uint32_t st_flags;
306  uint32_t st_gen;
307  uint32_t st_lspare;
308  uint64_t st_birthtimX;
309  uint64_t st_birthtim;
310  } tgt_stat;
311 
312  typedef struct {
313  uint32_t st_dev;
314  uint32_t st_ino;
315  uint16_t st_mode;
316  uint16_t st_nlink;
317  uint32_t st_uid;
318  uint32_t st_gid;
319  uint32_t st_rdev;
320  uint64_t st_atimeX;
321  uint64_t st_atime_nsec;
322  uint64_t st_mtimeX;
323  uint64_t st_mtime_nsec;
324  uint64_t st_ctimeX;
325  uint64_t st_ctime_nsec;
326  uint64_t st_size;
327  uint64_t st_blocks;
328  uint32_t st_blksize;
329  uint32_t st_flags;
330  uint32_t st_gen;
331  uint32_t st_lspare;
332  uint64_t st_birthtimX;
333  uint64_t st_birthtim;
334  } tgt_stat64;
335 
337  struct rusage {
338  struct timeval ru_utime;
339  struct timeval ru_stime;
340  int64_t ru_maxrss;
341  int64_t ru_ixrss;
342  int64_t ru_idrss;
343  int64_t ru_isrss;
344  int64_t ru_minflt;
345  int64_t ru_majflt;
346  int64_t ru_nswap;
347  int64_t ru_inblock;
348  int64_t ru_oublock;
349  int64_t ru_msgsnd;
350  int64_t ru_msgrcv;
351  int64_t ru_nsignals;
352  int64_t ru_nvcsw;
353  int64_t ru_nivcsw;
354  };
355 
357  struct tms {
358  int64_t tms_utime;
359  int64_t tms_stime;
360  int64_t tms_cutime;
361  int64_t tms_cstime;
362  };
363 };
364 
365 #endif
ArmFreebsd32::tgt_stat::st_blocks
uint64_t st_blocks
Definition: freebsd.hh:138
ArmFreebsd64::tgt_stat64::st_dev
uint32_t st_dev
Definition: freebsd.hh:313
ArmFreebsd64::TGT_O_APPEND
static const int TGT_O_APPEND
O_APPEND.
Definition: freebsd.hh:228
ArmFreebsd32::rusage::ru_oublock
int32_t ru_oublock
block output operations
Definition: freebsd.hh:183
ArmFreebsd64::TGT_RLIMIT_NOFILE
@ TGT_RLIMIT_NOFILE
Definition: freebsd.hh:261
ArmFreebsd32::tgt_iovec
Definition: freebsd.hh:100
ArmFreebsd64::tgt_stat64::st_nlink
uint16_t st_nlink
Definition: freebsd.hh:316
ArmFreebsd64::rlimit::rlim_max
uint64_t rlim_max
hard limit
Definition: freebsd.hh:273
ArmFreebsd32::tms
For times().
Definition: freebsd.hh:192
ArmFreebsd64::tgt_iovec::iov_len
uint64_t iov_len
Definition: freebsd.hh:285
ArmFreebsd32::NUM_OPEN_FLAGS
static const int NUM_OPEN_FLAGS
Number of entries in openFlagTable[].
Definition: freebsd.hh:52
ArmFreebsd32::tgt_stat64::st_lspare
uint32_t st_lspare
Definition: freebsd.hh:166
ArmFreebsd64::tgt_iovec::iov_base
uint64_t iov_base
Definition: freebsd.hh:284
ArmFreebsd32::tgt_stat64::st_gen
uint32_t st_gen
Definition: freebsd.hh:165
ArmFreebsd64::TGT_RLIMIT_MEMLOCK
@ TGT_RLIMIT_MEMLOCK
Definition: freebsd.hh:259
ArmFreebsd64::tgt_stat64::st_mtime_nsec
uint64_t st_mtime_nsec
Definition: freebsd.hh:323
ArmFreebsd64::TGT_RLIMIT_DATA
@ TGT_RLIMIT_DATA
Definition: freebsd.hh:255
ArmFreebsd64::rusage::ru_msgrcv
int64_t ru_msgrcv
messages received
Definition: freebsd.hh:350
ArmFreebsd64::tgt_stat64::st_mode
uint16_t st_mode
Definition: freebsd.hh:315
ArmFreebsd32::tgt_stat::st_rdev
uint32_t st_rdev
Definition: freebsd.hh:130
ArmFreebsd32::TGT_O_NOFOLLOW
static const int TGT_O_NOFOLLOW
O_NOFOLLOW.
Definition: freebsd.hh:77
ArmFreebsd32::tgt_stat::st_atime_nsec
uint64_t st_atime_nsec
Definition: freebsd.hh:132
ArmFreebsd32::TGT_O_DIRECTORY
static const int TGT_O_DIRECTORY
O_DIRECTORY.
Definition: freebsd.hh:76
ArmFreebsd64::tgt_stat::st_atimeX
uint64_t st_atimeX
Definition: freebsd.hh:296
ArmFreebsd32::TGT_MAP_SHARED
static const unsigned TGT_MAP_SHARED
For mmap().
Definition: freebsd.hh:82
ArmFreebsd32::rusage::ru_minflt
int32_t ru_minflt
page reclaims - total vmfaults
Definition: freebsd.hh:179
ArmFreebsd32::rusage::ru_nivcsw
int32_t ru_nivcsw
involuntary "
Definition: freebsd.hh:188
ArmFreebsd32::tgt_stat64::st_size
uint64_t st_size
Definition: freebsd.hh:161
ArmFreebsd32::rlimit::rlim_cur
uint32_t rlim_cur
soft limit
Definition: freebsd.hh:89
ArmFreebsd64::time_t
int64_t time_t
Definition: freebsd.hh:215
ArmFreebsd64::TGT_O_DIRECT
static const int TGT_O_DIRECT
O_DIRECT.
Definition: freebsd.hh:232
ArmFreebsd64::rusage::ru_majflt
int64_t ru_majflt
page faults
Definition: freebsd.hh:345
ArmFreebsd64::tgt_stat64::st_uid
uint32_t st_uid
Definition: freebsd.hh:317
ArmFreebsd64::TGT_RLIMIT_CORE
@ TGT_RLIMIT_CORE
Definition: freebsd.hh:257
ArmFreebsd64::tgt_stat::st_flags
uint32_t st_flags
Definition: freebsd.hh:305
ArmFreebsd32::tgt_stat::st_size
uint64_t st_size
Definition: freebsd.hh:137
ArmFreebsd64::timeval::tv_usec
int64_t tv_usec
microseconds
Definition: freebsd.hh:279
ArmFreebsd64::TGT_O_NOFOLLOW
static const int TGT_O_NOFOLLOW
O_NOFOLLOW.
Definition: freebsd.hh:234
ArmFreebsd32::tgt_stat64::st_blocks
uint64_t st_blocks
Definition: freebsd.hh:162
ArmFreebsd64::rlimit
Limit struct for getrlimit/setrlimit.
Definition: freebsd.hh:271
ArmFreebsd64::rusage::ru_stime
struct timeval ru_stime
system time used
Definition: freebsd.hh:339
ArmFreebsd64::TGT_RUSAGE_THREAD
static const int TGT_RUSAGE_THREAD
Definition: freebsd.hh:248
ArmFreebsd32::TGT_O_APPEND
static const int TGT_O_APPEND
O_APPEND.
Definition: freebsd.hh:71
ArmFreebsd64::TGT_RLIMIT_RSS
@ TGT_RLIMIT_RSS
Definition: freebsd.hh:258
ArmFreebsd32::TGT_O_RDWR
static const int TGT_O_RDWR
O_RDWR.
Definition: freebsd.hh:66
ArmFreebsd64::tgt_stat::st_ctimeX
uint64_t st_ctimeX
Definition: freebsd.hh:300
ArmFreebsd64::TGT_O_DIRECTORY
static const int TGT_O_DIRECTORY
O_DIRECTORY.
Definition: freebsd.hh:233
ArmFreebsd64::tgt_iovec
Definition: freebsd.hh:283
ArmFreebsd64::tgt_stat::st_size
uint64_t st_size
Definition: freebsd.hh:302
ArmFreebsd64::tgt_stat64::st_atime_nsec
uint64_t st_atime_nsec
Definition: freebsd.hh:321
ArmFreebsd32::tgt_stat64::st_birthtim
uint64_t st_birthtim
Definition: freebsd.hh:168
ArmFreebsd64::TGT_RLIMIT_SBSIZE
@ TGT_RLIMIT_SBSIZE
Definition: freebsd.hh:262
ArmFreebsd32::tgt_stat64::st_ino
uint32_t st_ino
Definition: freebsd.hh:149
ArmFreebsd64::TGT_RLIMIT_SWAP
@ TGT_RLIMIT_SWAP
Definition: freebsd.hh:266
ArmFreebsd32::TGT_O_TRUNC
static const int TGT_O_TRUNC
O_TRUNC.
Definition: freebsd.hh:70
OperatingSystem::tgt_stat64
void tgt_stat64
Definition: operatingsystem.hh:62
ArmFreebsd32::TGT_O_DIRECT
static const int TGT_O_DIRECT
O_DIRECT.
Definition: freebsd.hh:75
ArmFreebsd32::timeval::tv_usec
int32_t tv_usec
microseconds
Definition: freebsd.hh:96
ArmFreebsd64::TGT_O_CREAT
static const int TGT_O_CREAT
O_CREAT.
Definition: freebsd.hh:224
ArmFreebsd32::tgt_stat64::st_nlink
uint16_t st_nlink
Definition: freebsd.hh:151
ArmFreebsd32::tgt_stat64::st_mtime_nsec
uint64_t st_mtime_nsec
Definition: freebsd.hh:158
ArmFreebsd32::rusage::ru_inblock
int32_t ru_inblock
block input operations
Definition: freebsd.hh:182
ArmFreebsd64::rusage::ru_nvcsw
int64_t ru_nvcsw
voluntary context switches
Definition: freebsd.hh:352
ArmFreebsd64::timeval
For gettimeofday().
Definition: freebsd.hh:277
ArmFreebsd32::tgt_stat64::st_blksize
uint32_t st_blksize
Definition: freebsd.hh:163
ArmFreebsd32::tgt_stat::st_birthtimX
uint64_t st_birthtimX
Definition: freebsd.hh:143
ArmFreebsd32::tgt_stat::st_atimeX
uint64_t st_atimeX
Definition: freebsd.hh:131
ArmFreebsd64::tgt_stat::st_lspare
uint32_t st_lspare
Definition: freebsd.hh:307
ArmFreebsd32::TGT_O_NONBLOCK
static const int TGT_O_NONBLOCK
O_NONBLOCK.
Definition: freebsd.hh:72
ArmFreebsd64::rlimit_resources
rlimit_resources
Resource enumeration for getrlimit().
Definition: freebsd.hh:252
ArmFreebsd32::rusage::ru_msgsnd
int32_t ru_msgsnd
messages sent
Definition: freebsd.hh:184
ArmFreebsd64::tgt_stat64::st_mtimeX
uint64_t st_mtimeX
Definition: freebsd.hh:322
ArmFreebsd32::rusage::ru_idrss
int32_t ru_idrss
integral unshared data "
Definition: freebsd.hh:177
ArmFreebsd::byteOrder
static const ByteOrder byteOrder
Definition: freebsd.hh:41
ArmFreebsd32::rusage::ru_msgrcv
int32_t ru_msgrcv
messages received
Definition: freebsd.hh:185
ArmFreebsd64::tgt_stat64::st_ctime_nsec
uint64_t st_ctime_nsec
Definition: freebsd.hh:325
ArmFreebsd32::tgt_stat::st_dev
uint32_t st_dev
Definition: freebsd.hh:124
ArmFreebsd32::tgt_stat64::st_mtimeX
uint64_t st_mtimeX
Definition: freebsd.hh:157
ArmFreebsd32::tgt_stat64::st_atime_nsec
uint64_t st_atime_nsec
Definition: freebsd.hh:156
ArmFreebsd64::tgt_stat64::st_size
uint64_t st_size
Definition: freebsd.hh:326
ArmFreebsd64::tms::tms_stime
int64_t tms_stime
system time
Definition: freebsd.hh:359
ArmFreebsd64::openFlagTable
static SyscallFlagTransTable openFlagTable[]
This table maps the target open() flags to the corresponding host open() flags.
Definition: freebsd.hh:206
ArmFreebsd64::tgt_stat64::st_birthtimX
uint64_t st_birthtimX
Definition: freebsd.hh:332
ArmFreebsd64::TGT_RLIMIT_KQUEUES
@ TGT_RLIMIT_KQUEUES
Definition: freebsd.hh:267
ArmFreebsd32::tgt_stat64::st_birthtimX
uint64_t st_birthtimX
Definition: freebsd.hh:167
ArmFreebsd32::TGT_O_CLOEXEC
static const int TGT_O_CLOEXEC
O_CLOEXEC.
Definition: freebsd.hh:78
ArmFreebsd64::rusage::ru_nswap
int64_t ru_nswap
swaps
Definition: freebsd.hh:346
ArmFreebsd64::tms::tms_cutime
int64_t tms_cutime
user time of children
Definition: freebsd.hh:360
ArmFreebsd64::tgt_stat::st_atime_nsec
uint64_t st_atime_nsec
Definition: freebsd.hh:297
ArmFreebsd32::TGT_O_SYNC
static const int TGT_O_SYNC
O_SYNC.
Definition: freebsd.hh:73
ArmFreebsd64::tgt_stat64::st_birthtim
uint64_t st_birthtim
Definition: freebsd.hh:333
ArmFreebsd64::TGT_RLIMIT_NPROC
@ TGT_RLIMIT_NPROC
Definition: freebsd.hh:260
ArmFreebsd64::rusage::ru_minflt
int64_t ru_minflt
page reclaims - total vmfaults
Definition: freebsd.hh:344
ArmFreebsd64::NUM_OPEN_FLAGS
static const int NUM_OPEN_FLAGS
Number of entries in openFlagTable[].
Definition: freebsd.hh:209
ArmFreebsd32::rlimit
Limit struct for getrlimit/setrlimit.
Definition: freebsd.hh:88
ArmFreebsd32::rusage::ru_nswap
int32_t ru_nswap
swaps
Definition: freebsd.hh:181
ArmFreebsd32::rusage
For getrusage().
Definition: freebsd.hh:172
ArmFreebsd32::tgt_stat::st_ctime_nsec
uint64_t st_ctime_nsec
Definition: freebsd.hh:136
ArmFreebsd64::tgt_stat::st_uid
uint32_t st_uid
Definition: freebsd.hh:293
ArmFreebsd64::TGT_MAP_SHARED
static const unsigned TGT_MAP_SHARED
For mmap().
Definition: freebsd.hh:239
ArmFreebsd32::tgt_stat::st_lspare
uint32_t st_lspare
Definition: freebsd.hh:142
ArmFreebsd32::tms::tms_cutime
int32_t tms_cutime
user time of children
Definition: freebsd.hh:195
ArmFreebsd32::tms::tms_utime
int32_t tms_utime
user time
Definition: freebsd.hh:193
ArmFreebsd32::tgt_stat64::st_ctimeX
uint64_t st_ctimeX
Definition: freebsd.hh:159
ArmFreebsd64::tgt_stat::st_blocks
uint64_t st_blocks
Definition: freebsd.hh:303
ArmFreebsd32::tgt_stat64::st_mode
uint16_t st_mode
Definition: freebsd.hh:150
ArmFreebsd64::TGT_RLIMIT_AS
@ TGT_RLIMIT_AS
Definition: freebsd.hh:264
ArmFreebsd64::rusage::ru_idrss
int64_t ru_idrss
integral unshared data "
Definition: freebsd.hh:342
ArmFreebsd64::tgt_stat64::st_flags
uint32_t st_flags
Definition: freebsd.hh:329
ArmFreebsd64::tgt_stat64::st_ino
uint32_t st_ino
Definition: freebsd.hh:314
ArmFreebsd64::TGT_RLIMIT_FSIZE
@ TGT_RLIMIT_FSIZE
Definition: freebsd.hh:254
ArmFreebsd64::tgt_stat::st_mtime_nsec
uint64_t st_mtime_nsec
Definition: freebsd.hh:299
ArmFreebsd32::timeval
For gettimeofday().
Definition: freebsd.hh:94
ArmFreebsd64::tgt_stat::st_mode
uint16_t st_mode
Definition: freebsd.hh:291
ArmFreebsd64::tms::tms_utime
int64_t tms_utime
user time
Definition: freebsd.hh:358
ArmFreebsd32::timeval::tv_sec
int32_t tv_sec
seconds
Definition: freebsd.hh:95
ArmFreebsd32::tgt_stat::st_ino
uint32_t st_ino
Definition: freebsd.hh:125
ArmFreebsd32::rusage::ru_majflt
int32_t ru_majflt
page faults
Definition: freebsd.hh:180
ArmFreebsd32::tgt_stat64::st_flags
uint32_t st_flags
Definition: freebsd.hh:164
ArmFreebsd64::tgt_stat64::st_blocks
uint64_t st_blocks
Definition: freebsd.hh:327
ArmFreebsd32::tms::tms_stime
int32_t tms_stime
system time
Definition: freebsd.hh:194
ArmFreebsd32::TGT_MAP_FIXED
static const unsigned TGT_MAP_FIXED
Definition: freebsd.hh:85
ArmFreebsd32::tgt_stat::st_flags
uint32_t st_flags
Definition: freebsd.hh:140
ArmFreebsd64::tgt_stat::st_birthtim
uint64_t st_birthtim
Definition: freebsd.hh:309
ArmFreebsd64::tgt_stat::st_dev
uint32_t st_dev
Definition: freebsd.hh:289
ArmFreebsd32::TGT_O_NOCTTY
static const int TGT_O_NOCTTY
O_NOCTTY.
Definition: freebsd.hh:69
ArmFreebsd64::TGT_O_RDWR
static const int TGT_O_RDWR
O_RDWR.
Definition: freebsd.hh:223
ArmFreebsd64::tgt_stat::st_gid
uint32_t st_gid
Definition: freebsd.hh:294
ArmFreebsd64::rusage::ru_msgsnd
int64_t ru_msgsnd
messages sent
Definition: freebsd.hh:349
ArmFreebsd64::rusage::ru_inblock
int64_t ru_inblock
block input operations
Definition: freebsd.hh:347
ArmFreebsd64::TGT_O_TRUNC
static const int TGT_O_TRUNC
O_TRUNC.
Definition: freebsd.hh:227
SyscallFlagTransTable
This struct is used to build target-OS-dependent tables that map the target's flags to the host's fla...
Definition: operatingsystem.hh:41
ArmFreebsd64::TGT_RLIMIT_VMEM
@ TGT_RLIMIT_VMEM
Definition: freebsd.hh:263
ArmFreebsd32::tms::tms_cstime
int32_t tms_cstime
system time of children
Definition: freebsd.hh:196
ArmFreebsd64::rusage
For getrusage().
Definition: freebsd.hh:337
ArmFreebsd64::off_t
uint64_t off_t
Definition: freebsd.hh:214
ArmFreebsd32::tgt_stat64::st_gid
uint32_t st_gid
Definition: freebsd.hh:153
ArmFreebsd64::tgt_stat::st_mtimeX
uint64_t st_mtimeX
Definition: freebsd.hh:298
ArmFreebsd32::tgt_iovec::iov_base
uint32_t iov_base
Definition: freebsd.hh:101
ArmFreebsd32::rlimit::rlim_max
uint32_t rlim_max
hard limit
Definition: freebsd.hh:90
ArmFreebsd32::size_t
uint32_t size_t
Basic ARM FreeBSD types.
Definition: freebsd.hh:56
ArmFreebsd32::tgt_stat::st_ctimeX
uint64_t st_ctimeX
Definition: freebsd.hh:135
ArmFreebsd64::clock_t
int64_t clock_t
Definition: freebsd.hh:216
ArmFreebsd32::rusage::ru_stime
struct timeval ru_stime
system time used
Definition: freebsd.hh:174
ArmFreebsd64::TGT_RLIMIT_CPU
@ TGT_RLIMIT_CPU
Definition: freebsd.hh:253
ArmFreebsd64::tgt_stat64::st_gid
uint32_t st_gid
Definition: freebsd.hh:318
ArmFreebsd32::tgt_stat::st_birthtim
uint64_t st_birthtim
Definition: freebsd.hh:144
ArmFreebsd64::tgt_stat::st_blksize
uint32_t st_blksize
Definition: freebsd.hh:304
ArmFreebsd32::tgt_stat64::st_uid
uint32_t st_uid
Definition: freebsd.hh:152
ArmFreebsd64::TGT_FASYNC
static const int TGT_FASYNC
FASYNC.
Definition: freebsd.hh:231
ArmFreebsd64::TGT_O_NOCTTY
static const int TGT_O_NOCTTY
O_NOCTTY.
Definition: freebsd.hh:226
ArmFreebsd64::TGT_MAP_ANONYMOUS
static const unsigned TGT_MAP_ANONYMOUS
Definition: freebsd.hh:241
ArmFreebsd64::TGT_O_SYNC
static const int TGT_O_SYNC
O_SYNC.
Definition: freebsd.hh:230
ArmFreebsd64::rusage::ru_isrss
int64_t ru_isrss
integral unshared stack "
Definition: freebsd.hh:343
ArmFreebsd64::TGT_O_WRONLY
static const int TGT_O_WRONLY
O_WRONLY.
Definition: freebsd.hh:222
ArmFreebsd64::tgt_stat64::st_atimeX
uint64_t st_atimeX
Definition: freebsd.hh:320
ArmFreebsd64::tgt_stat::st_gen
uint32_t st_gen
Definition: freebsd.hh:306
ArmFreebsd32::tgt_stat::st_mtimeX
uint64_t st_mtimeX
Definition: freebsd.hh:133
ArmFreebsd32::clock_t
int32_t clock_t
Definition: freebsd.hh:59
ArmFreebsd32::rusage::ru_isrss
int32_t ru_isrss
integral unshared stack "
Definition: freebsd.hh:178
ArmFreebsd64::tgt_stat64::st_lspare
uint32_t st_lspare
Definition: freebsd.hh:331
ArmFreebsd32::tgt_iovec::iov_len
uint32_t iov_len
Definition: freebsd.hh:102
ArmFreebsd32::tgt_stat::st_gen
uint32_t st_gen
Definition: freebsd.hh:141
ArmFreebsd32::tgt_stat::st_uid
uint32_t st_uid
Definition: freebsd.hh:128
ArmFreebsd32::rusage::ru_maxrss
int32_t ru_maxrss
max rss
Definition: freebsd.hh:175
ArmFreebsd64::rusage::ru_nivcsw
int64_t ru_nivcsw
involuntary "
Definition: freebsd.hh:353
ArmFreebsd64::TGT_RUSAGE_CHILDREN
static const int TGT_RUSAGE_CHILDREN
Definition: freebsd.hh:247
ArmFreebsd32::rusage::ru_utime
struct timeval ru_utime
user time used
Definition: freebsd.hh:173
ArmFreebsd32::TGT_O_EXCL
static const int TGT_O_EXCL
O_EXCL.
Definition: freebsd.hh:68
ArmFreebsd32::TGT_O_WRONLY
static const int TGT_O_WRONLY
O_WRONLY.
Definition: freebsd.hh:65
ArmFreebsd64
Definition: freebsd.hh:200
ArmFreebsd64::tgt_stat::st_ctime_nsec
uint64_t st_ctime_nsec
Definition: freebsd.hh:301
ArmFreebsd32
Definition: freebsd.hh:44
ArmFreebsd32::tgt_stat::st_mtime_nsec
uint64_t st_mtime_nsec
Definition: freebsd.hh:134
ArmFreebsd64::tgt_stat::st_nlink
uint16_t st_nlink
Definition: freebsd.hh:292
ArmFreebsd64::rlimit::rlim_cur
uint64_t rlim_cur
soft limit
Definition: freebsd.hh:272
ArmFreebsd64::tgt_stat::st_birthtimX
uint64_t st_birthtimX
Definition: freebsd.hh:308
ArmFreebsd32::tgt_stat64::st_dev
uint32_t st_dev
Definition: freebsd.hh:148
ArmFreebsd64::TGT_MAP_FIXED
static const unsigned TGT_MAP_FIXED
Definition: freebsd.hh:242
ArmFreebsd32::TGT_FASYNC
static const int TGT_FASYNC
FASYNC.
Definition: freebsd.hh:74
ArmFreebsd32::tgt_stat64::st_rdev
uint32_t st_rdev
Definition: freebsd.hh:154
ArmFreebsd64::TGT_O_NONBLOCK
static const int TGT_O_NONBLOCK
O_NONBLOCK.
Definition: freebsd.hh:229
ArmFreebsd64::rusage::ru_nsignals
int64_t ru_nsignals
signals received
Definition: freebsd.hh:351
ArmFreebsd32::tgt_stat64::st_ctime_nsec
uint64_t st_ctime_nsec
Definition: freebsd.hh:160
ArmFreebsd32::rusage::ru_nsignals
int32_t ru_nsignals
signals received
Definition: freebsd.hh:186
ArmFreebsd64::tgt_stat::st_ino
uint32_t st_ino
Definition: freebsd.hh:290
OperatingSystem::tgt_stat
void tgt_stat
Stat buffer.
Definition: operatingsystem.hh:59
ArmFreebsd32::tgt_stat::st_blksize
uint32_t st_blksize
Definition: freebsd.hh:139
ArmFreebsd32::time_t
int32_t time_t
Definition: freebsd.hh:58
ArmFreebsd64::TGT_O_RDONLY
static const int TGT_O_RDONLY
open(2) flag values.
Definition: freebsd.hh:221
ArmFreebsd64::rusage::ru_ixrss
int64_t ru_ixrss
integral shared memory size
Definition: freebsd.hh:341
ArmFreebsd64::rusage::ru_utime
struct timeval ru_utime
user time used
Definition: freebsd.hh:338
FreeBSD
Definition: threadinfo.hh:39
ArmFreebsd64::rusage::ru_oublock
int64_t ru_oublock
block output operations
Definition: freebsd.hh:348
ArmFreebsd64::tgt_stat64::st_gen
uint32_t st_gen
Definition: freebsd.hh:330
ArmFreebsd32::rusage::ru_ixrss
int32_t ru_ixrss
integral shared memory size
Definition: freebsd.hh:176
ArmFreebsd32::openFlagTable
static SyscallFlagTransTable openFlagTable[]
This table maps the target open() flags to the corresponding host open() flags.
Definition: freebsd.hh:49
ArmFreebsd64::tgt_stat64::st_blksize
uint32_t st_blksize
Definition: freebsd.hh:328
freebsd.hh
ArmFreebsd32::tgt_stat::st_mode
uint16_t st_mode
Definition: freebsd.hh:126
ArmFreebsd32::rusage::ru_nvcsw
int32_t ru_nvcsw
voluntary context switches
Definition: freebsd.hh:187
ArmFreebsd32::tgt_stat::st_gid
uint32_t st_gid
Definition: freebsd.hh:129
ArmFreebsd64::TGT_RLIMIT_STACK
@ TGT_RLIMIT_STACK
Definition: freebsd.hh:256
ArmFreebsd64::tms::tms_cstime
int64_t tms_cstime
system time of children
Definition: freebsd.hh:361
ArmFreebsd32::TGT_O_RDONLY
static const int TGT_O_RDONLY
open(2) flag values.
Definition: freebsd.hh:64
ArmFreebsd64::TGT_MAP_PRIVATE
static const unsigned TGT_MAP_PRIVATE
Definition: freebsd.hh:240
ArmFreebsd32::TGT_MAP_PRIVATE
static const unsigned TGT_MAP_PRIVATE
Definition: freebsd.hh:83
ArmFreebsd64::rusage::ru_maxrss
int64_t ru_maxrss
max rss
Definition: freebsd.hh:340
ArmFreebsd32::off_t
uint32_t off_t
Definition: freebsd.hh:57
ArmFreebsd64::tms
For times().
Definition: freebsd.hh:357
ArmFreebsd64::tgt_stat64::st_ctimeX
uint64_t st_ctimeX
Definition: freebsd.hh:324
ArmFreebsd32::tgt_stat::st_nlink
uint16_t st_nlink
Definition: freebsd.hh:127
ArmFreebsd64::timeval::tv_sec
int64_t tv_sec
seconds
Definition: freebsd.hh:278
ArmFreebsd64::TGT_O_CLOEXEC
static const int TGT_O_CLOEXEC
O_CLOEXEC.
Definition: freebsd.hh:235
ArmFreebsd
Definition: freebsd.hh:38
ArmFreebsd64::tgt_stat64::st_rdev
uint32_t st_rdev
Definition: freebsd.hh:319
ArmFreebsd64::size_t
uint64_t size_t
Basic ARM FreeBSD types.
Definition: freebsd.hh:213
ArmFreebsd32::TGT_O_CREAT
static const int TGT_O_CREAT
O_CREAT.
Definition: freebsd.hh:67
ArmFreebsd64::TGT_O_EXCL
static const int TGT_O_EXCL
O_EXCL.
Definition: freebsd.hh:225
ArmFreebsd64::tgt_stat::st_rdev
uint32_t st_rdev
Definition: freebsd.hh:295
ArmFreebsd64::TGT_RUSAGE_SELF
static const int TGT_RUSAGE_SELF
For getrusage().
Definition: freebsd.hh:246
ArmFreebsd64::TGT_RLIMIT_NPTS
@ TGT_RLIMIT_NPTS
Definition: freebsd.hh:265
ArmFreebsd32::TGT_MAP_ANONYMOUS
static const unsigned TGT_MAP_ANONYMOUS
Definition: freebsd.hh:84
ArmFreebsd32::tgt_stat64::st_atimeX
uint64_t st_atimeX
Definition: freebsd.hh:155

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