Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-153098

[RFE] Enable USDT/SystemTap probes in production builds

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • 389-ds-base
    • None
    • None
    • rhel-idm-ds
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      Goal

      As a support engineer performing deep-dive live analysis with bpftrace or SystemTap, I need USDT probes compiled into production RPMs so I can attach dynamic tracing to ns-slapd without recompiling or restarting.

      STAP_PROBE points already exist in the codebase and 3 example SystemTap scripts ship in profiling/stap/, but production RPMs compile without --enable-systemtap and don't list systemtap-sdt-devel in BuildRequires. The probes compile to single NOP instructions with zero overhead when not traced.

      Add systemtap-sdt-devel to BuildRequires and pass --enable-systemtap in %configure. Add new probes for work queue operations: work_q_enqueue, work_q_dequeue, worker_busy, worker_idle – these complement the existing probes with thread pool lifecycle coverage. When tracing is attached, the kernel replaces each NOP with an INT3 trap – same privilege model as gdb/strace.

      Acceptance criteria

      • Verify the RPM builds successfully with --enable-systemtap enabled
      • Verify existing probe points are present in the built binary (check via readelf -n or tplist)
      • Verify the 4 new work queue probes fire correctly when traced with bpftrace under load
      • Verify the existing SystemTap scripts in profiling/stap/ work against the new build

              idm-ds-dev-bugs IdM DS Dev
              spichugi@redhat.com Simon Pichugin
              IdM DS Dev IdM DS Dev
              IdM DS QE IdM DS QE
              Evgenia Martyniuk Evgenia Martyniuk
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: