summaryrefslogtreecommitdiff
path: root/src/cpu/op_class.hh
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas@sandberg.pp.se>2013-10-15 10:09:23 +0200
committerAndreas Sandberg <andreas@sandberg.pp.se>2013-10-15 10:09:23 +0200
commit4b8be6a90b39ef195313af2029cde2c0ca564a53 (patch)
treefaaeb4b7127734ecff67d716c0d655efc4b6a873 /src/cpu/op_class.hh
parentd4f205ea2ff2800b253d4681afaa6af330bfa33b (diff)
downloadgem5-4b8be6a90b39ef195313af2029cde2c0ca564a53.tar.xz
kvm: Set the perf exclude_host attribute if available
The performance counting framework in Linux 3.2 and onwards supports an attribute to exclude events generated by the host when running KVM. Setting this attribute allows us to get more reliable measurements of the guest machine. For example, on a highly loaded system, the instruction counts from the guest can be severely distorted by the host kernel (e.g., by page fault handlers). This changeset introduces a check for the attribute and enables it in the KVM CPU if present.
Diffstat (limited to 'src/cpu/op_class.hh')
0 files changed, 0 insertions, 0 deletions