RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1410348 - RHEL-7.4-Pegas systemtap does not work at all
Summary: RHEL-7.4-Pegas systemtap does not work at all
Keywords:
Status: CLOSED DUPLICATE of bug 1386120
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemtap
Version: 7.4
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Frank Ch. Eigler
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-05 09:01 UTC by Honggang LI
Modified: 2017-01-05 12:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-05 12:10:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Honggang LI 2017-01-05 09:01:11 UTC
Description of problem:

systemtap failed to run a dummy script.

Version-Release number of selected component (if applicable):
[root@rdma-qe-05 ~]$ rpm -q kernel systemtap
kernel-4.9.0-2.el7.x86_64
systemtap-3.0-7.el7.x86_64
[root@rdma-qe-05 ~]$ grep -i distro /etc/motd
                           DISTRO=Pegas-7.4-20161226.n.0


How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:
[root@rdma-qe-05 ~]$ stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}'

Pass 1: parsed user script and 115 library scripts using 220612virt/36856res/6436shr/30848data kb, in 190usr/0sys/184real ms.
Pass 2: analyzed script: 1 probe, 1 function, 4 embeds, 0 globals using 378092virt/195928res/8048shr/188328data kb, in 1220usr/150sys/1383real ms.
Pass 3: translated to C into "/tmp/stapaQBoGu/stap_0703fddb640736e716d83799b845b282_1626_src.c" using 378092virt/196120res/8240shr/188328data kb, in 0usr/30sys/41real ms.
In file included from /usr/share/systemtap/runtime/linux/runtime.h:209:0,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapaQBoGu/stap_0703fddb640736e716d83799b845b282_1626_src.c:25:
/usr/share/systemtap/runtime/linux/access_process_vm.h: In function ‘__access_process_vm_’:
/usr/share/systemtap/runtime/linux/access_process_vm.h:35:7: error: passing argument 1 of ‘get_user_pages’ makes integer from pointer without a cast [-Werror]
       ret = get_user_pages (tsk, mm, addr, 1, write, 1, &page, &vma);
       ^
In file included from ./include/linux/pid_namespace.h:6:0,
                 from ./include/linux/ptrace.h:8,
                 from ./include/linux/ftrace.h:13,
                 from ./include/linux/kprobes.h:42,
                 from /usr/share/systemtap/runtime/linux/runtime.h:21,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapaQBoGu/stap_0703fddb640736e716d83799b845b282_1626_src.c:25:
./include/linux/mm.h:1278:6: note: expected ‘long unsigned int’ but argument is of type ‘struct task_struct *’
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^
In file included from /usr/share/systemtap/runtime/linux/runtime.h:209:0,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapaQBoGu/stap_0703fddb640736e716d83799b845b282_1626_src.c:25:
/usr/share/systemtap/runtime/linux/access_process_vm.h:35:7: error: passing argument 2 of ‘get_user_pages’ makes integer from pointer without a cast [-Werror]
       ret = get_user_pages (tsk, mm, addr, 1, write, 1, &page, &vma);
       ^
In file included from ./include/linux/pid_namespace.h:6:0,
                 from ./include/linux/ptrace.h:8,
                 from ./include/linux/ftrace.h:13,
                 from ./include/linux/kprobes.h:42,
                 from /usr/share/systemtap/runtime/linux/runtime.h:21,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapaQBoGu/stap_0703fddb640736e716d83799b845b282_1626_src.c:25:
./include/linux/mm.h:1278:6: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^
In file included from /usr/share/systemtap/runtime/linux/runtime.h:209:0,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapaQBoGu/stap_0703fddb640736e716d83799b845b282_1626_src.c:25:
/usr/share/systemtap/runtime/linux/access_process_vm.h:35:7: error: passing argument 4 of ‘get_user_pages’ makes pointer from integer without a cast [-Werror]
       ret = get_user_pages (tsk, mm, addr, 1, write, 1, &page, &vma);
       ^
In file included from ./include/linux/pid_namespace.h:6:0,
                 from ./include/linux/ptrace.h:8,
                 from ./include/linux/ftrace.h:13,
                 from ./include/linux/kprobes.h:42,
                 from /usr/share/systemtap/runtime/linux/runtime.h:21,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapaQBoGu/stap_0703fddb640736e716d83799b845b282_1626_src.c:25:
./include/linux/mm.h:1278:6: note: expected ‘struct page **’ but argument is of type ‘int’
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^
In file included from /usr/share/systemtap/runtime/linux/runtime.h:209:0,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapaQBoGu/stap_0703fddb640736e716d83799b845b282_1626_src.c:25:
/usr/share/systemtap/runtime/linux/access_process_vm.h:35:7: error: passing argument 5 of ‘get_user_pages’ makes pointer from integer without a cast [-Werror]
       ret = get_user_pages (tsk, mm, addr, 1, write, 1, &page, &vma);
       ^
In file included from ./include/linux/pid_namespace.h:6:0,
                 from ./include/linux/ptrace.h:8,
                 from ./include/linux/ftrace.h:13,
                 from ./include/linux/kprobes.h:42,
                 from /usr/share/systemtap/runtime/linux/runtime.h:21,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapaQBoGu/stap_0703fddb640736e716d83799b845b282_1626_src.c:25:
./include/linux/mm.h:1278:6: note: expected ‘struct vm_area_struct **’ but argument is of type ‘int’
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^
In file included from /usr/share/systemtap/runtime/linux/runtime.h:209:0,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapaQBoGu/stap_0703fddb640736e716d83799b845b282_1626_src.c:25:
/usr/share/systemtap/runtime/linux/access_process_vm.h:35:7: error: too many arguments to function ‘get_user_pages’
       ret = get_user_pages (tsk, mm, addr, 1, write, 1, &page, &vma);
       ^
In file included from ./include/linux/pid_namespace.h:6:0,
                 from ./include/linux/ptrace.h:8,
                 from ./include/linux/ftrace.h:13,
                 from ./include/linux/kprobes.h:42,
                 from /usr/share/systemtap/runtime/linux/runtime.h:21,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapaQBoGu/stap_0703fddb640736e716d83799b845b282_1626_src.c:25:
./include/linux/mm.h:1278:6: note: declared here
 long get_user_pages(unsigned long start, unsigned long nr_pages,
      ^
In file included from /usr/share/systemtap/runtime/linux/runtime.h:209:0,
                 from /usr/share/systemtap/runtime/runtime.h:24,
                 from /tmp/stapaQBoGu/stap_0703fddb640736e716d83799b845b282_1626_src.c:25:
/usr/share/systemtap/runtime/linux/access_process_vm.h:55:7: error: implicit declaration of function ‘page_cache_release’ [-Werror=implicit-function-declaration]
       page_cache_release (page);
       ^
In file included from /usr/share/systemtap/runtime/linux/print.c:17:0,
                 from /usr/share/systemtap/runtime/print.c:17,
                 from /usr/share/systemtap/runtime/runtime_context.h:22,
                 from /tmp/stapaQBoGu/stap_0703fddb640736e716d83799b845b282_1626_src.c:75:
/usr/share/systemtap/runtime/transport/transport.c: In function ‘_stp_lock_inode’:
/usr/share/systemtap/runtime/transport/transport.c:494:19: error: ‘struct inode’ has no member named ‘i_mutex’
  mutex_lock(&inode->i_mutex);
                   ^
/usr/share/systemtap/runtime/transport/transport.c: In function ‘_stp_unlock_inode’:
/usr/share/systemtap/runtime/transport/transport.c:503:21: error: ‘struct inode’ has no member named ‘i_mutex’
  mutex_unlock(&inode->i_mutex);
                     ^
cc1: all warnings being treated as errors
make[1]: *** [/tmp/stapaQBoGu/stap_0703fddb640736e716d83799b845b282_1626_src.o] Error 1
make: *** [_module_/tmp/stapaQBoGu] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compiled C into "stap_0703fddb640736e716d83799b845b282_1626.ko" in 4770usr/580sys/5289real ms.
Pass 4: compilation failed.  [man error::pass4]
[root@rdma-qe-05 ~]$ 


Expected results:
systemtap should be able to run this dummy script without error.

Additional info:

Comment 1 Frank Ch. Eigler 2017-01-05 12:10:41 UTC

*** This bug has been marked as a duplicate of bug 1386120 ***


Note You need to log in before you can comment on or make changes to this bug.