linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] stalld: Improve legacy kernel support and unify sched_debug parsing
@ 2025-10-02 20:55 Derek Barbosa
  2025-10-02 20:55 ` [PATCH 1/3] sched_debug: Unify parsing methods for task_info Derek Barbosa
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Derek Barbosa @ 2025-10-02 20:55 UTC (permalink / raw)
  To: clrkwllms; +Cc: linux-rt-users, wander, debarbos

This patch series enhances stalld's compatibility with legacy 3.X kernels
and improves the robustness of the sched_debug backend parsing logic.

The main improvements include:

1. Consolidates the OLD and NEW task format parsing logic into a single, more
maintainable implementation. The new parser uses field offset detection to
handle different kernel versions' varying sched_debug output formats,
eliminating code duplication and improving reliability across kernel versions.

2. Legacy kernel build support: Adds automatic detection of 3.X kernels in the
Makefile and configures appropriate build flags. This includes disabling eBPF
support (unavailable on legacy kernels), removing Intel CET protection flags,
and defaulting to the sched_debug backend instead of the queue_track backend.

3. Shell compatibility fix: Corrects a bash syntax issue in the run-local script
that prevented execution on older bash versions (4.2.X) commonly found on legacy
systems.

Clark Williams (1):
  sched_debug: Unify parsing methods for task_info

Derek Barbosa (2):
  Makefile: Add support for legacy kernels
  scripts: fix run-local if bashism

 Makefile             |  40 ++++-
 scripts/run-local.sh |   2 +-
 src/sched_debug.c    | 405 +++++++++++++++++++------------------------
 src/sched_debug.h    |  65 ++++++-
 src/stalld.c         |   6 +-
 5 files changed, 288 insertions(+), 230 deletions(-)

--
2.50.0


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

end of thread, other threads:[~2025-10-21 13:04 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-02 20:55 [PATCH 0/3] stalld: Improve legacy kernel support and unify sched_debug parsing Derek Barbosa
2025-10-02 20:55 ` [PATCH 1/3] sched_debug: Unify parsing methods for task_info Derek Barbosa
2025-10-02 20:55 ` [PATCH 2/3] Makefile: Add support for legacy kernels Derek Barbosa
2025-10-07 16:43   ` Clark Williams
2025-10-07 18:50   ` Crystal Wood
2025-10-08 13:07     ` Derek Barbosa
2025-10-08 16:50       ` Crystal Wood
2025-10-08 18:41         ` Derek Barbosa
2025-10-08 21:38           ` Crystal Wood
2025-10-08 23:52             ` Derek Barbosa
2025-10-10  4:07               ` Crystal Wood
2025-10-17 13:16           ` Clark Williams
2025-10-20 16:54             ` Crystal Wood
2025-10-20 18:18               ` Derek Barbosa
2025-10-17 13:20     ` Clark Williams
     [not found]     ` <CAMLffL_a2-RkOJg8kXPZSKhzenu9aPDs4SBz-F97y9-wa_oHHQ@mail.gmail.com>
2025-10-20 16:48       ` Crystal Wood
2025-10-21 13:04         ` Clark Williams
2025-10-02 20:55 ` [PATCH 3/3] scripts: fix run-local if bashism Derek Barbosa
2025-10-07 16:42   ` Clark Williams

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).