This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/19241] New: systemtap fails to start when CPU0 is offline


https://sourceware.org/bugzilla/show_bug.cgi?id=19241

            Bug ID: 19241
           Summary: systemtap fails to start when CPU0 is offline
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
          Assignee: systemtap at sourceware dot org
          Reporter: mcermak at redhat dot com
  Target Milestone: ---

Created attachment 8780
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8780&action=edit
proposed patch

Per rhbz1280321, stap fails to start when CPU0 is offline:

========
# echo 1 > /sys/devices/system/cpu/cpu0/online
# cat /sys/devices/system/cpu/cpu*/online
1
1
1
1
# stap -e 'probe oneshot {log("hey!")}'
hey!
# echo 0 > /sys/devices/system/cpu/cpu0/online
# cat /sys/devices/system/cpu/cpu*/online
0
1
1
1
# stap -e 'probe oneshot {log("hey!")}'
stapio:init_relayfs:282: ERROR: couldn't open
/sys/kernel/debug/systemtap/stap_2e0ffa1415135b7d8d3684541d2a4c8_26577/trace0.
WARNING: /usr/bin/staprun exited with status: 1
Pass 5: run failed.  [man error::pass5]
#
========

In bulk mode, staprun fails when any CPU except the last one are offline.
Attached patch fixes the issue for me.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]