From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37379 invoked by alias); 15 Jun 2017 11:04:07 -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 37318 invoked by uid 89); 15 Jun 2017 11:04:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wr0-f196.google.com Received: from mail-wr0-f196.google.com (HELO mail-wr0-f196.google.com) (209.85.128.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 15 Jun 2017 11:04:03 +0000 Received: by mail-wr0-f196.google.com with SMTP id z45so2824749wrb.2 for ; Thu, 15 Jun 2017 04:04:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=g3NGDuDqwNe0hp9YQQeijybvHuTCTBfEif8Lb9xEINQ=; b=tZAmipiPNZS73vlwam/DtMZlJe5p/jphG1s9GNhtn7VDYvYC0iKYPkebHsp7H7PJTy 2oXEf+VJmDtRSeExSIpDjFKQAyYXPwaKO9/zdEsopuKOwuRoM0OWbNWemuCIiBUfeqvo fTnB3OUQZDQIsy7Wp+PTYqA2misEg5KpSTH2wZsmJIUYCX3xrHSl/JSrgVcdtoESTeDs XHM12Ysg42z0+z9TLdT4A+DUGMMpuzaVGs6MweAl36ROvwczwFEnavtYAfoFiltcjtgW Y0jlVnjrVYUPfWzdBCqxwoJfBZQ0f9QGNDnsx0CoC6TvLm3Y6ZAZbx1OP5x8lAkn7nsO y9eg== X-Gm-Message-State: AKS2vOyfRKdIjtqGohsJYJcyA2l+hTfnI9T7MgEl0IqsHww5dFSzu+yB 60iAbFt/uf+chCXtPnPW+svNr6pKYg== X-Received: by 10.80.183.146 with SMTP id h18mr3168489ede.39.1497524646511; Thu, 15 Jun 2017 04:04:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.132.228 with HTTP; Thu, 15 Jun 2017 04:03:46 -0700 (PDT) In-Reply-To: References: From: Arkady Date: Thu, 15 Jun 2017 11:04:00 -0000 Message-ID: Subject: Re: No output from trace file after a few hours To: Daniel Doron Cc: systemtap@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2017-q2/txt/msg00112.txt.bz2 STAP simply quits in a couple of seconds sudo stap -F -o ./test.log -S 1,2 test.stp 94089 ps -ef | grep -v "grep" | grep 94089 On Thu, Jun 15, 2017 at 1:53 PM, Arkady wrote: > Interesting. I have reproduced the problem by running two tight bash > loops simultaneously > > sudo stap -F -o ./test.log -S 1,2 test.stp > while [ 1 ];do ls > /dev/null;done & > while [ 1 ];do echo -en "\033[0;0H";ls -l | grep "test.log";echo -en > "\033[0;0H";done; > > Linux centos6 2.6.32-642.el6.x86_64 #1 SMP Tue May 10 17:27:01 UTC > 2016 x86_64 x86_64 x86_64 GNU/Linux > > > > On Thu, Jun 15, 2017 at 11:59 AM, Daniel Doron > wrote: >> On that specific kernel about 8-10 hours. >> On my machine with latest kernel, been running for 24 hours. >> I need to check other distros. >> >> sudo stap -v -F -m mymodule test.stp >> >> On Thu, Jun 15, 2017 at 11:26 AM, Arkady wrote: >>> Do you do something like >>> >>> sudo stap -F -o ./test.log -S 1,2 test.stp ? >>> >>> On Thu, Jun 15, 2017 at 11:25 AM, Daniel Doron >>> wrote: >>>> On that specific kernel about 8-10 hours. >>>> On my machine with latest kernel, been running for 24 hours. >>>> I need to check other distros. >>>> >>>> On Jun 15, 2017 11:18, "Arkady" wrote: >>>>> >>>>> How long time it runs for you? >>>>> >>>>> On Thu, Jun 15, 2017 at 10:38 AM, Daniel Doron >>>>> wrote: >>>>> > Systemtap translator/driver (version 2.9/0.164, rpm 2.9-7.el6) >>>>> > Copyright (C) 2005-2015 Red Hat, Inc. and others >>>>> > This is free software; see the source for copying conditions. >>>>> > enabled features: AVAHI LIBRPM LIBSQLITE3 NLS NSS TR1_UNORDERED_MAP >>>>> > >>>>> > On Thu, Jun 15, 2017 at 10:37 AM, Daniel Doron >>>>> > wrote: >>>>> >> BTW kernel version: 2.6.32-431.el6.x86_64 >>>>> >> >>>>> >> On Thu, Jun 15, 2017 at 10:36 AM, Daniel Doron >>>>> >> wrote: >>>>> >>> if you mean that the kernel version does not get upgraded, then yes. >>>>> >>> >>>>> >>> On Thu, Jun 15, 2017 at 10:34 AM, Daniel Doron >>>>> >>> wrote: >>>>> >>>> Sorry, I do not know what you mean by that... >>>>> >>>> >>>>> >>>> On Thu, Jun 15, 2017 at 10:32 AM, Arkady >>>>> >>>> wrote: >>>>> >>>>> Do you have the kernel version pinned? >>>>> >>>>> >>>>> >>>>> On Thu, Jun 15, 2017 at 10:12 AM, Arkady >>>>> >>>>> wrote: >>>>> >>>>>> Please send the stap script >>>>> >>>>>> >>>>> >>>>>> On Thu, Jun 15, 2017 at 10:10 AM, Daniel Doron >>>>> >>>>>> wrote: >>>>> >>>>>>> Hi, >>>>> >>>>>>> >>>>> >>>>>>> I built my module to probe a few system calls and functions. >>>>> >>>>>>> Nothing >>>>> >>>>>>> fancy, no big work in it, just prints some data. Then I wrote a >>>>> >>>>>>> simple >>>>> >>>>>>> python script to read data directly off the >>>>> >>>>>>> /sys/kernel/debug/systemtap/mymodule/trace0 file (of course >>>>> >>>>>>> running as >>>>> >>>>>>> sudo) >>>>> >>>>>>> I run stap in Flight recorder mode. >>>>> >>>>>>> After a few hours (varies from 8 to 20) I stop getting any output >>>>> >>>>>>> from >>>>> >>>>>>> the module... >>>>> >>>>>>> Any idea how to check why that is? >>>>> >>>>>>> dmesg does not report anything unusual... >>>>> >>>>>>> >>>>> >>>>>>> Thanks. >>>>> >>>>>>> Daniel.