babeltrace2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/babeltrace2.gemspec +13 -0
  4. data/lib/babeltrace2.rb +49 -0
  5. data/lib/babeltrace2/error-reporting.rb +432 -0
  6. data/lib/babeltrace2/func-status.rb +26 -0
  7. data/lib/babeltrace2/graph/component-class-dev.rb +801 -0
  8. data/lib/babeltrace2/graph/component-class.rb +134 -0
  9. data/lib/babeltrace2/graph/component-descriptor-set.rb +78 -0
  10. data/lib/babeltrace2/graph/component.rb +362 -0
  11. data/lib/babeltrace2/graph/connection.rb +35 -0
  12. data/lib/babeltrace2/graph/graph.rb +523 -0
  13. data/lib/babeltrace2/graph/interrupter.rb +57 -0
  14. data/lib/babeltrace2/graph/message-iterator-class.rb +374 -0
  15. data/lib/babeltrace2/graph/message-iterator.rb +253 -0
  16. data/lib/babeltrace2/graph/message.rb +721 -0
  17. data/lib/babeltrace2/graph/port.rb +124 -0
  18. data/lib/babeltrace2/graph/private-query-executor.rb +4 -0
  19. data/lib/babeltrace2/graph/query-executor.rb +142 -0
  20. data/lib/babeltrace2/graph/self-component-class.rb +37 -0
  21. data/lib/babeltrace2/graph/self-component-port.rb +35 -0
  22. data/lib/babeltrace2/graph/self-component.rb +264 -0
  23. data/lib/babeltrace2/graph/self-message-iterator.rb +147 -0
  24. data/lib/babeltrace2/integer-range-set.rb +275 -0
  25. data/lib/babeltrace2/logging-defs.rb +19 -0
  26. data/lib/babeltrace2/logging.rb +77 -0
  27. data/lib/babeltrace2/plugin/plugin-dev.rb +335 -0
  28. data/lib/babeltrace2/plugin/plugin-loading.rb +459 -0
  29. data/lib/babeltrace2/trace-ir/clock-class.rb +258 -0
  30. data/lib/babeltrace2/trace-ir/clock-snapshot.rb +45 -0
  31. data/lib/babeltrace2/trace-ir/event-class.rb +292 -0
  32. data/lib/babeltrace2/trace-ir/event.rb +91 -0
  33. data/lib/babeltrace2/trace-ir/field-class.rb +1416 -0
  34. data/lib/babeltrace2/trace-ir/field-path.rb +123 -0
  35. data/lib/babeltrace2/trace-ir/field.rb +871 -0
  36. data/lib/babeltrace2/trace-ir/packet.rb +57 -0
  37. data/lib/babeltrace2/trace-ir/stream-class.rb +425 -0
  38. data/lib/babeltrace2/trace-ir/stream.rb +137 -0
  39. data/lib/babeltrace2/trace-ir/trace-class.rb +343 -0
  40. data/lib/babeltrace2/trace-ir/trace.rb +321 -0
  41. data/lib/babeltrace2/types.rb +667 -0
  42. data/lib/babeltrace2/util.rb +23 -0
  43. data/lib/babeltrace2/value.rb +869 -0
  44. data/lib/babeltrace2/version.rb +126 -0
  45. metadata +105 -0
@@ -0,0 +1,126 @@
1
+ module Babeltrace2
2
+
3
+ attach_function :bt_version_get_major,
4
+ [],
5
+ :uint
6
+
7
+ attach_function :bt_version_get_minor,
8
+ [],
9
+ :uint
10
+
11
+ attach_function :bt_version_get_patch,
12
+ [],
13
+ :uint
14
+
15
+ attach_function :bt_version_get_development_stage,
16
+ [],
17
+ :string
18
+
19
+ attach_function :bt_version_get_vcs_revision_description,
20
+ [],
21
+ :string
22
+
23
+ attach_function :bt_version_get_name,
24
+ [],
25
+ :string
26
+
27
+ attach_function :bt_version_get_name_description,
28
+ [],
29
+ :string
30
+
31
+ attach_function :bt_version_get_extra_name,
32
+ [],
33
+ :string
34
+
35
+ attach_function :bt_version_get_extra_description,
36
+ [],
37
+ :string
38
+
39
+ attach_function :bt_version_get_extra_patch_names,
40
+ [],
41
+ :string
42
+
43
+ module BTVersion
44
+ class Number
45
+ include Comparable
46
+ attr_reader :major, :minor, :patch, :extra
47
+ def initialize(major, minor, patch, extra = nil)
48
+ @major = major
49
+ @minor = minor
50
+ @patch = patch
51
+ @extra = extra
52
+ end
53
+
54
+ def to_s
55
+ str = "#{@major}.#{@minor}.#{@patch}"
56
+ str << " (#{extra})" if extra
57
+ str
58
+ end
59
+
60
+ def to_a
61
+ [@major, @minor, @patch]
62
+ end
63
+
64
+ def <=>(other)
65
+ to_a <=> other.to_a
66
+ end
67
+ end
68
+
69
+ class << self
70
+ def get_major
71
+ Babeltrace2.bt_version_get_major
72
+ end
73
+ alias major get_major
74
+
75
+ def get_minor
76
+ Babeltrace2.bt_version_get_minor
77
+ end
78
+ alias minor get_minor
79
+
80
+ def get_patch
81
+ Babeltrace2.bt_version_get_patch
82
+ end
83
+ alias patch get_patch
84
+
85
+ def get_development_stage
86
+ Babeltrace2.bt_version_get_development_stage
87
+ end
88
+ alias development_stage get_development_stage
89
+
90
+ def get_vcs_revision_description
91
+ Babeltrace2.bt_version_get_vcs_revision_description
92
+ end
93
+ alias vcs_revision_description get_vcs_revision_description
94
+
95
+ def get_name
96
+ Babeltrace2.bt_version_get_name
97
+ end
98
+ alias name get_name
99
+
100
+ def get_name_description
101
+ Babeltrace2.bt_version_get_name_description
102
+ end
103
+ alias name_description get_name_description
104
+
105
+ def get_extra_name
106
+ Babeltrace2.bt_version_get_extra_name
107
+ end
108
+ alias extra_name get_extra_name
109
+
110
+ def get_extra_description
111
+ Babeltrace2.bt_version_get_extra_description
112
+ end
113
+ alias extra_description get_extra_description
114
+
115
+ def get_extra_patch_names
116
+ Babeltrace2.bt_version_get_extra_patch_names
117
+ end
118
+ alias extra_patch_names get_extra_patch_names
119
+
120
+ def get_number
121
+ @number ||= Number.new(major, minor, patch)
122
+ end
123
+ alias number get_number
124
+ end
125
+ end
126
+ end
metadata ADDED
@@ -0,0 +1,105 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: babeltrace2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Brice Videau
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-12-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ffi
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.9'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.9.3
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.9'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.9.3
33
+ description: Ruby Babeltrace 2 ffi bindings
34
+ email: bvideau@anl.gov
35
+ executables: []
36
+ extensions: []
37
+ extra_rdoc_files: []
38
+ files:
39
+ - LICENSE
40
+ - babeltrace2.gemspec
41
+ - lib/babeltrace2.rb
42
+ - lib/babeltrace2/error-reporting.rb
43
+ - lib/babeltrace2/func-status.rb
44
+ - lib/babeltrace2/graph/component-class-dev.rb
45
+ - lib/babeltrace2/graph/component-class.rb
46
+ - lib/babeltrace2/graph/component-descriptor-set.rb
47
+ - lib/babeltrace2/graph/component.rb
48
+ - lib/babeltrace2/graph/connection.rb
49
+ - lib/babeltrace2/graph/graph.rb
50
+ - lib/babeltrace2/graph/interrupter.rb
51
+ - lib/babeltrace2/graph/message-iterator-class.rb
52
+ - lib/babeltrace2/graph/message-iterator.rb
53
+ - lib/babeltrace2/graph/message.rb
54
+ - lib/babeltrace2/graph/port.rb
55
+ - lib/babeltrace2/graph/private-query-executor.rb
56
+ - lib/babeltrace2/graph/query-executor.rb
57
+ - lib/babeltrace2/graph/self-component-class.rb
58
+ - lib/babeltrace2/graph/self-component-port.rb
59
+ - lib/babeltrace2/graph/self-component.rb
60
+ - lib/babeltrace2/graph/self-message-iterator.rb
61
+ - lib/babeltrace2/integer-range-set.rb
62
+ - lib/babeltrace2/logging-defs.rb
63
+ - lib/babeltrace2/logging.rb
64
+ - lib/babeltrace2/plugin/plugin-dev.rb
65
+ - lib/babeltrace2/plugin/plugin-loading.rb
66
+ - lib/babeltrace2/trace-ir/clock-class.rb
67
+ - lib/babeltrace2/trace-ir/clock-snapshot.rb
68
+ - lib/babeltrace2/trace-ir/event-class.rb
69
+ - lib/babeltrace2/trace-ir/event.rb
70
+ - lib/babeltrace2/trace-ir/field-class.rb
71
+ - lib/babeltrace2/trace-ir/field-path.rb
72
+ - lib/babeltrace2/trace-ir/field.rb
73
+ - lib/babeltrace2/trace-ir/packet.rb
74
+ - lib/babeltrace2/trace-ir/stream-class.rb
75
+ - lib/babeltrace2/trace-ir/stream.rb
76
+ - lib/babeltrace2/trace-ir/trace-class.rb
77
+ - lib/babeltrace2/trace-ir/trace.rb
78
+ - lib/babeltrace2/types.rb
79
+ - lib/babeltrace2/util.rb
80
+ - lib/babeltrace2/value.rb
81
+ - lib/babeltrace2/version.rb
82
+ homepage: https://github.com/alcf-perfengr/babeltrace2-ruby
83
+ licenses:
84
+ - MIT
85
+ metadata: {}
86
+ post_install_message:
87
+ rdoc_options: []
88
+ require_paths:
89
+ - lib
90
+ required_ruby_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: 2.3.0
95
+ required_rubygems_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ requirements: []
101
+ rubygems_version: 3.1.2
102
+ signing_key:
103
+ specification_version: 4
104
+ summary: Ruby Babeltrace 2 bindings
105
+ test_files: []