All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vasily Gorbik <gor@linux.ibm.com>
To: Ciunas Bennett <ciunas@linux.ibm.com>
Cc: linux-s390@vger.kernel.org, hca@linux.ibm.com,
	agordeev@linux.ibm.com, borntraeger@linux.ibm.com,
	huschle@linux.ibm.com, svens@linux.ibm.com
Subject: Re: [PATCH] s390/spinlock: Add contention tracepoints to lock slowpath
Date: Thu, 23 Jul 2026 17:37:26 +0200	[thread overview]
Message-ID: <ttimwqe@ub.hpns> (raw)
In-Reply-To: <20260723084229.923353-1-ciunas@linux.ibm.com>

On Thu, Jul 23, 2026 at 10:42:29AM +0200, Ciunas Bennett wrote:
> Instrument arch_spin_lock_wait() with trace_contention_begin() and
> trace_contention_end().
> 
> These tracepoints are used by lock contention analysis tools such as
> perf lock contention to identify contended locks and measure wait times.
> Both the generic implementation and powerpc emit the same events from
> their spinlock slow path.
> 
> Place the tracepoints in arch_spin_lock_wait(), which is only entered
> when lock acquisition falls back to the contention path.
> 
> Signed-off-by: Ciunas Bennett <ciunas@linux.ibm.com>
> ---
>  arch/s390/lib/spinlock.c | 3 +++
>  1 file changed, 3 insertions(+)

Applied, thank you!

      parent reply	other threads:[~2026-07-23 15:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-23  8:42 [PATCH] s390/spinlock: Add contention tracepoints to lock slowpath Ciunas Bennett
2026-07-23  8:51 ` sashiko-bot
2026-07-23 10:01 ` Heiko Carstens
2026-07-23 15:37 ` Vasily Gorbik [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=ttimwqe@ub.hpns \
    --to=gor@linux.ibm.com \
    --cc=agordeev@linux.ibm.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=ciunas@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=huschle@linux.ibm.com \
    --cc=linux-s390@vger.kernel.org \
    --cc=svens@linux.ibm.com \
    /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.