From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114712 invoked by alias); 15 Jun 2016 01:50: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 114469 invoked by uid 89); 15 Jun 2016 01:50:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*i:sk:TrB3M4G, H*i:sk:vuDpYhw, H*f:sk:vuDpYhw, H*f:CAE40pdftVg X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 15 Jun 2016 01:50:30 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8ACE57F6A5; Wed, 15 Jun 2016 01:50:29 +0000 (UTC) Received: from fche.csb (vpn-61-115.rdu2.redhat.com [10.10.61.115]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u5F1oTbH028946; Tue, 14 Jun 2016 21:50:29 -0400 Received: by fche.csb (Postfix, from userid 2569) id 1C88D58CD2; Tue, 14 Jun 2016 21:50:32 -0400 (EDT) To: Brendan Gregg Cc: Richard Henderson , systemtap@sourceware.org, iovisor-dev@lists.iovisor.org, Linux Kernel Mailing List Subject: Re: BPF runtime for systemtap References: <72b69807-4cd7-afab-0acd-51af8c76469e@redhat.com> From: fche@redhat.com (Frank Ch. Eigler) Date: Wed, 15 Jun 2016 01:50:00 -0000 In-Reply-To: (Brendan Gregg's message of "Tue, 14 Jun 2016 16:53:58 -0700") Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2016-q2/txt/msg00231.txt.bz2 brendan.d.gregg wrote: > [...] > Great! Is there a hello world example in there somewhere? I found this: > [...] Yup. Here is a smoke test. (A great many other things are not yet working.) % sudo ./stap -v --runtime=bpf -e 'global foo probe kprobe.function("vfs_read"), kprobe.function("do_select") { foo++ } probe begin { printf("systemtap starting probe\n") } probe end { printf("systemtap ending probe\n"); printf("foo = %d\n", foo) }' Pass 1: parsed user script and 35 library scripts using 198460virt/15804res/6416shr/9208data kb, in 0usr/0sys/71real ms. Pass 2: analyzed script: 4 probes, 0 functions, 0 embeds, 1 global using 198460virt/15804res/6416shr/9208data kb, in 0usr/0sys/0real ms. Pass 4: compiled BPF into "stap_32349.bo" in 0usr/0sys/0real ms. Pass 5: starting run. systemtap starting probe ^Csystemtap ending probe foo = 108812 Pass 5: run completed in 0usr/10sys/2525real ms.