[Bug tapsets/26152] New: _struct_compat_timex_u() function doesn't work on rhel8

wcohen at redhat dot com sourceware-bugzilla@sourceware.org
Mon Jun 22 18:45:43 GMT 2020


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

            Bug ID: 26152
           Summary: _struct_compat_timex_u() function doesn't work on
                    rhel8
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
          Assignee: systemtap at sourceware dot org
          Reporter: wcohen at redhat dot com
  Target Milestone: ---

When running the current snapshot of systemtap on rhel8 some of the examples
(errsnoop and strace) that probe all the syscalls were failing.  Tracked the
problem down to the _struct_compat_timex_u() function.  This doesn't appear to
be a problem with the newer kernels in feora 32.

$ rpm -q kernel
kernel-4.18.0-216.el8.x86_64
$ stap -V
Systemtap translator/driver (version 4.4/0.180, rpm 4.4-1.202006221421.el8)
Copyright (C) 2005-2020 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
tested kernel versions: 2.6.32 ... 5.7.0
enabled features: AVAHI BOOST_STRING_REF DYNINST BPF JAVA PYTHON3 LIBRPM
LIBSQLITE3 LIBVIRT LIBXML2 NLS NSS READLINE MONITOR_LIBS
$ stap -p4 -e 'probe syscall.clock_adjtime {printf("%s\n", tx_uaddr_str)}'
/tmp/stapjqCFmW/stap_bf428e306108d6ed4ee7e688fdb3a93d_67608_src.c: In function
‘function___global__struct_compat_timex_u__overload_0’:
/tmp/stapjqCFmW/stap_bf428e306108d6ed4ee7e688fdb3a93d_67608_src.c:4195:22:
error: storage size of ‘ts’ isn’t known
  struct compat_timex ts;
                      ^~
/tmp/stapjqCFmW/stap_bf428e306108d6ed4ee7e688fdb3a93d_67608_src.c:4203:14:
error: invalid application of ‘sizeof’ to incomplete type ‘struct old_timex32’
       sizeof(struct compat_timex)) == 0)
              ^~~~~~
make[1]: *** [scripts/Makefile.build:315:
/tmp/stapjqCFmW/stap_bf428e306108d6ed4ee7e688fdb3a93d_67608_src.o] Error 1
make: *** [Makefile:1545: _module_/tmp/stapjqCFmW] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed.  [man error::pass4]

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


More information about the Systemtap mailing list