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 <[email protected]>
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
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu