diff options
| author | Dave Martin <[email protected]> | 2019-03-15 15:47:04 +0000 |
|---|---|---|
| committer | Marc Zyngier <[email protected]> | 2019-03-29 14:41:53 +0000 |
| commit | be25bbb392fad3a721d6d21b78639b60612b5439 (patch) | |
| tree | 1d22a8aa5dc028c097fe4383b087420e1f55bdea /tools/perf/scripts/python/stackcollapse.py | |
| parent | dc52f31a928ba591757aac4e72b35ea163713b57 (diff) | |
KVM: arm64: Factor out core register ID enumeration
In preparation for adding logic to filter out some KVM_REG_ARM_CORE
registers from the KVM_GET_REG_LIST output, this patch factors out
the core register enumeration into a separate function and rebuilds
num_core_regs() on top of it.
This may be a little more expensive (depending on how good a job
the compiler does of specialising the code), but KVM_GET_REG_LIST
is not a hot path.
This will make it easier to consolidate ID filtering code in one
place.
No functional change.
Signed-off-by: Dave Martin <[email protected]>
Reviewed-by: Julien Thierry <[email protected]>
Tested-by: zhang.lei <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions