summaryrefslogtreecommitdiffstats
path: root/testsuite/transok/seven.stp
blob: 7471e9e8cd7e73ae3ca9576c3223108c063b5586 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! stap -p3
#
# run at -p4 if you want to test the array temporary
# subexpression variable assignment order is good

global foo, bar

probe begin
{
	x = 10
	foo["hello"] = 25
	foo["hello"]++
	++foo["hello"]
	x = foo["hello"]
	foo["yo"] *= bar[x, foo["hello"], "goodbye"]++;
	log("hello from systemtap")
}