public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "Mao, Bibo" <bibo.mao@intel.com>
To: "Martin Hunt" <hunt@redhat.com>,
	"Keshavamurthy, Anil S" <anil.s.keshavamurthy@intel.com>
Cc: "William Cohen" <wcohen@redhat.com>, <systemtap@sources.redhat.com>
Subject: RE: Recent test results
Date: Mon, 14 Nov 2005 03:42:00 -0000	[thread overview]
Message-ID: <9FBCE015AF479F46B3B410499F3AE05B0897A9@pdsmsx405> (raw)

[-- Attachment #1: Type: text/plain, Size: 1836 bytes --]

Yes, after add close and wait sentence in stap_run.exp. There will be no timeout information. But after "runtest" command, if we use lsmod command, there will be some module that is not uninstalled named stapxxx.

Maybe it is because of spawn process is closed before it unload stap module. We can print some information when rmmod in file librelay.c. And then expect this information in stap_run.exp script, and at last after unload module, we can close this process.

By the way stap_fun.exp function is only called by runtest script in systemtap.base directory, and in systemtap.samples directory it is not. Maybe we add wait sentence in each runtest exp script in systemtap.samples directory.

The attachment is patch for librelay.c and stap_run.exp.

>-----Original Message-----
>From: systemtap-owner@sourceware.org [mailto:systemtap-owner@sourceware.org]
>On Behalf Of Martin Hunt
>Sent: 2005年11月12日 4:53
>To: Keshavamurthy, Anil S
>Cc: William Cohen; systemtap@sources.redhat.com
>Subject: RE: Recent test results
>
>On Fri, 2005-11-11 at 12:49 -0800, Keshavamurthy, Anil S wrote:
>> Martin,
>> 	Can you mail your fix so I can verify the same on my Ia64 box.
>>
>> -thanks,
>> Anil
>
>Index: testsuite/lib/stap_run.exp
>===================================================================
>RCS file: /cvs/systemtap/tests/testsuite/lib/stap_run.exp,v
>retrieving revision 1.5
>retrieving revision 1.6
>diff -u -r1.5 -r1.6
>--- testsuite/lib/stap_run.exp  2 Sep 2005 22:34:12 -0000       1.5
>+++ testsuite/lib/stap_run.exp  11 Nov 2005 20:37:47 -0000      1.6
>@@ -51,6 +51,8 @@
>        timeout { fail "$test startup (timeout)" }
>        eof { fail "$test startup (eof)" }
>     }
>+  close
>+  wait
> }
>
> proc no_load {} {
>
>--------
>
>It's checked into CVS.
>
>Martin
>


[-- Attachment #2: patch_stap_run --]
[-- Type: application/octet-stream, Size: 706 bytes --]

--- orig/lib/stap_run.exp	2005-09-03 06:34:12.000000000 +0800
+++ runtest/lib/stap_run.exp	2005-11-14 03:21:55.000000000 +0800
@@ -42,6 +42,16 @@
 	    expect {
 		-re  $output {
 		    pass "$test shutdown and output"
+		
+		    set output "^systemtap unload module successfully\n$"
+		    expect {
+			-re $output{
+				pass "$test unload module"
+				close
+			}
+			timeout {fail "$test unload module (timeout)"}
+			eof { fail "$test unload module (eof)"}	
+		    }			
 		}
 		timeout { fail "$test shutdown (timeout)" }
 		eof { fail "$test shutdown (eof)" }
@@ -51,6 +61,7 @@
 	timeout { fail "$test startup (timeout)" }
 	eof { fail "$test startup (eof)" }
     }
+    wait
 }
 
 proc no_load {} {

[-- Attachment #3: patch_librelay --]
[-- Type: application/octet-stream, Size: 281 bytes --]

--- systemtap-20051112.orig/runtime/stpd/librelay.c	2005-10-20 03:35:35.000000000 +0800
+++ systemtap-20051112/runtime/stpd/librelay.c	2005-11-14 03:03:31.000000000 +0800
@@ -631,6 +631,7 @@
 			exit(1);
 		}
 	}
+	printf("systemtap unload module successfully\n");
 	exit(0);
 }
 

             reply	other threads:[~2005-11-14  3:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-14  3:42 Mao, Bibo [this message]
2005-11-14 21:48 ` dejagnu spawn & wait Frank Ch. Eigler
2005-11-14 21:52   ` Roland McGrath
  -- strict thread matches above, loose matches on Subject: below --
2005-11-17 18:04 Recent test results Keshavamurthy, Anil S
2005-11-11 20:50 Keshavamurthy, Anil S
2005-11-11 20:51 ` William Cohen
2005-11-11 21:14   ` Keshavamurthy Anil S
2005-11-11 20:52 ` Martin Hunt
2005-11-11 19:36 William Cohen
2005-11-11 20:38 ` Martin Hunt
2005-11-11 20:53   ` William Cohen
2005-11-11 21:23     ` Martin Hunt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9FBCE015AF479F46B3B410499F3AE05B0897A9@pdsmsx405 \
    --to=bibo.mao@intel.com \
    --cc=anil.s.keshavamurthy@intel.com \
    --cc=hunt@redhat.com \
    --cc=systemtap@sources.redhat.com \
    --cc=wcohen@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).