diff options
author | Paul Rosenfeld <prosenfeld@micron.com> | 2017-04-04 09:06:38 -0600 |
---|---|---|
committer | Paul Rosenfeld <prosenfeld@micron.com> | 2017-06-22 13:32:04 +0000 |
commit | 1d7ff84f126e5e1b138c7250a275ebe3a46fa27c (patch) | |
tree | 629f6fb5b21b3f8603cdb32477108547d90881c3 /src/dev/arm/vgic.hh | |
parent | 9cdfcf93470ca11c12eeac50aea9536ef914790f (diff) | |
download | gem5-1d7ff84f126e5e1b138c7250a275ebe3a46fa27c.tar.xz |
arm,sim: fix context switch stats dumps for ARM64/Linux
32bit and 64bit Linux have different arguments passed to the
__switch_to() function that gem5 hooks into in order to collect context
switch statistics. 64bit Linux provides the task_struct pointer to the
next task that will be switched to, which means we don't have to look
up the task_struct from thread_info as we do in 32bit ARM Linux.
This patch adds a second set of accessors to ThreadInfo to extract
details such as the pid, tgid, task name, etc., directly from a
task_struct. The existing accessors maintain their existing behavior by
first looking up the task_struct and then calling these new accessors.
A 64-bit variant of the DumpStatsPCEvent class is added that uses these
new accessors to get the task details for the context switch dumps
directly from the task_struct passed to __switch_to().
Change-Id: I63c4b3e1ad64446751a91f6340901d5180d7382d
Reviewed-on: https://gem5-review.googlesource.com/2640
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Pau Cabre <pau.cabre@metempsy.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/dev/arm/vgic.hh')
0 files changed, 0 insertions, 0 deletions