Linux s390 Architecture development
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Improve DIAG 9c observability
@ 2026-06-25 13:16 Ciunas Bennett
  2026-06-25 13:16 ` [PATCH v2 1/2] s390/kvm: Refactor __diag_time_slice_end_directed for single exit point Ciunas Bennett
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Ciunas Bennett @ 2026-06-25 13:16 UTC (permalink / raw)
  To: linux-s390
  Cc: borntraeger, frankja, imbrenda, david, hca, gor, agordeev, svens,
	Ciunas Bennett

This series enhances observability for DIAG 9c directed yield operations
in s390 KVM by refactoring the handler and adding comprehensive tracing
support.

The first patch refactors __diag_time_slice_end_directed() to use a
single exit point with a result string variable. This consolidates the
control flow and eliminates code duplication in logging statements,
making the function more maintainable.

The second patch builds on this refactoring by adding a new tracepoint
kvm_s390_diag_9c that captures detailed information about directed yield
operations, including source/target VCPU IDs, physical CPU numbers, and
operation results. This enables better analysis of VCPU scheduling
behaviour and helps diagnose performance issues in virtualised s390
environments.

Together, these changes provide kernel developers and system
administrators with better tools to understand and debug VCPU scheduling
patterns related to directed yields.

---
Changes in v2:
 - Add system maintainers to review mail
---

Ciunas Bennett (2):
  s390/kvm: Refactor __diag_time_slice_end_directed for single exit
    point
  s390/kvm: Add tracepoint for DIAG 9c directed yield operations

 arch/s390/kvm/diag.c  | 19 +++++++++++--------
 arch/s390/kvm/trace.h | 30 ++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+), 8 deletions(-)

base-commit: 184fc1890bcc8242f00fee660d2651290f1461a2
-- 
2.54.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-07-24  9:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-25 13:16 [PATCH v2 0/2] Improve DIAG 9c observability Ciunas Bennett
2026-06-25 13:16 ` [PATCH v2 1/2] s390/kvm: Refactor __diag_time_slice_end_directed for single exit point Ciunas Bennett
2026-06-25 13:16 ` [PATCH v2 2/2] s390/kvm: Add tracepoint for DIAG 9c directed yield operations Ciunas Bennett
2026-07-23 15:28   ` Christian Borntraeger
2026-07-23 19:56     ` Ciunas Bennett
2026-07-24  6:58       ` Sven Schnelle
2026-07-24  8:03       ` Christian Borntraeger
2026-07-24  9:00         ` Ciunas Bennett
2026-07-24  9:57           ` Christian Borntraeger
2026-06-25 13:52 ` [PATCH v2 0/2] Improve DIAG 9c observability Mete Durlu
2026-06-25 16:02 ` Claudio Imbrenda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox