diff options
author | Hiroshi Doyu <[email protected]> | 2012-08-02 11:46:40 +0300 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2012-08-03 17:53:55 +0200 |
commit | 39abf8aa7dfad0badb4741373023cda369aacc8e (patch) | |
tree | b1e845941ab5a29f4907922a6406d2db13bc38e5 /fs/jbd/commit.c | |
parent | 0d7614f09c1ebdbaa1599a5aba7593f147bf96ee (diff) |
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 <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions