babeltrace2 0.1.2 → 0.1.4

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: e35639e2f63c67505331bc9fc470f293f5b596ed4ad75ad95aa4c8b77c3fc8f1
4
- data.tar.gz: d53f6e08c85f320269e63a4f1f9ea0533a8f766b238b19c39d436d1c4e5537d7
3
+ metadata.gz: 6aadf37b0594ae795e850eee9819efa178e55e10d0e51078a3e17b1a1042a697
4
+ data.tar.gz: a7d9a2dd342ee6bcdf87c20266916ea21b47aa162902ec8972e0986cbc16071b
5
5
  SHA512:
6
- metadata.gz: b22dbbf84dcd76f9bcfa279fb9117cdc7bef9145a0da7d2a01b23882098cab0fc87f01087ef8b038553bebcab5f8e15291ee8434911720b6822fad075a1284a1
7
- data.tar.gz: 4b30fa95c0f6c52a853acaee5eadc8f4242c88fe7c688a25b121475962df75b36e026053a59a71c24283e6e0d2f11cf2370995d34d8a9add58b3acce353b9e1e
6
+ metadata.gz: 2e260846e641079858dbe775647eff742827b37702ecd0eff28db6aedcb6cba661ba2cc3d634d637af15bff30cce730c9ca4f001eb72f2d2f428e91cc13ad265
7
+ data.tar.gz: 69feeefd39ca1b9ce019b28d6f79ad0a2f2f83de3f6e75c714ba21db16901dfbe2eb1dba29fe6a19ca9dfd5345ce8e3664e3334e9a6321247a743aa13fd6ad74
data/babeltrace2.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'babeltrace2'
3
- s.version = "0.1.2"
3
+ s.version = "0.1.4"
4
4
  s.author = "Brice Videau"
5
5
  s.email = "bvideau@anl.gov"
6
6
  s.homepage = "https://github.com/alcf-perfengr/babeltrace2-ruby"
@@ -347,13 +347,14 @@ module Babeltrace2
347
347
  logging_level: BTLogging.default_level,
348
348
  initialize_method_data: nil)
349
349
  ptr = FFI::MemoryPointer.new(:pointer)
350
+ bt_params = BTValue.from_value(params)
350
351
  res = if initialize_method_data
351
352
  Babeltrace2.bt_graph_add_source_component_with_initialize_method_data(
352
- @handle, component_class, name, BTValue.from_value(params),
353
+ @handle, component_class, name, bt_params,
353
354
  initialize_method_data, logging_level, ptr)
354
355
  else
355
356
  Babeltrace2.bt_graph_add_source_component(
356
- @handle, component_class, name, BTValue.from_value(params),
357
+ @handle, component_class, name, bt_params,
357
358
  logging_level, ptr)
358
359
  end
359
360
  raise Babeltrace2.process_error(res) if res != :BT_GRAPH_ADD_COMPONENT_STATUS_OK
@@ -365,13 +366,14 @@ module Babeltrace2
365
366
  logging_level: BTLogging.default_level,
366
367
  initialize_method_data: nil)
367
368
  ptr = FFI::MemoryPointer.new(:pointer)
369
+ bt_params = BTValue.from_value(params)
368
370
  res = if initialize_method_data
369
371
  Babeltrace2.bt_graph_add_filter_component_with_initialize_method_data(
370
- @handle, component_class, name, BTValue.from_value(params),
372
+ @handle, component_class, name, bt_params,
371
373
  initialize_method_data, logging_level, ptr)
372
374
  else
373
375
  Babeltrace2.bt_graph_add_filter_component(
374
- @handle, component_class, name, BTValue.from_value(params),
376
+ @handle, component_class, name, bt_params,
375
377
  logging_level, ptr)
376
378
  end
377
379
  raise Babeltrace2.process_error(res) if res != :BT_GRAPH_ADD_COMPONENT_STATUS_OK
@@ -383,13 +385,14 @@ module Babeltrace2
383
385
  logging_level: BTLogging.default_level,
384
386
  initialize_method_data: nil)
385
387
  ptr = FFI::MemoryPointer.new(:pointer)
388
+ bt_params = BTValue.from_value(params)
386
389
  res = if initialize_method_data
387
390
  Babeltrace2.bt_graph_add_sink_component_with_initialize_method_data(
388
- @handle, component_class, name, BTValue.from_value(params),
391
+ @handle, component_class, name, bt_params,
389
392
  initialize_method_data, logging_level, ptr)
390
393
  else
391
394
  Babeltrace2.bt_graph_add_sink_component(
392
- @handle, component_class, name, BTValue.from_value(params),
395
+ @handle, component_class, name, bt_params,
393
396
  logging_level, ptr)
394
397
  end
395
398
  raise Babeltrace2.process_error(res) if res != :BT_GRAPH_ADD_COMPONENT_STATUS_OK
@@ -87,8 +87,9 @@ module Babeltrace2
87
87
  if handle
88
88
  super(handle, retain: retain, auto_release: auto_release)
89
89
  else
90
+ bt_params = BTValue.from_value(params)
90
91
  handle = Babeltrace2.bt_query_executor_create_with_method_data(
91
- component_class, object_name, BTValue.from_value(params), method_data)
92
+ component_class, object_name, bt_params, method_data)
92
93
  raise Babeltrace2.process_error if handle.null?
93
94
  super(handle)
94
95
  end
@@ -233,7 +233,8 @@ module Babeltrace2
233
233
  alias uuid get_uuid
234
234
 
235
235
  def set_user_attributes(user_attributes)
236
- Babeltrace2.bt_clock_class_set_user_attributes(@handle, BTValue.from_value(user_attributes))
236
+ bt_user_attributes = BTValue.from_value(user_attributes)
237
+ Babeltrace2.bt_clock_class_set_user_attributes(@handle, bt_user_attributes)
237
238
  self
238
239
  end
239
240
 
@@ -275,7 +275,8 @@ module Babeltrace2
275
275
  alias specific_context_field_class get_specific_context_field_class
276
276
 
277
277
  def set_user_attributes(user_attributes)
278
- Babeltrace2.bt_event_class_set_user_attributes(@handle, BTValue.from_value(user_attributes))
278
+ bt_user_attributes = BTValue.from_value(user_attributes)
279
+ Babeltrace2.bt_event_class_set_user_attributes(@handle, bt_user_attributes)
279
280
  self
280
281
  end
281
282
 
@@ -159,7 +159,8 @@ module Babeltrace2
159
159
  alias type? type_is
160
160
 
161
161
  def set_user_attributes(user_attributes)
162
- Babeltrace2.bt_field_class_set_user_attributes(@handle, BTValue.from_value(user_attributes))
162
+ bt_user_attributes = BTValue.from_value(user_attributes)
163
+ Babeltrace2.bt_field_class_set_user_attributes(@handle, bt_user_attributes)
163
164
  self
164
165
  end
165
166
 
@@ -1012,7 +1013,8 @@ module Babeltrace2
1012
1013
  alias field_class get_field_class
1013
1014
 
1014
1015
  def set_user_attributes(user_attributes)
1015
- Babeltrace2.bt_field_class_structure_member_set_user_attributes(@handle, BTValue.from_value(user_attributes))
1016
+ bt_user_attributes = BTValue.from_value(user_attributes)
1017
+ Babeltrace2.bt_field_class_structure_member_set_user_attributes(@handle, bt_user_attributes)
1016
1018
  self
1017
1019
  end
1018
1020
 
@@ -1444,8 +1446,8 @@ module Babeltrace2
1444
1446
  alias field_class get_field_class
1445
1447
 
1446
1448
  def set_user_attributes(user_attributes)
1447
- Babeltrace2.bt_field_class_variant_option_set_user_attributes(@handle,
1448
- BTValue.from_value(user_attributes))
1449
+ bt_user_attributes = BTValue.from_value(user_attributes)
1450
+ Babeltrace2.bt_field_class_variant_option_set_user_attributes(@handle, bt_user_attributes)
1449
1451
  self
1450
1452
  end
1451
1453
 
@@ -400,7 +400,8 @@ module Babeltrace2
400
400
  alias discarded_packets_have_default_clock_snapshots? discarded_packets_have_default_clock_snapshots
401
401
 
402
402
  def set_user_attributes(user_attributes)
403
- Babeltrace2.bt_stream_class_set_user_attributes(@handle, BTValue.from_value(user_attributes))
403
+ bt_user_attributes = BTValue.from_value(user_attributes)
404
+ Babeltrace2.bt_stream_class_set_user_attributes(@handle, bt_user_attributes)
404
405
  self
405
406
  end
406
407
 
@@ -116,7 +116,8 @@ module Babeltrace2
116
116
  alias name get_name
117
117
 
118
118
  def set_user_attributes(user_attributes)
119
- Babeltrace2.bt_stream_set_user_attributes(@handle, BTValue.from_value(user_attributes))
119
+ bt_user_attributes = BTValue.from_value(user_attributes)
120
+ Babeltrace2.bt_stream_set_user_attributes(@handle, bt_user_attributes)
120
121
  self
121
122
  end
122
123
 
@@ -146,7 +146,8 @@ module Babeltrace2
146
146
  alias assigns_automatic_stream_class_id? assigns_automatic_stream_class_id
147
147
 
148
148
  def set_user_attributes(user_attributes)
149
- Babeltrace2.bt_trace_class_set_user_attributes(@handle, BTValue.from_value(user_attributes))
149
+ bt_user_attributes = BTValue.from_value(user_attributes)
150
+ Babeltrace2.bt_trace_class_set_user_attributes(@handle, bt_user_attributes)
150
151
  self
151
152
  end
152
153
 
@@ -281,7 +281,8 @@ module Babeltrace2
281
281
  end
282
282
 
283
283
  def set_user_attributes(user_attributes)
284
- Babeltrace2.bt_trace_set_user_attributes(@handle, BTValue.from_value(user_attributes))
284
+ bt_user_attributes = BTValue.from_value(user_attributes)
285
+ Babeltrace2.bt_trace_set_user_attributes(@handle, bt_user_attributes)
285
286
  self
286
287
  end
287
288
 
data/lib/babeltrace2.rb CHANGED
@@ -2,7 +2,11 @@ require 'ffi'
2
2
 
3
3
  module Babeltrace2
4
4
  extend FFI::Library
5
- ffi_lib "babeltrace2"
5
+ if ENV["LIBBABELTRACE2_SO"]
6
+ ffi_lib ENV["LIBBABELTRACE2_SO"]
7
+ else
8
+ ffi_lib "babeltrace2"
9
+ end
6
10
  end
7
11
 
8
12
  require_relative 'babeltrace2/func-status'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: babeltrace2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice Videau
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-23 00:00:00.000000000 Z
11
+ date: 2023-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubygems_version: 3.2.5
101
+ rubygems_version: 3.3.5
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Ruby Babeltrace 2 bindings