Debian Codegraph @

testsuite/semok/config_number.stp

raw
1 #! stap -p2
2
3 # check that number comparisons work in CONFIG checks
4 # Note that unset CONFIG options compare equal the empty string and/or zero
5 probe
6 %( CONFIG_NR_CPUS == 13 %?
7 noprobe
8 %:
9 %( CONFIG_NR_CPUS != "" && CONFIG_NR_CPUS < 1 %?
10 nonoprobe
11 %:
12 %( CONFIG_NR_CPUS >= 0 && CONFIG_NO_SUCH_FOOBAR_CONFIG_OPTION == 0 %?
13 begin
14 %:
15 nononoprobe
16 %)
17 %)
18 %)
19 {
20 exit()
21 }