1bps(8)                      System Manager's Manual                     bps(8)
2
3
4

NAME

6       bps - List all BPF programs. 'ps' for BPF programs.
7

SYNOPSIS

9       bps [bpf-prog-id]
10

DESCRIPTION

12       bps  lists  all  BPF programs loaded into the kernel.  It is similar to
13       the ps command but for the BPF programs.
14
15       Each loaded bpf program is identified by an unique integer (i.e.   bpf-
16       prog-id  or  simply BID).  If a bpf-prog-id is specified, the maps used
17       by bpf-prog-id will also be listed.
18
19

EXAMPLES

21       List all BPF programs loaded into the kernel:
22              bps
23
24       Show the details and maps of BID 6:
25              bps 6
26

BPF PROGRAM FIELDS

28       BID    BPF program ID.  It ends with '-' if it is not jitted.
29
30       TYPE   The type of a BPF program. e.g. kprobe, tracepoint, xdp...etc.
31
32       UID    The user ID that loaded the BPF program.
33
34       #MAPS  Total number of maps used by a BPF program.
35
36       LoadTime
37              When was the BPF program loaded?
38
39       NAME   The name of a BPF program.  The user space library (like  bcc  )
40              usually  uses  the  C function name of the original BPF's source
41              code as the program name.  It could be empty if the  user  space
42              did not provide a name.
43
44

BPF MAP FIELDS

46       MID    BPF map ID.
47
48       TYPE   The type of a BPF map. e.g. hash, array, stack trace...etc.
49
50       FLAGS  The flags used to create the BP map.
51
52       KeySz  The key size of a BPF map.
53
54       ValueSz
55              The value size of a BPF map.
56
57       MaxEnts
58              The maximum number of entries of a map.
59
60       NAME   The  name of a BPF map.  The user space library (like bcc ) usu‐
61              ally uses the C variable name of the BPF map as  its  name.   It
62              could be empty if the user space did not provide a name.
63
64

SOURCE

66       This is from bcc.
67
68              https://github.com/iovisor/bcc
69

OS

71       Linux
72

STABILITY

74       Unstable - in development.
75

AUTHOR

77       Martin Lau
78
79
80
81USER COMMANDS                     2017-10-19                            bps(8)
Impressum