From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 112149 invoked by alias); 2 May 2016 15:40:34 -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 112039 invoked by uid 89); 2 May 2016 15:40:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=HX-Envelope-From:sk:contact, instantly, Frank, easier! X-HELO: mail-qk0-f194.google.com Received: from mail-qk0-f194.google.com (HELO mail-qk0-f194.google.com) (209.85.220.194) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 02 May 2016 15:40:12 +0000 Received: by mail-qk0-f194.google.com with SMTP id l68so8796932qkf.3 for ; Mon, 02 May 2016 08:40:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=uSK9/nrGBR93j31HfuEsgrTGDAyLKwSP6r/yFkOUdEY=; b=LCzxlTkkAXL716pax/XJmRrzcAO3kDbHo7Sd5t5LOycRdXKV+DFqcvfPHNGgt7aysF 8TXgBX6KUuItl7VrA3KgG1pubWawrCAouPBGnoq398TVWv6icF2egfPo3r/cZ10i7BDv kPGhZuFZmQHpdxG3dHhZCdLyBZUqM3iMZjGHxMTWRFLh4vs602HGKReBEXR4XqO49UEZ c/cyvrZvxTVRNP6KHDZ5JMEc5OLXk65sMxfdAE5tKe93qqoasonGttBi10ikvqj6tnL1 PsPCSKNUq/fFc+3hGn1Pkv1WIb7aPMEHthZM08jt6ngbbPzKVu/jRKDQkrli6D+qaL+I tCzw== X-Gm-Message-State: AOPr4FVXfu7xoIKWONGT0F6/bDcrC0DZkL16Sx1zuWIkr16AipeZKGDVBxQZwGh0No2Vu6DVuPd7CvDgjnU7HQ== MIME-Version: 1.0 X-Received: by 10.159.39.98 with SMTP id a89mr20012138uaa.22.1462202489984; Mon, 02 May 2016 08:21:29 -0700 (PDT) Received: by 10.159.34.85 with HTTP; Mon, 2 May 2016 08:21:29 -0700 (PDT) In-Reply-To: References: <20160316140724.GD3854@redhat.com> <20160317124917.GC29879@redhat.com> Date: Mon, 02 May 2016 15:40:00 -0000 Message-ID: Subject: Re: Using systemtap on MPI applications From: "Olausson, Bjoern" To: "Frank Ch. Eigler" , systemtap@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-q2/txt/msg00064.txt.bz2 So using SystemTap with a filter on the binary works great when running on multiple nodes - thanks for that Frank :-) As long as I am using POSIX IO everything works as expected. Now when I use MPIIO of course the vfs.read.return and write function do no longer work. Does anyone have a suggestion on how to trace MPIIO calls? Currently I am probing like this: probe vfs.read.return { if (execname() == binfilter) { time_stamp = timestamp() latency = gettimeofday_us() - @entry(gettimeofday_us()) offset = $file->f_pos filename = __file_filename(file) bytes = $return printf("%s;%s;%d;%d;%d;%d;%d;%d;%d\n", filename, name, time_stamp, latency, offset, bytes_to_read, bytes_read, bytes, pid()) } } Greetings, Bjoern On Thu, Mar 17, 2016 at 1:51 PM, Olausson, Bjoern wrote: > On Thu, Mar 17, 2016 at 1:49 PM, Frank Ch. Eigler wrote: >> Hi - >> >>> Excuse that stupid question, but I thought using "-c CMD" will always >>> instantly execute the CMD, so that would not play will with MPI >>> executed applications :) >> >> Not exactly - "stap -c CMD" should run CMD at each --remote site. >> The extent to which an mpi CMD would run correctly though (and find >> its MPI peers etc.) is unknown though. >> >>> But is there a way to pass a string to stap on which I can apply e.g. >>> your above filter instead of hardcoding the exec name I want to filter >>> on? >> >> Certainly; command line options or global variables are two of the ways. >> The latter performs better because it permits caching. >> >> stap -e 'probe something { if (execname() == @1) { ...} }' bar >> stap -e 'global foo; probe something { if (execname() == foo) { ...} }' -Gfoo=bar >> >> - FChE > > Thanks a lot, that makes things way easier! > > Cheers, > Bjoern