From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21083 invoked by alias); 16 Sep 2009 18:38:39 -0000 Received: (qmail 21064 invoked by uid 22791); 16 Sep 2009 18:38:37 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org Received: from e24smtp04.br.ibm.com (HELO e24smtp04.br.ibm.com) (32.104.18.25) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 Sep 2009 18:38:31 +0000 Received: from mailhub1.br.ibm.com (mailhub1.br.ibm.com [9.18.232.109]) by e24smtp04.br.ibm.com (8.14.3/8.13.1) with ESMTP id n8GIWqQn007014 for ; Wed, 16 Sep 2009 15:32:52 -0300 Received: from d24av04.br.ibm.com (d24av04.br.ibm.com [9.18.232.43]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n8GId65r1003714 for ; Wed, 16 Sep 2009 15:39:06 -0300 Received: from d24av04.br.ibm.com (loopback [127.0.0.1]) by d24av04.br.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id n8GIcRVr024450 for ; Wed, 16 Sep 2009 15:38:27 -0300 Received: from localhost.localdomain (devhv4e-phantom-lp3.austin.ibm.com [9.3.233.173]) by d24av04.br.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id n8GIcMJh024380; Wed, 16 Sep 2009 15:38:25 -0300 From: leitao@linux.vnet.ibm.com To: systemtap@sources.redhat.com Cc: dsmith@redhat.com, jistone@redhat.com Subject: [PATCH 2/3] A basic test to assure that networking tapset is building ok Date: Wed, 16 Sep 2009 18:38:00 -0000 Message-Id: <71cda4a443a24f87c8cffa26174bdab78d99047a.1253125522.git.root@devhv4e-phantom-lp3.austin.ibm.com> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes 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 X-SW-Source: 2009-q3/txt/msg00753.txt.bz2 This is a basic script to assure that the network devices tapset is building (-p4) properly. This script is basically a copy of another netdev example that is located on testsuite/systemtap.examples/network/netdev.stp --- testsuite/buildok/netdev.stp | 47 ++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) create mode 100644 testsuite/buildok/netdev.stp diff --git a/testsuite/buildok/netdev.stp b/testsuite/buildok/netdev.stp new file mode 100644 index 0000000..7c7f756 --- /dev/null +++ b/testsuite/buildok/netdev.stp @@ -0,0 +1,47 @@ +#! /usr/bin/env stap -wp4 + +probe netdev.get_stats{ + printf("%s", dev_name) +} + +probe netdev.register{ + printf("%s", dev_name) +} + +probe netdev.unregister{ + printf("%s", dev_name) +} + +probe netdev.ioctl{ + printf("%d %s", cmd, arg) +} + +probe netdev.set_promiscuity { + printf("%s %d %d %d", dev_name, enable, + disable, inc) +} + +probe netdev.change_rx_flag { + printf("%s %d", dev_name, flags) +} + +probe netdev.change_mtu { + printf("%s %d %d", dev_name, old_mtu, new_mtu) +} + +probe netdev.change_mac { + printf("%s %s %s", dev_name, old_mac, new_mac) +} + +probe netdev.transmit { + printf("%s %d %d %d", dev_name, protocol, + length, truesize) +} + +probe netdev.hard_transmit { + printf("%s %d", dev_name, protocol) +} + +probe netdev.receive { + printf("%s %d", dev_name, protocol) +} -- 1.6.0.2