From 9d4241d37eb1bd29b9ea9ea72a6e52f31c3353f7 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Sun, 27 Apr 2014 18:20:26 -0400 Subject: [PATCH] unprivileged_myproc testsuite: mark .callees tests kfail for gcc < 4.7 This is a followup to commit 081e9217c8d0, this time on rhel6. --- testsuite/systemtap.unprivileged/loop.c | 6 ++++-- .../systemtap.unprivileged/unprivileged_myproc.exp | 14 +++++++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/testsuite/systemtap.unprivileged/loop.c b/testsuite/systemtap.unprivileged/loop.c index 42c8c8556..f82b591eb 100644 --- a/testsuite/systemtap.unprivileged/loop.c +++ b/testsuite/systemtap.unprivileged/loop.c @@ -19,8 +19,10 @@ inline int ibar (void) { return libloopfunc (); } -/* We need a threaded app. */ -inline int tbar (void) { +/* We need a threaded app. It should not be inline, + so a .callee("tbar") test will require the GNU_call_site* DWARF goo + to match, not just the presence of a mere DW_AT_inline=3 case. */ +int tbar (void) { void *x; int j = 0; STAP_PROBE(_test_, main_enter); diff --git a/testsuite/systemtap.unprivileged/unprivileged_myproc.exp b/testsuite/systemtap.unprivileged/unprivileged_myproc.exp index 97235a7ed..56f91fda7 100644 --- a/testsuite/systemtap.unprivileged/unprivileged_myproc.exp +++ b/testsuite/systemtap.unprivileged/unprivileged_myproc.exp @@ -1,5 +1,4 @@ set test "unprivileged myproc" - if {![installtest_p]} { untested $test; return } if {![uprobes_p]} { untested $test; return } @@ -320,6 +319,19 @@ proc test_probes { privilege } { { setup_kfail GCC *-*-* } + process(string).function(string).callee(string) - + process(string).function(string).callees - + process(string).function(string).callees(number) - + process.function(string).callee(string) - + process.function(string).callees - + process.function(string).callees(number) + { + global GCC_Version + verbose -log "gcc version $GCC_Version" + if {[strverscmp $GCC_Version 4.7] < 0} then { + setup_kfail GCC *-*-* + } + } process.function(number).return - process.function(string).return - process.library(string).function(number).return - -- 2.43.5