From b8da0ad19d9dfcf88c4cd6dcf7b8aa73fc5016d7 Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 30 Mar 2007 19:17:02 +0000 Subject: 2007-03-30 Frank Ch. Eigler PR 1570 * NEWS: Document probe handler language change re. inline functions. * stapprobes.5.in: Likewise. * tapsets.cxx: Many changes to simplify caches and implement new handling of inline functions, removed of stubs for future probes. * elaborate.cxx (derived_probe printsig_nested): New function. * elaborate.h: Declare it. * main.cxx (usage): Clarify "-r" meaning. (main): Tweak related "-p 4" message. 2007-03-30 Frank Ch. Eigler PR 1570. * memory.stp, scheduler.stp, signal.stp, LKET/signal.stp: Adapt to .inline -> .function change. 2007-03-30 Frank Ch. Eigler PR 1570 * */*.stp: Adapt to .inline -> .function change. * lib/stap_run.exp, stap_run2.exp, stap_run_binary.exp: Shorten pass/fail dejagnu log lines. * systemtap.syscall/sys.stp, test.tcl: Make slightly more compatible and failure more verbose. --- testsuite/systemtap.stress/all_kernel_functions.exp | 10 ++++------ testsuite/systemtap.stress/whitelist.exp | 1 - 2 files changed, 4 insertions(+), 7 deletions(-) (limited to 'testsuite/systemtap.stress') diff --git a/testsuite/systemtap.stress/all_kernel_functions.exp b/testsuite/systemtap.stress/all_kernel_functions.exp index f54f53e1..6dded726 100644 --- a/testsuite/systemtap.stress/all_kernel_functions.exp +++ b/testsuite/systemtap.stress/all_kernel_functions.exp @@ -17,7 +17,7 @@ proc genload {} { proc probe_ok {probepoint} { set cmd {exec stap -p2 -e} lappend cmd "probe $probepoint {}" - return ![catch $cmd] + return [expr ![catch $cmd]] } set systemtap_script { @@ -25,12 +25,10 @@ set systemtap_script { probe %s { stat[probefunc()] <<< 1 } - probe begin { - log("systemtap starting probe") - } + probe begin { log ("systemtap starting probe") } probe end { - log("systemtap ending probe") - foreach (func in stat) + log ("systemtap ending probe") + foreach (func in stat limit 5) # don't overflow expect buffer printf("%%d %%s\n", @count(stat[func]), func) } } diff --git a/testsuite/systemtap.stress/whitelist.exp b/testsuite/systemtap.stress/whitelist.exp index 75f0df8a..fda33a7c 100644 --- a/testsuite/systemtap.stress/whitelist.exp +++ b/testsuite/systemtap.stress/whitelist.exp @@ -223,7 +223,6 @@ proc init_probes_all {} { global init_probes_all_script catch {exec stap -p2 -e $init_probes_all_script > /tmp/whitelist_tmpfile} catch {exec grep "^kernel.function" /tmp/whitelist_tmpfile > $PROBES_ALL } - catch {exec grep "^kernel.inline" /tmp/whitelist_tmpfile >> $PROBES_ALL } catch {exec rm -f /tmp/whitelist_tmpfile} if {[get_linesize $PROBES_ALL] == 0} { return 1 -- cgit