From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30091 invoked by alias); 31 Mar 2017 03:51:48 -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 30035 invoked by uid 89); 31 Mar 2017 03:51:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,KAM_INFOUSMEBIZ,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.2 spammy=1-4, Hx-languages-length:1016, HX-Received:sk:e204mr9 X-HELO: mail-io0-f169.google.com Received: from mail-io0-f169.google.com (HELO mail-io0-f169.google.com) (209.85.223.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 31 Mar 2017 03:51:40 +0000 Received: by mail-io0-f169.google.com with SMTP id b140so32476012iof.1 for ; Thu, 30 Mar 2017 20:51:41 -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:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7zJsYN7fcRyP4vBLnh/e/f7sTB4MEu/jObHf+BnNcnE=; b=bceXlmdlFklGnYxeSuq1CuN3eWLiqdjdJAgayTgWNTCJY8rubsAAQt+ABV4YWFYbSY SSkPdn2X6rilJ3Vp6xI9ZNZF1mXktQ+D/AksEhGzL2Xt8yMMJ6jGMoPil77PW7o9RlJT XWSRSD4fPuSiqqu4zf3CCV0LDgAI2zvckQfvFQk1qZAH0W86Czyd9VETnLW/adh9Sr1y rH4J+Y0qYaohrDGIuSk7n+uzAf59Q3dEWklQsYDuuOGZR4ZTqrTuU4sL6m3eW23tLtWB +0Op3M5dfp65D/s7FlFBAMbyoW7EuaeUye9CNp5GA4T67RNsAaO43UqeBvbbhNFtVzEz Klgw== X-Gm-Message-State: AFeK/H3Rd6Wb0wGqHn9OttUhZu/Ggm/kZYP8PiLKbhAK/cVVvIEywepMLO6E2RQ3Mhz5mau5rXQ79evrbGvsIA== X-Received: by 10.107.30.213 with SMTP id e204mr957015ioe.203.1490932299937; Thu, 30 Mar 2017 20:51:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.144.134 with HTTP; Thu, 30 Mar 2017 20:51:39 -0700 (PDT) In-Reply-To: References: From: Shiyao Ma Date: Fri, 31 Mar 2017 03:51:00 -0000 Message-ID: Subject: Re: Is it ok to insert a module multiple times with staprun? To: David Smith Cc: systemtap@sourceware.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2017-q1/txt/msg00183.txt.bz2 Hi, > Really to help you further you are going to have to describe what you > are trying to do a bit further. My aim is to pass in some information (arguments) to the module at run time (so in pass-5 time, not pass-[1-4]). That rules out the first option. stap -e "foobar". Also, using the command line of staprun does not work here, due to the length limitation on shell command line. The second procfs option, on the other hand, sounds feasible. However, I have a minor concern here. I'd like the info passed to the module (via procfs) be read at the very beginning, *before any kernel.function" probe has been registered to the system. In other words, any kernel.function probe should only be activated after the procfs.read is done. The closest thing I can come up in my mind is to do something like: probe begin { read_the_procfs_file_and_wait() } That is, put the reading file stuff into the begin probe. Possible to achieve that? Regards.