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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b46fa6dd0b99e4a178bc00bad497beab5d72426517f3d7b328c29d492e9e8a1
4
- data.tar.gz: a5f84fdc89d50621b3dd06eca22aea243efc1991ec053acece136016ccbdfb64
3
+ metadata.gz: 5cd5d45a97213b496575bcc8bd01fdda9077598efa59ef841aa7724b15189418
4
+ data.tar.gz: 9abd5b2278de91c67daa9d90e8ae85e8ce662b2213474633120cd12fb7c36ffc
5
5
  SHA512:
6
- metadata.gz: 532f1d544b56d82e68d5931aac278bf36a850943c3e78e8851c59e56852ebe4f6a3d974fa6c129544f0c7f895696bd9b894f3d033490faff8c408bbd7deed424
7
- data.tar.gz: 03de507c9094d850d77253610d2ffe08e2ee4ad97048e742f4c283ce6d8748de68f019a0e247ac826b5cbcbd48664a359ec57c92113f5f4015bc0c0f1984b482
6
+ metadata.gz: 8479707a606688b8f4ff57b854127cf383764bd0fe2bbfefbfcd51bea4108ef799f768a6f4b1e551c283a6315a3ff22d76cfc58e23d874187895fb76bb0d1e58
7
+ data.tar.gz: 630c85668e1112f4957441f403d84128514eab1c157cd7d54d6c773c40cf63e22f4a7ad73c1dc2576ca02df1de75f9bf06a2393376b77b3c785baa3290c6688d
data/Gemfile.lock CHANGED
@@ -8,7 +8,7 @@ GIT
8
8
  PATH
9
9
  remote: .
10
10
  specs:
11
- rbbcc (0.8.0)
11
+ rbbcc (0.9.0)
12
12
 
13
13
  GEM
14
14
  remote: https://rubygems.org/
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 && src_file.end_with?(".b")
235
- @module = Clib.bpf_module_create_b(src_file, hdr_file, debug, dev_name)
236
- else
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
- @usdt_contexts = usdt_contexts
242
- if code = gen_args_from_usdt
243
- text = code + text
244
- end
238
+ @usdt_contexts = usdt_contexts
239
+ if code = gen_args_from_usdt
240
+ text = code + text
241
+ end
245
242
 
246
243
 
247
- cflags_safe = if cflags.empty? or !cflags[-1].nil?
248
- cflags + [nil]
249
- else
250
- cflags
251
- end
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
@@ -1,3 +1,3 @@
1
1
  module RbBCC
2
- VERSION = "0.8.0"
2
+ VERSION = "0.9.0"
3
3
  end
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.8.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-02-13 00:00:00.000000000 Z
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: