rbbcc 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rbbcc/bcc.rb +21 -24
- data/lib/rbbcc/clib.rb +1 -2
- data/lib/rbbcc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cd5d45a97213b496575bcc8bd01fdda9077598efa59ef841aa7724b15189418
|
4
|
+
data.tar.gz: 9abd5b2278de91c67daa9d90e8ae85e8ce662b2213474633120cd12fb7c36ffc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8479707a606688b8f4ff57b854127cf383764bd0fe2bbfefbfcd51bea4108ef799f768a6f4b1e551c283a6315a3ff22d76cfc58e23d874187895fb76bb0d1e58
|
7
|
+
data.tar.gz: 630c85668e1112f4957441f403d84128514eab1c157cd7d54d6c773c40cf63e22f4a7ad73c1dc2576ca02df1de75f9bf06a2393376b77b3c785baa3290c6688d
|
data/Gemfile.lock
CHANGED
data/lib/rbbcc/bcc.rb
CHANGED
@@ -231,34 +231,31 @@ module RbBCC
|
|
231
231
|
hdr_file = BCC._find_file(hdr_file)
|
232
232
|
end
|
233
233
|
|
234
|
-
if src_file
|
235
|
-
|
236
|
-
|
237
|
-
if src_file
|
238
|
-
text = File.read(src_file)
|
239
|
-
end
|
234
|
+
if src_file
|
235
|
+
text = File.read(src_file)
|
236
|
+
end
|
240
237
|
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
238
|
+
@usdt_contexts = usdt_contexts
|
239
|
+
if code = gen_args_from_usdt
|
240
|
+
text = code + text
|
241
|
+
end
|
245
242
|
|
246
243
|
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
244
|
+
cflags_safe = if cflags.empty? or !cflags[-1].nil?
|
245
|
+
cflags + [nil]
|
246
|
+
else
|
247
|
+
cflags
|
248
|
+
end
|
249
|
+
|
250
|
+
@module = Clib.do_bpf_module_create_c_from_string(
|
251
|
+
text,
|
252
|
+
debug,
|
253
|
+
cflags_safe.pack("p*"),
|
254
|
+
cflags_safe.size,
|
255
|
+
allow_rlimit,
|
256
|
+
dev_name
|
257
|
+
)
|
252
258
|
|
253
|
-
@module = Clib.do_bpf_module_create_c_from_string(
|
254
|
-
text,
|
255
|
-
debug,
|
256
|
-
cflags_safe.pack("p*"),
|
257
|
-
cflags_safe.size,
|
258
|
-
allow_rlimit,
|
259
|
-
dev_name
|
260
|
-
)
|
261
|
-
end
|
262
259
|
@funcs = {}
|
263
260
|
@tables = {}
|
264
261
|
@perf_buffers = {}
|
data/lib/rbbcc/clib.rb
CHANGED
@@ -25,7 +25,7 @@ module RbBCC
|
|
25
25
|
end
|
26
26
|
|
27
27
|
extend Fiddle::Importer
|
28
|
-
targets = %w(0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0)
|
28
|
+
targets = %w(0.29.1 0.26.0 0.22.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0)
|
29
29
|
if default_load = ENV['LIBBCC_VERSION']
|
30
30
|
targets.unshift(default_load)
|
31
31
|
targets.uniq!
|
@@ -44,7 +44,6 @@ module RbBCC
|
|
44
44
|
end
|
45
45
|
typealias "size_t", "int"
|
46
46
|
|
47
|
-
extern 'void * bpf_module_create_b(char *filename, char *proto_filename, unsigned int flags, char *dev_name)'
|
48
47
|
extern 'int bpf_num_functions(void *)'
|
49
48
|
extern 'char * bpf_function_name(void *, int)'
|
50
49
|
extern 'void bpf_module_destroy(void *)'
|
data/lib/rbbcc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbcc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Uchio Kondo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: BCC port for MRI. See https://github.com/iovisor/bcc
|
14
14
|
email:
|