On Thu, Aug 02, 2012 at 11:46:40AM +0300, Hiroshi Doyu wrote: > 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@xxxxxxxxxx> Applied to arm/tegra, thanks. -- AMD Operating System Research Center Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach General Managers: Alberto Bozzo Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632 -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html