summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/error_fn.stp
blob: 2e68026f45dc7074d5a919d223ed89ffee37f5f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
probe begin {
    println("systemtap starting probe")
    println("systemtap ending probe")
}

function generate_error:long() {
    error("synthetic error")
    return 1
}

function compute:long() {
    return generate_error()
}

probe end {
    compute()
}