• Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Normal Normal
    • None
    • rhel-8.10.z, rhel-9.5
    • systemtap
    • None
    • None
    • None
    • rhel-sst-pt-perf-debug
    • ssg_platform_tools
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • All
    • None

      What were you trying to do that didn't work?

      It fails on RHEL8 and RHEL9

      Please provide the package NVR for which bug is seen:

      How reproducible:

      Steps to reproduce

      1.  create a 1 minutetip system with RHEL8 or RHEL9.
      2.  login to the system
      3.  cat > simple-test.stp
      4. Script to test basic System Tap functionality.

      global tickCounter = 0;
      global vmallocCounter = 0;

      function sayHello()
      %

      {     printk("systemtap script says hello\n"); %}

      probe begin

      {     sayHello();     printf("hello\n"); }

      probe timer.ms(100)

      {     tickCounter++; }

      function sayGoodbye()
      %

      {     printk("systemtap script says goodbye\n"); %}

      // Force use of some basic debug info.
      probe kernel.function("vmalloc")

      {     vmallocCounter++; }

      probe end

      {     sayGoodbye();     printf("counter = %d\nvmalloc = %d\nbye!\n", tickCounter, vmallocCounter); }

      3. # sudo stap -v -F -o stap.log -g --disable-cache ./simple-test.stp

      Expected results:

      sudo stap -v -F -o stap.log -g --disable-cache ./simple-test.stp
      Pass 1: parsed user script and 522 library scripts using 189328virt/160544res/15744shr/144292data kb, in 340usr/100sys/527real ms.
      Pass 2: analyzed script: 4 probes, 2 functions, 0 embeds, 2 globals using 282540virt/254468res/16924shr/237504data kb, in 1770usr/230sys/2233real ms.
      Pass 3: translated to C into "/tmp/stapNURWOO/stap_2540871_src.c" using 282540virt/254660res/17116shr/237504data kb, in 20usr/0sys/25real ms.
      Pass 4: compiled C into "stap_2540871.ko" in 20280usr/5600sys/9019real ms.
      Pass 5: starting run.
      Pass 5: run completed in 0usr/60sys/73real ms.

      Actual results

      sudo stap -v -F -o stap.log -g --disable-cache ./simple-test.stp
      Pass 1: parsed user script and 486 library scripts using 132908virt/104944res/15232shr/89088data kb, in 200usr/50sys/541real ms.
      WARNING: cannot find module kernel debuginfo: No DWARF information found [man warning::debuginfo]
      semantic error: resolution failed in DWARF builder

      semantic error: while resolving probe point: identifier 'kernel' at ./simple-test.stp:28:7
              source: probe kernel.function("vmalloc")
                            ^

      semantic error: no match

      Pass 2: analyzed script: 3 probes, 2 functions, 0 embeds, 2 globals using 137704virt/114824res/20352shr/93884data kb, in 270usr/50sys/412real ms.
      Pass 2: analysis failed.  [man error::pass2]

              rhtorsys Frank Eigler
              cchung@redhat.com Chung Chung
              Frank Eigler Frank Eigler
              qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com qe-baseos-tools-bugs@redhat.com
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: