diff options
| author | Ciunas Bennett <ciunas@linux.ibm.com> | 2026-07-24 12:39:57 +0200 |
|---|---|---|
| committer | Christian Borntraeger <borntraeger@linux.ibm.com> | 2026-07-30 16:17:23 +0200 |
| commit | a3928021b93006f857c365dc6ac3c1a84cb7a9ee (patch) | |
| tree | 1d5eedf9cc5264c5f08a3a431e5bc269d76e84da /tools/perf/scripts/python/stackcollapse.py | |
| parent | eae9cb30cfa74c29d4b633d144f9f63af7aac94f (diff) | |
KVM: s390: Refactor __diag_time_slice_end_directed for single exit point
Refactor the DIAG 9c (directed yield) handler to use a unified exit path,
improving code maintainability and reducing duplication.
Changes:
- Consolidate all exit paths to use a single 'out' label
- Replace multiple VCPU_EVENT logging calls with one unified call
- Introduce 'result' string variable to track operation outcome
- Initialize tcpu_cpu to -1 for safe handling across all code paths
- Ensure statistics updates occur before the common exit point
This refactoring maintains identical functionality while making the control
flow clearer and easier to maintain. All three possible outcomes (yield
forwarded, done, ignored) now converge at a single logging point
Signed-off-by: Ciunas Bennett <ciunas@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
