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 +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
- data/lib/babeltrace2.rb +5 -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: 6aadf37b0594ae795e850eee9819efa178e55e10d0e51078a3e17b1a1042a697
|
4
|
+
data.tar.gz: a7d9a2dd342ee6bcdf87c20266916ea21b47aa162902ec8972e0986cbc16071b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e260846e641079858dbe775647eff742827b37702ecd0eff28db6aedcb6cba661ba2cc3d634d637af15bff30cce730c9ca4f001eb72f2d2f428e91cc13ad265
|
7
|
+
data.tar.gz: 69feeefd39ca1b9ce019b28d6f79ad0a2f2f83de3f6e75c714ba21db16901dfbe2eb1dba29fe6a19ca9dfd5345ce8e3664e3334e9a6321247a743aa13fd6ad74
|
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
|
|
data/lib/babeltrace2.rb
CHANGED
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.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:
|
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.
|
101
|
+
rubygems_version: 3.3.5
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Ruby Babeltrace 2 bindings
|