linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jiri Olsa <jolsa@redhat.com>
To: Sujith Manoharan <sujith@msujith.org>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: perf lock usage
Date: Thu, 30 Jan 2014 11:33:52 +0100	[thread overview]
Message-ID: <20140130103352.GA1161@krava.brq.redhat.com> (raw)
In-Reply-To: <21225.2037.467035.833797@gargle.gargle.HOWL>

On Wed, Jan 29, 2014 at 07:23:57PM +0530, Sujith Manoharan wrote:
> Jiri Olsa wrote:
> > some of the kernel lock types do not follow the:
> >   acquire
> >   contended
> >   acuired
> >   release
> > 
> > lock state machine, like rcu or spin locks.. and thats what
> > caused most of the bad rates in my tests.
> > 
> > I was recently working on some changes for lock tracing,
> > what stats are you interested in?
> 
> I am trying to see lock usage stats for the ath9k wireless driver.
> Mainly in the transmission path, where normal spin locks
> are acquired.

I was using following code for studying the lock flow,
but it can also display the overhead (but not much in detail)

git tree:
  git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
  perf/core_lock branch

the usage is sort of described in example here:
https://git.kernel.org/cgit/linux/kernel/git/jolsa/perf.git/commit/?h=perf/core_lock&id=f140425e46b2469b825c12b72507c6f3c539c7dd

so far I've been using the list mode only for checking
the lock flow, but it doesn't seem much useful otherwise..
so I haven't shared it yet

not sure this can be any use for you, but let me know if
you'd need other info

jirka

      reply	other threads:[~2014-01-30 10:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-23  6:49 perf lock usage Sujith Manoharan
2014-01-23 12:36 ` Frederic Weisbecker
2014-01-23 12:37   ` Sujith Manoharan
2014-01-28  9:35 ` Jiri Olsa
2014-01-29 13:53   ` Sujith Manoharan
2014-01-30 10:33     ` Jiri Olsa [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=20140130103352.GA1161@krava.brq.redhat.com \
    --to=jolsa@redhat.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=sujith@msujith.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).