babeltrace2 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/babeltrace2.gemspec +1 -1
- data/lib/babeltrace2/graph/graph.rb +9 -6
- data/lib/babeltrace2/graph/query-executor.rb +2 -1
- data/lib/babeltrace2/trace-ir/clock-class.rb +2 -1
- data/lib/babeltrace2/trace-ir/event-class.rb +2 -1
- data/lib/babeltrace2/trace-ir/field-class.rb +6 -4
- data/lib/babeltrace2/trace-ir/stream-class.rb +2 -1
- data/lib/babeltrace2/trace-ir/stream.rb +2 -1
- data/lib/babeltrace2/trace-ir/trace-class.rb +2 -1
- data/lib/babeltrace2/trace-ir/trace.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0239b5e18b776cf7b8d6907e35c6a71aa22f9c6164a38269a629c4a2a1867687'
|
4
|
+
data.tar.gz: 0fa88f1bf9c68147a24c401cb447a21e16d6c6c89262125cb7796aa41087f51b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9d1a6d4f31fb45027d3f1cca7ffc3f1e994178c9781f1dfa9cedc0687e2186cce4b882629e1d635394e07f371c7d4e89d354e762b3e3185f1380d2ab2104155
|
7
|
+
data.tar.gz: 8a12153ae9b69012021889f462d7d233728b43c9aca6bc586f2cfe0d9625770fed24ab967af1591cb396d5dc64f3704d5f1f9cd6b56c5af3dec0cc1ea1db3215
|
data/babeltrace2.gemspec
CHANGED
@@ -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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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,
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
1448
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
|
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.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brice Videau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-04 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.
|
101
|
+
rubygems_version: 3.3.5
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Ruby Babeltrace 2 bindings
|