From: Joerg Roedel <joerg.roedel-5C7GfCeVMHo@public.gmane.org>
To: Hiroshi Doyu <hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [v2 1/1] iommu/tegra: smmu: debugfs for TLB/PTC statistics
Date: Fri, 3 Aug 2012 17:57:40 +0200 [thread overview]
Message-ID: <20120803155740.GI1996@amd.com> (raw)
In-Reply-To: <1343897200-3396-1-git-send-email-hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
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-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
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
prev parent reply other threads:[~2012-08-03 15:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-31 5:14 [PATCH 1/1] iommu/tegra: smmu: debugfs for TLB/PTC statistics Hiroshi Doyu
[not found] ` <1343711681-23394-1-git-send-email-hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-08-02 8:46 ` [v2 " Hiroshi Doyu
[not found] ` <1343897200-3396-1-git-send-email-hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-08-03 15:57 ` Joerg Roedel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120803155740.GI1996@amd.com \
--to=joerg.roedel-5c7gfcevmho@public.gmane.org \
--cc=hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
--cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.