diff options
author | Matt Redfearn <[email protected]> | 2018-04-20 11:23:03 +0100 |
---|---|---|
committer | James Hogan <[email protected]> | 2018-05-15 13:33:48 +0100 |
commit | 8270ab48e67333f760b3bef507c1524c7a06c699 (patch) | |
tree | b1b53056e508652bbe147a228640e08a54efc6ae /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 8798e3921e3000a046d336920588745b6651959b (diff) |
MIPS: Probe for MIPS MT perf counters per TC
Processors implementing the MIPS MT ASE may have performance counters
implemented per core or per TC. Processors implemented by MIPS
Technologies signify presence per TC through a bit in the implementation
specific Config7 register. Currently the code which probes for their
presence blindly reads a magic number corresponding to this bit, despite
it potentially having a different meaning in the CPU implementation.
Since CPU features are generally detected by cpu-probe.c, perform the
detection here instead. Introduce cpu_set_mt_per_tc_perf which checks
the bit in config7 and call it from MIPS CPUs known to implement this
bit and the MT ASE, specifically, the 34K, 1004K and interAptiv.
Once the presence of the per-tc counter is indicated in cpu_data, tests
for it can be updated to use this flag.
Suggested-by: James Hogan <[email protected]>
Signed-off-by: Matt Redfearn <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Matt Redfearn <[email protected]>
Cc: Paul Burton <[email protected]>
Cc: Maciej W. Rozycki <[email protected]>
Cc: [email protected]>
Patchwork: https://patchwork.linux-mips.org/patch/19136/
Signed-off-by: James Hogan <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions