Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Test run by root on Mon Aug 6 16:19:55 2018
- Native configuration is x86_64-pc-linux-gnu
- === systemtap tests ===
- Schedule of variations:
- unix
- Running target unix
- Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
- Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
- Using /home/agentzh/git/systemtap/testsuite/config/unix.exp as tool-and-target-specific interface file.
- Running /home/agentzh/git/systemtap/testsuite/systemtap.unprivileged/unprivileged_myproc.exp ...
- Executing on host: gcc /home/agentzh/git/systemtap/testsuite/systemtap.unprivileged/libloop.c -isystem/home/agentzh/git/systemtap/testsuite -isystem/opt/stap/include -g -O -Wall -Werror -I. -shared -fPIC -lm -o libloop.so (timeout = 300)
- spawn -ignore SIGHUP gcc /home/agentzh/git/systemtap/testsuite/systemtap.unprivileged/libloop.c -isystem/home/agentzh/git/systemtap/testsuite -isystem/opt/stap/include -g -O -Wall -Werror -I. -shared -fPIC -lm -o libloop.so
- PASS: unprivileged myproc library compile
- Executing on host: gcc /home/agentzh/git/systemtap/testsuite/systemtap.unprivileged/loop.c -g -O -lpthread -isystem/home/agentzh/git/systemtap/testsuite -isystem/opt/stap/include -Wl,-rpath,/home/agentzh/git/stap-build/testsuite/artifacts/systemtap.unprivileged/unprivileged_myproc -L/home/agentzh/git/stap-build/testsuite/artifacts/systemtap.unprivileged/unprivileged_myproc -lloop -lm -o loop (timeout = 300)
- spawn -ignore SIGHUP gcc /home/agentzh/git/systemtap/testsuite/systemtap.unprivileged/loop.c -g -O -lpthread -isystem/home/agentzh/git/systemtap/testsuite -isystem/opt/stap/include -Wl,-rpath,/home/agentzh/git/stap-build/testsuite/artifacts/systemtap.unprivileged/unprivileged_myproc -L/home/agentzh/git/stap-build/testsuite/artifacts/systemtap.unprivileged/unprivileged_myproc -lloop -lm -o loop
- PASS: unprivileged myproc exe compile
- addr_of_bar: 0x0000000000400777
- addr_of_libloopfunc: 0x000000000000065a
- eval exec stap --dump-probe-types | grep ^process
- process.begin
- process.end
- process.function(number)
- process.function(number).call
- process.function(number).exported
- process.function(number).return
- process.function(string)
- process.function(string).call
- process.function(string).callee(string)
- process.function(string).callee(string).call
- process.function(string).callee(string).return
- process.function(string).callees
- process.function(string).callees(number)
- process.function(string).exported
- process.function(string).inline
- process.function(string).label(string)
- process.function(string).return
- process.library(string).function(number)
- process.library(string).function(number).call
- process.library(string).function(number).exported
- process.library(string).function(number).return
- process.library(string).function(string)
- process.library(string).function(string).call
- process.library(string).function(string).callee(string)
- process.library(string).function(string).callee(string).call
- process.library(string).function(string).callee(string).return
- process.library(string).function(string).callees
- process.library(string).function(string).callees(number)
- process.library(string).function(string).exported
- process.library(string).function(string).inline
- process.library(string).function(string).label(string)
- process.library(string).function(string).return
- process.library(string).mark(string)
- process.library(string).plt
- process.library(string).plt.return
- process.library(string).plt(string)
- process.library(string).plt(string).return
- process.library(string).provider(string).mark(string)
- process.library(string).statement(number)
- process.library(string).statement(number).nearest
- process.library(string).statement(string)
- process.library(string).statement(string).nearest
- process.mark(string)
- process.plt
- process.plt.return
- process.plt(string)
- process.plt(string).return
- process.provider(string).mark(string)
- process.statement(number)
- process.statement(number).nearest
- process.statement(string)
- process.statement(string).nearest
- process.syscall
- process.syscall.return
- process.thread.begin
- process.thread.end
- process(number).begin
- process(number).end
- process(number).function(number)
- process(number).function(number).call
- process(number).function(number).exported
- process(number).function(number).return
- process(number).function(string)
- process(number).function(string).call
- process(number).function(string).callee(string)
- process(number).function(string).callee(string).call
- process(number).function(string).callee(string).return
- process(number).function(string).callees
- process(number).function(string).callees(number)
- process(number).function(string).exported
- process(number).function(string).inline
- process(number).function(string).label(string)
- process(number).function(string).return
- process(number).insn
- process(number).insn.block
- process(number).mark(string)
- process(number).plt
- process(number).plt.return
- process(number).plt(string)
- process(number).plt(string).return
- process(number).provider(string).mark(string)
- process(number).statement(number)
- process(number).statement(number).absolute
- process(number).statement(number).absolute.return
- process(number).statement(number).nearest
- process(number).statement(string)
- process(number).statement(string).nearest
- process(number).syscall
- process(number).syscall.return
- process(number).thread.begin
- process(number).thread.end
- process(string).begin
- process(string).end
- process(string).function(number)
- process(string).function(number).call
- process(string).function(number).exported
- process(string).function(number).return
- process(string).function(string)
- process(string).function(string).call
- process(string).function(string).callee(string)
- process(string).function(string).callee(string).call
- process(string).function(string).callee(string).return
- process(string).function(string).callees
- process(string).function(string).callees(number)
- process(string).function(string).exported
- process(string).function(string).inline
- process(string).function(string).label(string)
- process(string).function(string).return
- process(string).insn
- process(string).insn.block
- process(string).library(string).function(number)
- process(string).library(string).function(number).call
- process(string).library(string).function(number).exported
- process(string).library(string).function(number).return
- process(string).library(string).function(string)
- process(string).library(string).function(string).call
- process(string).library(string).function(string).callee(string)
- process(string).library(string).function(string).callee(string).call
- process(string).library(string).function(string).callee(string).return
- process(string).library(string).function(string).callees
- process(string).library(string).function(string).callees(number)
- process(string).library(string).function(string).exported
- process(string).library(string).function(string).inline
- process(string).library(string).function(string).label(string)
- process(string).library(string).function(string).return
- process(string).library(string).mark(string)
- process(string).library(string).plt
- process(string).library(string).plt.return
- process(string).library(string).plt(string)
- process(string).library(string).plt(string).return
- process(string).library(string).provider(string).mark(string)
- process(string).library(string).statement(number)
- process(string).library(string).statement(number).nearest
- process(string).library(string).statement(string)
- process(string).library(string).statement(string).nearest
- process(string).mark(string)
- process(string).plt
- process(string).plt.return
- process(string).plt(string)
- process(string).plt(string).return
- process(string).provider(string).mark(string)
- process(string).statement(number)
- process(string).statement(number).nearest
- process(string).statement(string)
- process(string).statement(string).nearest
- process(string).syscall
- process(string).syscall.return
- process(string).thread.begin
- process(string).thread.end
- PASS: unprivileged myproc: Obtain list of supported probe types
- our ./loop pid is 34242
- eval exec /opt/stap/bin/stap --unprivileged -e {probe process.begin { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --unprivileged process.begin
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --privilege=stapusr -e {probe process.end { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --privilege=stapusr process.end
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --unprivileged -e {probe process.function("bar") { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --unprivileged process.function(string)
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --privilege=stapusr -e {probe process.function(0x0000000000400777) { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --privilege=stapusr process.function(number)
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --unprivileged -e {probe process.function(0x0000000000400777).call { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --unprivileged process.function(number).call
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --privilege=stapusr -e {probe process.function(0x0000000000400777).inline { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: while resolving probe point: identifier 'process' at <input>:1:7
- source: probe process.function(0x0000000000400777).inline { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }
- ^
- semantic error: invalid suffix for probe: identifier 'inline' at :1:44
- source: probe process.function(0x0000000000400777).inline { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }
- ^
- Pass 2: analysis failed. [man error::pass2]
- KFAIL: unprivileged myproc: --privilege=stapusr process.function(number).inline (PRMS: GCC)
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --unprivileged -e {probe process.function(0x0000000000400777).return { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --unprivileged process.function(number).return
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --privilege=stapusr -e {probe process.function(0x0000000000400777).exported { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --privilege=stapusr process.function(number).exported
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --unprivileged -e {probe process.function("bar").call { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --unprivileged process.function(string).call
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --privilege=stapusr -e {probe process.function("ibar").inline { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --privilege=stapusr process.function(string).inline
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --unprivileged -e {probe process.function("bar").label("a") { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --unprivileged process.function(string).label(string)
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --privilege=stapusr -e {probe process.function("bar").return { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --privilege=stapusr process.function(string).return
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --unprivileged -e {probe process.function("bar").exported { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --unprivileged process.function(string).exported
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --privilege=stapusr -e {probe process.function("main").callee("tbar") { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'symname' at /opt/stap/share/systemtap/tapset/linux/context-symbols.stp:227:10
- source: function symname:string (addr: long) %{ /* pure */ /* pragma:symbols */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 114.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --privilege=stapusr process.function(string).callee(string)
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --unprivileged -e {probe process.function("main").callee("tbar").call { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'symname' at /opt/stap/share/systemtap/tapset/linux/context-symbols.stp:227:10
- source: function symname:string (addr: long) %{ /* pure */ /* pragma:symbols */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 114.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --unprivileged process.function(string).callee(string).call
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --privilege=stapusr -e {probe process.function("main").callee("tbar").return { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'symname' at /opt/stap/share/systemtap/tapset/linux/context-symbols.stp:227:10
- source: function symname:string (addr: long) %{ /* pure */ /* pragma:symbols */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 114.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --privilege=stapusr process.function(string).callee(string).return
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --unprivileged -e {probe process.function("main").callees { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'symname' at /opt/stap/share/systemtap/tapset/linux/context-symbols.stp:227:10
- source: function symname:string (addr: long) %{ /* pure */ /* pragma:symbols */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 130.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --unprivileged process.function(string).callees
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --privilege=stapusr -e {probe process.function("main").callees(1) { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'symname' at /opt/stap/share/systemtap/tapset/linux/context-symbols.stp:227:10
- source: function symname:string (addr: long) %{ /* pure */ /* pragma:symbols */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 130.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --privilege=stapusr process.function(string).callees(number)
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --unprivileged -e {probe process.plt { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --unprivileged process.plt
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --privilege=stapusr -e {probe process.plt.return { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --privilege=stapusr process.plt.return
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --unprivileged -e {probe process.plt("*") { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --unprivileged process.plt(string)
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --privilege=stapusr -e {probe process.plt("*").return { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --privilege=stapusr process.plt(string).return
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --unprivileged -e {probe process.library("libloop.so").function(0x000000000000065a) { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --unprivileged process.library(string).function(number)
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --privilege=stapusr -e {probe process.library("libloop.so").function(0x000000000000065a).call { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: function may not be used when --privilege=stapusr is specified: identifier 'kernel_string' at /opt/stap/share/systemtap/tapset/linux/conversions.stp:18:10
- source: function kernel_string:string (addr:long) %{ /* pure */
- ^
- Pass 2: analysis failed. [man error::pass2]
- Number of similar error messages suppressed: 37.
- Rerun with -v to see them.
- FAIL: unprivileged myproc: --privilege=stapusr process.library(string).function(number).call
- as_root true
- OUT
- RC 0
- eval exec /opt/stap/bin/stap --unprivileged -e {probe process.library("libloop.so").function(0x000000000000065a).inline { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }} -c "./loop 1"
- rc == 1
- semantic error: while resolving probe point: identifier 'process' at <input>:1:7
- source: probe process.library("libloop.so").function(0x000000000000065a).inline { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }
- ^
- semantic error: invalid suffix for probe: identifier 'inline' at :1:66
- source: probe process.library("libloop.so").function(0x000000000000065a).inline { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }
- ^
- Pass 2: analysis failed. [man error::pass2]
- KFAIL: unprivileged myproc: --unprivileged process.library(string).function(number).inline (PRMS: GCC)
- as_root true
- OUT
- RC 0
- got a INT signal, interrupted by user
- === systemtap Summary ===
- # of expected passes 3
- # of unexpected failures 23
- # of known failures 2
- runtest completed at Mon Aug 6 16:20:54 2018
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement