]> sourceware.org Git - systemtap.git/blob - testsuite/semok/bz11911.stp
Rename CONTEXT regflags to probe_flags. Now simply indicates user mode.
[systemtap.git] / testsuite / semok / bz11911.stp
1 #!/bin/sh
2
3 TESTBIN=`mktemp` || exit $?
4 function clean_exit { rm $TESTBIN; exit $1; }
5
6 echo '
7 struct point { int x, y; };
8
9 int
10 foo (struct point p, int i)
11 {
12 return p.x + p.y;
13 }
14
15 int
16 main (void)
17 {
18 struct point p = { 2, 3 };
19 return foo (p, 17);
20 }
21 ' | gcc -g -o $TESTBIN -xc - || clean_exit $?
22
23 stap -L 'process("'$TESTBIN'").function("foo")' | grep '\$p:struct point'
24 clean_exit $?
This page took 0.0381 seconds and 5 git commands to generate.