forked from iovisor/bcc
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsnapcraft.yaml
358 lines (350 loc) · 9.42 KB
/
snapcraft.yaml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
#
# Copyright (C) 2016,2020 Canonical
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
name: bcc
summary: BPF Compiler Collection (BCC)
description: A toolkit for creating efficient kernel tracing and manipulation programs
confinement: strict
grade: stable
plugs:
mount-observe: null
system-observe: null
system-trace: null
assumes: [snapd2.37]
base: core18
adopt-info: bcc
architectures:
- build-on: s390x
- build-on: ppc64el
- build-on: arm64
- build-on: armhf
- build-on: amd64
- build-on: i386
parts:
bcc:
plugin: cmake
override-pull: |
snapcraftctl pull
find . -type f -exec sed -i 's|^#\!/usr/bin/python|#\!/usr/bin/env python3|' {} \;
version=$(git tag | sort -V | tail -1 | cut -c2-)
commits=$(git log --oneline | wc -l)
sha=$(git log -1 --oneline | cut -d' ' -f1)
date=$(date +'%Y%m%d')
snapcraftctl set-version "$version-$date-$commits-$sha"
configflags:
- '-DCMAKE_INSTALL_PREFIX=/usr'
- '-DPYTHON_CMD=$SNAPCRAFT_STAGE/usr/bin/python3'
- '-DCMAKE_VERBOSE_MAKEFILE=ON'
source: .
build-packages:
- bison
- build-essential
- flex
- git
- iperf
- libclang-4.0-dev
- libedit-dev
- libelf-dev
- libllvm4.0
- libfl-dev
- llvm-4.0-dev
- zlib1g-dev
prime:
- -usr/share/bcc/tools/doc
- usr/lib/*/lib*.so*
- usr/lib/python3
- usr/lib/python3.6*
- usr/share/bcc/tools
after:
- stage
stage:
plugin: nil
stage-packages:
- libbz2-1.0
- liblzma5
- libncursesw5
- libtinfo5
- libzzip-0-13
- python3
- python3-packaging
- python3-pip
- python3-setuptools
prime:
- -usr/lib/*/perl
- -usr/lib/*/perl5
- usr/bin
- usr/lib
wrapper:
plugin: dump
after: [bcc]
source: snap/local
apps:
argdist:
command: bcc-wrapper argdist
bashreadline:
command: bcc-wrapper bashreadline
biolatency:
command: bcc-wrapper biolatency
biolatpcts:
command: bcc-wrapper biolatpcts
biosnoop:
command: bcc-wrapper biosnoop
biotop:
command: bcc-wrapper biotop
bitesize:
command: bcc-wrapper bitesize
bpflist:
command: bcc-wrapper bpflist
btrfsdist:
command: bcc-wrapper btrfsdist
btrfsslower:
command: bcc-wrapper btrfsslower
cachestat:
command: bcc-wrapper cachestat
cachetop:
command: bcc-wrapper cachetop
capable:
command: bcc-wrapper capable
cobjnew:
command: bcc-wrapper cobjnew
compactsnoop:
command: bcc-wrapper compactsnoop
cpudist:
command: bcc-wrapper cpudist
cpuunclaimed:
command: bcc-wrapper cpuunclaimed
criticalstat:
command: bcc-wrapper criticalstat
dbslower:
command: bcc-wrapper dbslower
dbstat:
command: bcc-wrapper dbstat
dcsnoop:
command: bcc-wrapper dcsnoop
dcstat:
command: bcc-wrapper dcstat
deadlock:
command: bcc-wrapper deadlock
dirtop:
command: bcc-wrapper dirtop
drsnoop:
command: bcc-wrapper drsnoop
execsnoop:
command: bcc-wrapper execsnoop
exitsnoop:
command: bcc-wrapper exitsnoop
ext4dist:
command: bcc-wrapper ext4dist
ext4slower:
command: bcc-wrapper ext4slower
filelife:
command: bcc-wrapper filelife
fileslower:
command: bcc-wrapper fileslower
filetop:
command: bcc-wrapper filetop
funccount:
command: bcc-wrapper funccount
funcinterval:
command: bcc-wrapper funcinterval
funclatency:
command: bcc-wrapper funclatency
funcslower:
command: bcc-wrapper funcslower
gethostlatency:
command: bcc-wrapper gethostlatency
hardirqs:
command: bcc-wrapper hardirqs
inject:
command: bcc-wrapper inject
javacalls:
command: bcc-wrapper javacalls
javaflow:
command: bcc-wrapper javaflow
javagc:
command: bcc-wrapper javagc
javaobjnew:
command: bcc-wrapper javaobjnew
javastat:
command: bcc-wrapper javastat
javathreads:
command: bcc-wrapper javathreads
killsnoop:
command: bcc-wrapper killsnoop
klockstat:
command: bcc-wrapper klockstat
llcstat:
command: bcc-wrapper llcstat
mdflush:
command: bcc-wrapper mdflush
memleak:
command: bcc-wrapper memleak
mountsnoop:
command: bcc-wrapper mountsnoop
mysqld-qslower:
command: bcc-wrapper mysqld_qslower
netqtop:
command: bcc-wrapper netqtop
nfsdist:
command: bcc-wrapper nfsdist
nfsslower:
command: bcc-wrapper nfsslower
nodegc:
command: bcc-wrapper nodegc
nodestat:
command: bcc-wrapper nodestat
offcputime:
command: bcc-wrapper offcputime
offwaketime:
command: bcc-wrapper offwaketime
oomkill:
command: bcc-wrapper oomkill
opensnoop:
command: bcc-wrapper opensnoop
perlcalls:
command: bcc-wrapper perlcalls
perlflow:
command: bcc-wrapper perlflow
perlstat:
command: bcc-wrapper perlstat
pidpersec:
command: bcc-wrapper pidpersec
profile:
command: bcc-wrapper profile
phpcalls:
command: bcc-wrapper phpcalls
phpflow:
command: bcc-wrapper phpflow
phpstat:
command: bcc-wrapper phpstat
pythoncalls:
command: bcc-wrapper pythoncalls
pythonflow:
command: bcc-wrapper pythonflow
pythongc:
command: bcc-wrapper pythongc
pythonstat:
command: bcc-wrapper pythonstat
readahead:
command: bcc-wrapper readahead
reset-trace:
command: bcc-wrapper reset-trace
rubycalls:
command: bcc-wrapper rubycalls
rubyflow:
command: bcc-wrapper rubyflow
rubygc:
command: bcc-wrapper rubygc
rubyobjnew:
command: bcc-wrapper rubyobjnew
rubystat:
command: bcc-wrapper rubystat
runqlat:
command: bcc-wrapper runqlat
runqlen:
command: bcc-wrapper runqlen
runqslower:
command: bcc-wrapper runqslower
shmsnoop:
command: bcc-wrapper shmsnoop
slabratetop:
command: bcc-wrapper slabratetop
sofdsnoop:
command: bcc-wrapper sofdsnoop
softirqs:
command: bcc-wrapper softirqs
solisten:
command: bcc-wrapper solisten
sslsniff:
command: bcc-wrapper sslsniff
stackcount:
command: bcc-wrapper stackcount
statsnoop:
command: bcc-wrapper statsnoop
swapin:
command: bcc-wrapper swapin
syncsnoop:
command: bcc-wrapper syncsnoop
syscount:
command: bcc-wrapper syscount
tclcalls:
command: bcc-wrapper tclcalls
tclflow:
command: bcc-wrapper tclflow
tclobjnew:
command: bcc-wrapper tclobjnew
tclstat:
command: bcc-wrapper tclstat
tcpaccept:
command: bcc-wrapper tcpaccept
tcpconnect:
command: bcc-wrapper tcpconnect
tcpconnlat:
command: bcc-wrapper tcpconnlat
tcpdrop:
command: bcc-wrapper tcpdrop
tcplife:
command: bcc-wrapper tcplife
tcpretrans:
command: bcc-wrapper tcpretrans
tcprtt:
command: bcc-wrapper tcprtt
tcpstates:
command: bcc-wrapper tcpstates
tcpsubnet:
command: bcc-wrapper tcpsubnet
tcpsynbl:
command: bcc-wrapper tcpsynbl
tcptop:
command: bcc-wrapper tcptop
tcptracer:
command: bcc-wrapper tcptracer
threadsnoop:
command: bcc-wrapper threadsnoop
tplist:
command: bcc-wrapper tplist
trace:
command: bcc-wrapper trace
ttysnoop:
command: bcc-wrapper ttysnoop
ucalls:
command: bcc-wrapper lib/ucalls
uflow:
command: bcc-wrapper lib/uflow
ugc:
command: bcc-wrapper lib/ugc
uobjnew:
command: bcc-wrapper lib/uobjnew
ustat:
command: bcc-wrapper lib/ustat
uthreads:
command: bcc-wrapper lib/uthreads
vfscount:
command: bcc-wrapper vfscount
vfsstat:
command: bcc-wrapper vfsstat
wakeuptime:
command: bcc-wrapper wakeuptime
xfsdist:
command: bcc-wrapper xfsdist
xfsslower:
command: bcc-wrapper xfsslower
zfsdist:
command: bcc-wrapper zfsdist
zfsslower:
command: bcc-wrapper zfsslower
# vim: set ai et sts=4 tabstop=4 sw=4: