about summary refs log tree commit diff
path: root/Completion/BSD/Type/_ktrace_points
blob: 3068951fdb1fad675f37ec6d7d22512bd26fa04b (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#autoload

local points=(
  'c[trace system calls]'
  'i[trace I/O]'
  'n[trace namei translations]'
  's[trace signal processing]'
  'u[trace user data]'
  '+[trace the default points]'
)

case $OSTYPE in
  dragonfly*|freebsd*|netbsd*)
    points+=(
      'w[context switches]'
    )
    ;|
  freebsd*|openbsd*)
    points+=(
      't[trace various structures]'
    )
    ;|
  freebsd*)
    points+=(
      'f[trace page faults]'
      'p[trace capability check failures]'
      'y[trace sysctl(3) requests]'
    )
    ;;
  netbsd*)
    points+=(
      'A[trace all tracepoints]'
      'a[trace exec arguments]'
      'e[trace emulation changes]'
      'f[trace open file descriptors after exec]'
      'S[trace MIB access (sysctl)]'
      'v[trace exec environment]'
      '-[do not trace following trace points]'
    )
    ;;
  openbsd*)
    points+=(
      'p[trace violation of pledge(2) restrictions]'
      'x[trace argument vector in execve(2)]'
      'X[trace environment in execve(2)]'
    )
    ;;
esac

_values -s '' 'ktrace point' $points