From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22281 invoked by alias); 30 Mar 2017 05:40:33 -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 22269 invoked by uid 89); 30 Mar 2017 05:40:32 -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=tcp X-HELO: mail-wr0-f170.google.com Received: from mail-wr0-f170.google.com (HELO mail-wr0-f170.google.com) (209.85.128.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 30 Mar 2017 05:40:31 +0000 Received: by mail-wr0-f170.google.com with SMTP id k6so37932506wre.2 for ; Wed, 29 Mar 2017 22:40:31 -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=yYK9dLGxuVHRXjFhZvWtuzY0yAeWK82gFk8yX3GLHps=; b=YVsx/oRYWE+8+wwTMVm+a8k29h1RO62loTLtsu8e3zqDOk81Uf08osXiPJ9TekihoO 4Sej5J7eZ+P1xzrHumi6SWL3CueA2a7T7Ymk8tpWcO/qSf8GEeRaBanNNuvrXQNsxSnL tja/xmbfTdTCDMSWe8FYhPrL5dA1JbpN/qmoMJVT52WewkZS1eFB1YqPCeSO5nnAmUJg 17LccbF44xF/J40hLDT/Ye3fuoT8qAGZaDpCRTIubJ2dDsb4rOEsdlxRkvrMJ6IZEwjN MLAkJDhWoft6v38G1bzBJ1lzRJh40pU8rg3wTKwtIG6F6rF4X7rqeK8XBNbP9siEo7vn LNRw== X-Gm-Message-State: AFeK/H1naARzO/YZQY1ksb15rKAYXaKRfSU95HPS6OFah89UyB6cwvIBEMDTPpV3IestjPbf7nXP7qmi48gtAQ== X-Received: by 10.223.175.207 with SMTP id y15mr3403561wrd.63.1490852422849; Wed, 29 Mar 2017 22:40:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.184.29 with HTTP; Wed, 29 Mar 2017 22:40:02 -0700 (PDT) In-Reply-To: References: From: Arkady Date: Thu, 30 Mar 2017 05:40:00 -0000 Message-ID: Subject: Re: Is it ok to insert a module multiple times with staprun? To: Shiyao Ma Cc: systemtap@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2017-q1/txt/msg00176.txt.bz2 Linux kernel krpobes farmework supports multiple probes for the same function. On Thu, Mar 30, 2017 at 7:41 AM, Shiyao Ma wrote: > Hi, > In the staprun manpage, I saw this: > > > -R Rename the module to a unique name before inserting it. > > So looks like it's safe to insert it multiple times as long as the -R > gives a different name. > > > My application scenario is to log information on different tcp > connections, and separately output them to different files. > The invocation is like this: > # first insertion > sudo staprun /path/to/module -o /path/to/tcp-2003 filterport=2003 -R tcp-2003 > # second insertion > sudo staprun /path/to/module -o /path/to/tcp-2004 filterport=2004 -R tcp-2004 > > Does the above approach look natural? > > Regards.