aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/lwtrace/example2/destructive.tr
blob: ad955db0186d10cf8135d11f41bc1803e3904694 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Blocks {
    ProbeDesc { Name: "IterationProbe" Provider: "LWTRACE_EXAMPLE_PROVIDER" }
    Action {
        SleepAction {
            NanoSeconds: 100000000
        }
    }
}

Blocks {
    ProbeDesc { Name: "AfterInputProbe" Provider: "LWTRACE_EXAMPLE_PROVIDER" }
    Action {
        StatementAction {
            Type: ST_MOD
            Argument { Variable: "nMod2" }
            Argument { Param: "n" }
            Argument { Value: "2" }
        }
    }
}
Blocks {
    ProbeDesc { Name: "AfterInputProbe" Provider: "LWTRACE_EXAMPLE_PROVIDER" }
    Predicate {
        Operators {
            Type: OT_EQ
            Argument { Variable: "nMod2" }
            Argument { Value: "0" }
        }
    }
    Action {
        PrintToStderrAction { }
    }
    Action {
        KillAction { }
    }
}