Advertisement
Guest User

Untitled

a guest
Aug 6th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.19 KB | None | 0 0
  1. Test run by root on Mon Aug 6 16:19:55 2018
  2. Native configuration is x86_64-pc-linux-gnu
  3.  
  4. === systemtap tests ===
  5.  
  6. Schedule of variations:
  7. unix
  8.  
  9. Running target unix
  10. Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
  11. Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
  12. Using /home/agentzh/git/systemtap/testsuite/config/unix.exp as tool-and-target-specific interface file.
  13. Running /home/agentzh/git/systemtap/testsuite/systemtap.unprivileged/unprivileged_myproc.exp ...
  14. 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)
  15. 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
  16. PASS: unprivileged myproc library compile
  17. 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)
  18. 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
  19. PASS: unprivileged myproc exe compile
  20. addr_of_bar: 0x0000000000400777
  21. addr_of_libloopfunc: 0x000000000000065a
  22. eval exec stap --dump-probe-types | grep ^process
  23. process.begin
  24. process.end
  25. process.function(number)
  26. process.function(number).call
  27. process.function(number).exported
  28. process.function(number).return
  29. process.function(string)
  30. process.function(string).call
  31. process.function(string).callee(string)
  32. process.function(string).callee(string).call
  33. process.function(string).callee(string).return
  34. process.function(string).callees
  35. process.function(string).callees(number)
  36. process.function(string).exported
  37. process.function(string).inline
  38. process.function(string).label(string)
  39. process.function(string).return
  40. process.library(string).function(number)
  41. process.library(string).function(number).call
  42. process.library(string).function(number).exported
  43. process.library(string).function(number).return
  44. process.library(string).function(string)
  45. process.library(string).function(string).call
  46. process.library(string).function(string).callee(string)
  47. process.library(string).function(string).callee(string).call
  48. process.library(string).function(string).callee(string).return
  49. process.library(string).function(string).callees
  50. process.library(string).function(string).callees(number)
  51. process.library(string).function(string).exported
  52. process.library(string).function(string).inline
  53. process.library(string).function(string).label(string)
  54. process.library(string).function(string).return
  55. process.library(string).mark(string)
  56. process.library(string).plt
  57. process.library(string).plt.return
  58. process.library(string).plt(string)
  59. process.library(string).plt(string).return
  60. process.library(string).provider(string).mark(string)
  61. process.library(string).statement(number)
  62. process.library(string).statement(number).nearest
  63. process.library(string).statement(string)
  64. process.library(string).statement(string).nearest
  65. process.mark(string)
  66. process.plt
  67. process.plt.return
  68. process.plt(string)
  69. process.plt(string).return
  70. process.provider(string).mark(string)
  71. process.statement(number)
  72. process.statement(number).nearest
  73. process.statement(string)
  74. process.statement(string).nearest
  75. process.syscall
  76. process.syscall.return
  77. process.thread.begin
  78. process.thread.end
  79. process(number).begin
  80. process(number).end
  81. process(number).function(number)
  82. process(number).function(number).call
  83. process(number).function(number).exported
  84. process(number).function(number).return
  85. process(number).function(string)
  86. process(number).function(string).call
  87. process(number).function(string).callee(string)
  88. process(number).function(string).callee(string).call
  89. process(number).function(string).callee(string).return
  90. process(number).function(string).callees
  91. process(number).function(string).callees(number)
  92. process(number).function(string).exported
  93. process(number).function(string).inline
  94. process(number).function(string).label(string)
  95. process(number).function(string).return
  96. process(number).insn
  97. process(number).insn.block
  98. process(number).mark(string)
  99. process(number).plt
  100. process(number).plt.return
  101. process(number).plt(string)
  102. process(number).plt(string).return
  103. process(number).provider(string).mark(string)
  104. process(number).statement(number)
  105. process(number).statement(number).absolute
  106. process(number).statement(number).absolute.return
  107. process(number).statement(number).nearest
  108. process(number).statement(string)
  109. process(number).statement(string).nearest
  110. process(number).syscall
  111. process(number).syscall.return
  112. process(number).thread.begin
  113. process(number).thread.end
  114. process(string).begin
  115. process(string).end
  116. process(string).function(number)
  117. process(string).function(number).call
  118. process(string).function(number).exported
  119. process(string).function(number).return
  120. process(string).function(string)
  121. process(string).function(string).call
  122. process(string).function(string).callee(string)
  123. process(string).function(string).callee(string).call
  124. process(string).function(string).callee(string).return
  125. process(string).function(string).callees
  126. process(string).function(string).callees(number)
  127. process(string).function(string).exported
  128. process(string).function(string).inline
  129. process(string).function(string).label(string)
  130. process(string).function(string).return
  131. process(string).insn
  132. process(string).insn.block
  133. process(string).library(string).function(number)
  134. process(string).library(string).function(number).call
  135. process(string).library(string).function(number).exported
  136. process(string).library(string).function(number).return
  137. process(string).library(string).function(string)
  138. process(string).library(string).function(string).call
  139. process(string).library(string).function(string).callee(string)
  140. process(string).library(string).function(string).callee(string).call
  141. process(string).library(string).function(string).callee(string).return
  142. process(string).library(string).function(string).callees
  143. process(string).library(string).function(string).callees(number)
  144. process(string).library(string).function(string).exported
  145. process(string).library(string).function(string).inline
  146. process(string).library(string).function(string).label(string)
  147. process(string).library(string).function(string).return
  148. process(string).library(string).mark(string)
  149. process(string).library(string).plt
  150. process(string).library(string).plt.return
  151. process(string).library(string).plt(string)
  152. process(string).library(string).plt(string).return
  153. process(string).library(string).provider(string).mark(string)
  154. process(string).library(string).statement(number)
  155. process(string).library(string).statement(number).nearest
  156. process(string).library(string).statement(string)
  157. process(string).library(string).statement(string).nearest
  158. process(string).mark(string)
  159. process(string).plt
  160. process(string).plt.return
  161. process(string).plt(string)
  162. process(string).plt(string).return
  163. process(string).provider(string).mark(string)
  164. process(string).statement(number)
  165. process(string).statement(number).nearest
  166. process(string).statement(string)
  167. process(string).statement(string).nearest
  168. process(string).syscall
  169. process(string).syscall.return
  170. process(string).thread.begin
  171. process(string).thread.end
  172. PASS: unprivileged myproc: Obtain list of supported probe types
  173. our ./loop pid is 34242
  174. 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"
  175. rc == 1
  176. 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
  177. source: function kernel_string:string (addr:long) %{ /* pure */
  178. ^
  179.  
  180. Pass 2: analysis failed. [man error::pass2]
  181. Number of similar error messages suppressed: 37.
  182. Rerun with -v to see them.
  183. FAIL: unprivileged myproc: --unprivileged process.begin
  184. as_root true
  185. OUT
  186. RC 0
  187. 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"
  188. rc == 1
  189. 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
  190. source: function kernel_string:string (addr:long) %{ /* pure */
  191. ^
  192.  
  193. Pass 2: analysis failed. [man error::pass2]
  194. Number of similar error messages suppressed: 37.
  195. Rerun with -v to see them.
  196. FAIL: unprivileged myproc: --privilege=stapusr process.end
  197. as_root true
  198. OUT
  199. RC 0
  200. 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"
  201. rc == 1
  202. 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
  203. source: function kernel_string:string (addr:long) %{ /* pure */
  204. ^
  205.  
  206. Pass 2: analysis failed. [man error::pass2]
  207. Number of similar error messages suppressed: 37.
  208. Rerun with -v to see them.
  209. FAIL: unprivileged myproc: --unprivileged process.function(string)
  210. as_root true
  211. OUT
  212. RC 0
  213. 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"
  214. rc == 1
  215. 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
  216. source: function kernel_string:string (addr:long) %{ /* pure */
  217. ^
  218.  
  219. Pass 2: analysis failed. [man error::pass2]
  220. Number of similar error messages suppressed: 37.
  221. Rerun with -v to see them.
  222. FAIL: unprivileged myproc: --privilege=stapusr process.function(number)
  223. as_root true
  224. OUT
  225. RC 0
  226. 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"
  227. rc == 1
  228. 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
  229. source: function kernel_string:string (addr:long) %{ /* pure */
  230. ^
  231.  
  232. Pass 2: analysis failed. [man error::pass2]
  233. Number of similar error messages suppressed: 37.
  234. Rerun with -v to see them.
  235. FAIL: unprivileged myproc: --unprivileged process.function(number).call
  236. as_root true
  237. OUT
  238. RC 0
  239. 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"
  240. rc == 1
  241. semantic error: while resolving probe point: identifier 'process' at <input>:1:7
  242. source: probe process.function(0x0000000000400777).inline { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }
  243. ^
  244.  
  245. semantic error: invalid suffix for probe: identifier 'inline' at :1:44
  246. source: probe process.function(0x0000000000400777).inline { if (is_myproc ()) println ("is myproc") else println ("not myproc"); exit(); } probe timer.s(15) { println("timeout") exit() }
  247. ^
  248.  
  249. Pass 2: analysis failed. [man error::pass2]
  250. KFAIL: unprivileged myproc: --privilege=stapusr process.function(number).inline (PRMS: GCC)
  251. as_root true
  252. OUT
  253. RC 0
  254. 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"
  255. rc == 1
  256. 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
  257. source: function kernel_string:string (addr:long) %{ /* pure */
  258. ^
  259.  
  260. Pass 2: analysis failed. [man error::pass2]
  261. Number of similar error messages suppressed: 37.
  262. Rerun with -v to see them.
  263. FAIL: unprivileged myproc: --unprivileged process.function(number).return
  264. as_root true
  265. OUT
  266. RC 0
  267. 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"
  268. rc == 1
  269. 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
  270. source: function kernel_string:string (addr:long) %{ /* pure */
  271. ^
  272.  
  273. Pass 2: analysis failed. [man error::pass2]
  274. Number of similar error messages suppressed: 37.
  275. Rerun with -v to see them.
  276. FAIL: unprivileged myproc: --privilege=stapusr process.function(number).exported
  277. as_root true
  278. OUT
  279. RC 0
  280. 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"
  281. rc == 1
  282. 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
  283. source: function kernel_string:string (addr:long) %{ /* pure */
  284. ^
  285.  
  286. Pass 2: analysis failed. [man error::pass2]
  287. Number of similar error messages suppressed: 37.
  288. Rerun with -v to see them.
  289. FAIL: unprivileged myproc: --unprivileged process.function(string).call
  290. as_root true
  291. OUT
  292. RC 0
  293. 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"
  294. rc == 1
  295. 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
  296. source: function kernel_string:string (addr:long) %{ /* pure */
  297. ^
  298.  
  299. Pass 2: analysis failed. [man error::pass2]
  300. Number of similar error messages suppressed: 37.
  301. Rerun with -v to see them.
  302. FAIL: unprivileged myproc: --privilege=stapusr process.function(string).inline
  303. as_root true
  304. OUT
  305. RC 0
  306. 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"
  307. rc == 1
  308. 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
  309. source: function kernel_string:string (addr:long) %{ /* pure */
  310. ^
  311.  
  312. Pass 2: analysis failed. [man error::pass2]
  313. Number of similar error messages suppressed: 37.
  314. Rerun with -v to see them.
  315. FAIL: unprivileged myproc: --unprivileged process.function(string).label(string)
  316. as_root true
  317. OUT
  318. RC 0
  319. 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"
  320. rc == 1
  321. 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
  322. source: function kernel_string:string (addr:long) %{ /* pure */
  323. ^
  324.  
  325. Pass 2: analysis failed. [man error::pass2]
  326. Number of similar error messages suppressed: 37.
  327. Rerun with -v to see them.
  328. FAIL: unprivileged myproc: --privilege=stapusr process.function(string).return
  329. as_root true
  330. OUT
  331. RC 0
  332. 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"
  333. rc == 1
  334. 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
  335. source: function kernel_string:string (addr:long) %{ /* pure */
  336. ^
  337.  
  338. Pass 2: analysis failed. [man error::pass2]
  339. Number of similar error messages suppressed: 37.
  340. Rerun with -v to see them.
  341. FAIL: unprivileged myproc: --unprivileged process.function(string).exported
  342. as_root true
  343. OUT
  344. RC 0
  345. 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"
  346. rc == 1
  347. 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
  348. source: function symname:string (addr: long) %{ /* pure */ /* pragma:symbols */
  349. ^
  350.  
  351. Pass 2: analysis failed. [man error::pass2]
  352. Number of similar error messages suppressed: 114.
  353. Rerun with -v to see them.
  354. FAIL: unprivileged myproc: --privilege=stapusr process.function(string).callee(string)
  355. as_root true
  356. OUT
  357. RC 0
  358. 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"
  359. rc == 1
  360. 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
  361. source: function symname:string (addr: long) %{ /* pure */ /* pragma:symbols */
  362. ^
  363.  
  364. Pass 2: analysis failed. [man error::pass2]
  365. Number of similar error messages suppressed: 114.
  366. Rerun with -v to see them.
  367. FAIL: unprivileged myproc: --unprivileged process.function(string).callee(string).call
  368. as_root true
  369. OUT
  370. RC 0
  371. 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"
  372. rc == 1
  373. 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
  374. source: function symname:string (addr: long) %{ /* pure */ /* pragma:symbols */
  375. ^
  376.  
  377. Pass 2: analysis failed. [man error::pass2]
  378. Number of similar error messages suppressed: 114.
  379. Rerun with -v to see them.
  380. FAIL: unprivileged myproc: --privilege=stapusr process.function(string).callee(string).return
  381. as_root true
  382. OUT
  383. RC 0
  384. 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"
  385. rc == 1
  386. 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
  387. source: function symname:string (addr: long) %{ /* pure */ /* pragma:symbols */
  388. ^
  389.  
  390. Pass 2: analysis failed. [man error::pass2]
  391. Number of similar error messages suppressed: 130.
  392. Rerun with -v to see them.
  393. FAIL: unprivileged myproc: --unprivileged process.function(string).callees
  394. as_root true
  395. OUT
  396. RC 0
  397. 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"
  398. rc == 1
  399. 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
  400. source: function symname:string (addr: long) %{ /* pure */ /* pragma:symbols */
  401. ^
  402.  
  403. Pass 2: analysis failed. [man error::pass2]
  404. Number of similar error messages suppressed: 130.
  405. Rerun with -v to see them.
  406. FAIL: unprivileged myproc: --privilege=stapusr process.function(string).callees(number)
  407. as_root true
  408. OUT
  409. RC 0
  410. 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"
  411. rc == 1
  412. 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
  413. source: function kernel_string:string (addr:long) %{ /* pure */
  414. ^
  415.  
  416. Pass 2: analysis failed. [man error::pass2]
  417. Number of similar error messages suppressed: 37.
  418. Rerun with -v to see them.
  419. FAIL: unprivileged myproc: --unprivileged process.plt
  420. as_root true
  421. OUT
  422. RC 0
  423. 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"
  424. rc == 1
  425. 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
  426. source: function kernel_string:string (addr:long) %{ /* pure */
  427. ^
  428.  
  429. Pass 2: analysis failed. [man error::pass2]
  430. Number of similar error messages suppressed: 37.
  431. Rerun with -v to see them.
  432. FAIL: unprivileged myproc: --privilege=stapusr process.plt.return
  433. as_root true
  434. OUT
  435. RC 0
  436. 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"
  437. rc == 1
  438. 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
  439. source: function kernel_string:string (addr:long) %{ /* pure */
  440. ^
  441.  
  442. Pass 2: analysis failed. [man error::pass2]
  443. Number of similar error messages suppressed: 37.
  444. Rerun with -v to see them.
  445. FAIL: unprivileged myproc: --unprivileged process.plt(string)
  446. as_root true
  447. OUT
  448. RC 0
  449. 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"
  450. rc == 1
  451. 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
  452. source: function kernel_string:string (addr:long) %{ /* pure */
  453. ^
  454.  
  455. Pass 2: analysis failed. [man error::pass2]
  456. Number of similar error messages suppressed: 37.
  457. Rerun with -v to see them.
  458. FAIL: unprivileged myproc: --privilege=stapusr process.plt(string).return
  459. as_root true
  460. OUT
  461. RC 0
  462. 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"
  463. rc == 1
  464. 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
  465. source: function kernel_string:string (addr:long) %{ /* pure */
  466. ^
  467.  
  468. Pass 2: analysis failed. [man error::pass2]
  469. Number of similar error messages suppressed: 37.
  470. Rerun with -v to see them.
  471. FAIL: unprivileged myproc: --unprivileged process.library(string).function(number)
  472. as_root true
  473. OUT
  474. RC 0
  475. 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"
  476. rc == 1
  477. 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
  478. source: function kernel_string:string (addr:long) %{ /* pure */
  479. ^
  480.  
  481. Pass 2: analysis failed. [man error::pass2]
  482. Number of similar error messages suppressed: 37.
  483. Rerun with -v to see them.
  484. FAIL: unprivileged myproc: --privilege=stapusr process.library(string).function(number).call
  485. as_root true
  486. OUT
  487. RC 0
  488. 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"
  489. rc == 1
  490. semantic error: while resolving probe point: identifier 'process' at <input>:1:7
  491. 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() }
  492. ^
  493.  
  494. semantic error: invalid suffix for probe: identifier 'inline' at :1:66
  495. 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() }
  496. ^
  497.  
  498. Pass 2: analysis failed. [man error::pass2]
  499. KFAIL: unprivileged myproc: --unprivileged process.library(string).function(number).inline (PRMS: GCC)
  500. as_root true
  501. OUT
  502. RC 0
  503. got a INT signal, interrupted by user
  504.  
  505. === systemtap Summary ===
  506.  
  507. # of expected passes 3
  508. # of unexpected failures 23
  509. # of known failures 2
  510. runtest completed at Mon Aug 6 16:20:54 2018
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement