diff options
author | 2012-08-02 11:46:40 +0300 | |
---|---|---|
committer | 2012-08-03 17:53:55 +0200 | |
commit | 39abf8aa7dfad0badb4741373023cda369aacc8e (patch) | |
tree | b1e845941ab5a29f4907922a6406d2db13bc38e5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 3.6-rc1 (diff) | |
download | linux-dev-39abf8aa7dfad0badb4741373023cda369aacc8e.tar.xz linux-dev-39abf8aa7dfad0badb4741373023cda369aacc8e.zip |
iommu/tegra: smmu: debugfs for TLB/PTC statistics
Add debugfs entries to collect TLB/PTC statistics.
$ echo "reset" > /sys/kernel/debug/smmu/mc/{tlb,ptc}
$ echo "on" > /sys/kernel/debug/smmu/mc/{tlb,ptc}
$ echo "off" > /sys/kernel/debug/smmu/mc/{tlb,ptc}
$ cat /sys/kernel/debug/smmu/mc/{tlb,ptc}
hit:0014910c miss:00014d22
The above format is:
hit:<HIT count><SPC>miss:<MISS count><SPC><CR+LF>
fscanf(fp, "hit:%lx miss:%lx", &hit, &miss);
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions