From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118654 invoked by alias); 26 Jul 2018 15:24:42 -0000 Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org Received: (qmail 118563 invoked by uid 89); 26 Jul 2018 15:24:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,HTML_MESSAGE,KAM_INFOUSMEBIZ,KAM_LOTSOFHASH,RCVD_IN_DNSWL_NONE,TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy=Anton, anton, U*dsmith, sk:dsmith@ X-HELO: mail-lj1-f195.google.com Received: from mail-lj1-f195.google.com (HELO mail-lj1-f195.google.com) (209.85.208.195) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 26 Jul 2018 15:24:21 +0000 Received: by mail-lj1-f195.google.com with SMTP id q5-v6so1840406ljh.12 for ; Thu, 26 Jul 2018 08:24:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fotofor.biz; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zqJ80eX1jnph+y0QSZWi2M0L8xrNAXhFk2kpA0yZLdI=; b=XzOl0Qib1HJQCREgtegabbQw3fj/KjE7vWTlSpWHWVsgQYZEz3JPYf/7YTa45EqL2J LiFQPJHnyvNu3oi8I+LS5NVAn+kmUWM+cOx7zWJGHApdyzqdZ56LKXGtovuyenxp8pY1 RQ2FnlNhQ8Jn5eHI7UiQLBvKG5x/BiPE+zF3s= MIME-Version: 1.0 Received: by 2002:a19:dd8:0:0:0:0:0 with HTTP; Thu, 26 Jul 2018 08:24:17 -0700 (PDT) In-Reply-To: <87muuh65mm.fsf@redhat.com> References: <87y3e26ngs.fsf@redhat.com> <87muuh65mm.fsf@redhat.com> From: Anton Kiryushkin Date: Thu, 26 Jul 2018 15:24:00 -0000 Message-ID: Subject: Re: freezes stap To: Lukas Berk Cc: David Smith , systemtap Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2018-q3/txt/msg00039.txt.bz2 Hello and thank you for the previous answers. I solved the previous problem. However, I've found a new one. I installed the kernel 4.17 and suitable debug and devel packages and received a problem with compilation of: # stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}' Pass 1: parsed user script and 469 library scripts using 98456virt/51040res/5404shr/46100data kb, in 140usr/40sys/169real ms. Pass 2: analyzed script: 1 probe, 1 function, 7 embeds, 0 globals using 307416virt/261824res/7256shr/255060data kb, in 2910usr/800sys/3637real ms. Pass 3: translated to C into "/tmp/stapu19tst/stap_b7220a30545666c9038abc3e45f6aff6_2570_src.c" using 307416virt/261952res/7384shr/255060data kb, in 10usr/30sys/34real ms. In file included from /usr/share/systemtap/runtime/transport/transport.c:65:0, from /usr/share/systemtap/runtime/linux/print.c:17, from /usr/share/systemtap/runtime/print.c:17, from /usr/share/systemtap/runtime/runtime_context.h:22, from /tmp/stapu19tst/stap_b7220a30545666c9038abc3e45f6aff6_2570_src.c:121: /usr/share/systemtap/runtime/transport/relay_v2.c: In function =E2=80=98__stp_relay_timer_init=E2=80=99: /usr/share/systemtap/runtime/transport/relay_v2.c:154:2: error: implicit declaration of function =E2=80=98init_timer=E2=80=99 [-Werror=3Dimplicit-fu= nction-declaration] init_timer(&_stp_relay_data.timer); ^ /usr/share/systemtap/runtime/transport/relay_v2.c:156:33: error: assignment from incompatible pointer type [-Werror] _stp_relay_data.timer.function =3D __stp_relay_wakeup_timer; ^ /usr/share/systemtap/runtime/transport/relay_v2.c:157:23: error: =E2=80=98s= truct timer_list=E2=80=99 has no member named =E2=80=98data=E2=80=99 _stp_relay_data.timer.data =3D 0; ^ 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/stapu19tst/stap_b7220a30545666c9038abc3e45f6aff6_2570_src.c:121: /usr/share/systemtap/runtime/transport/transport.c: In function =E2=80=98_stp_attach=E2=80=99: /usr/share/systemtap/runtime/transport/transport.c:328:31: error: assignment from incompatible pointer type [-Werror] _stp_ctl_work_timer.function =3D _stp_ctl_work_callback; ^ /usr/share/systemtap/runtime/transport/transport.c:329:21: error: =E2=80=98= struct timer_list=E2=80=99 has no member named =E2=80=98data=E2=80=99 _stp_ctl_work_timer.data=3D 0; ^ cc1: all warnings being treated as errors /usr/src/linux-4.17.1-2.3/scripts/Makefile.build:313: recipe for target '/tmp/stapu19tst/stap_b7220a30545666c9038abc3e45f6aff6_2570_src.o' failed make[3]: *** [/tmp/stapu19tst/stap_b7220a30545666c9038abc3e45f6aff6_2570_src.o] Error 1 /usr/src/linux-4.17.1-2.3/Makefile:1585: recipe for target '_module_/tmp/stapu19tst' failed make[2]: *** [_module_/tmp/stapu19tst] Error 2 Makefile:146: recipe for target 'sub-make' failed make[1]: *** [sub-make] Error 2 Makefile:24: recipe for target '__sub-make' failed make: *** [__sub-make] Error 2 WARNING: kbuild exited with status: 2 Pass 4: compiled C into "stap_b7220a30545666c9038abc3e45f6aff6_2570.ko" in 9540usr/2080sys/11510real ms. Pass 4: compilation failed. [man error::pass4] I have a valid version of packages: # rpm -qa | grep kernel nfs-kernel-server-1.3.0-34.8.3.x86_64 kernel-default-devel-4.17.1-2.3.x86_64 kernel-default-debuginfo-4.17.1-2.3.x86_64 kernel-devel-4.17.1-2.3.noarch kernel-default-4.17.1-2.3.x86_64 kernel-macros-4.17.1-2.3.noarch kernel-firmware-20170906-179.1.noarch kernel-default-devel-debuginfo-4.17.1-2.3.x86_64 # rpm -qa | grep gcc gcc48-4.8.5-31.14.1.x86_64 # rpm -qa | grep glibc linux-glibc-devel-4.4-14.10.noarch glibc-2.22-62.13.2.x86_64 glibc-locale-2.22-62.13.2.x86_64 glibc-i18ndata-2.22-62.13.2.noarch glibc-devel-2.22-62.13.2.x86_64 But maybe someone could help me. 2018-07-23 21:48 GMT+01:00 Lukas Berk : > Hey David, > > David Smith writes: > [...] > > Basically, each probe type has its own rules. Plus the probe types > > don't really know about each other. Doing what you suggest might be > > doable, but tricky. > > Right, that makes sense, but in the base case (reported by Anton), it > might still be reasonable first step to exit out if we note that the > number of registration errors equals the number of targeted probe > points. > > Cheers, > Lukas > --=20 Best regards, Anton Kiryushkin