summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/config_wildcard.stp
blob: 4e5a6150b63ac758829efb4a4299600c235e560e (plain)
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
#! stap -p2

# check that wildcards work in CONFIG checks
probe
  %( CONFIG_NFSD == "m" || CONFIG_NFSD == "y" %?
    %( CONFIG_NFSD == "[my]" &&
       CONFIG_NFSD == "[a-z]" &&
       CONFIG_NFSD == "?" &&
       CONFIG_NFSD == "*"
    %? begin
    %: noprobe
    %)
  %:
    %( CONFIG_NFSD != "[my]" &&
       CONFIG_NFSD != "[a-z]" &&
       CONFIG_NFSD != "?" &&
       CONFIG_NFSD == "*" &&
       CONFIG_NFSD == ""
    %? begin
    %: noprobe
    %)
  %)
{
  exit()
}