rbbcc 0.9.0 → 0.9.1
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/.github/workflows/ci.yml +6 -6
- data/Gemfile.lock +18 -9
- data/lib/rbbcc/clib.rb +19 -5
- data/lib/rbbcc/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 21812e821d8cced71e6942b17c96800e6ac9c8fcbb3f09abffea3dd755b41365
|
|
4
|
+
data.tar.gz: 1c9d332fd7394ba8e0b4ca027335e4a02cc39ae5d3445e2103cf23b29cca6ccf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 19b29f9942f91dc22bedd627879f967dde601a864678958f4d047b79302714ba68ab9eda5b4e260f987be7dcc5792b480bc14f92ac117af7da7a79e0092cfa44
|
|
7
|
+
data.tar.gz: 3dd4df07f67f833b3e2157053ff0aa5a138dd65c907f40486845fe619553030711b5622f494142d7ca1fe66b0bebf31fa563e71e36ff9184bef71fc32bfb0116
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
name: Tests
|
|
2
2
|
on:
|
|
3
3
|
push:
|
|
4
|
-
branches: [
|
|
4
|
+
branches: [ master ]
|
|
5
5
|
pull_request:
|
|
6
|
-
branches: [
|
|
6
|
+
branches: [ master ]
|
|
7
7
|
|
|
8
8
|
jobs:
|
|
9
9
|
test:
|
|
10
10
|
strategy:
|
|
11
11
|
matrix:
|
|
12
|
-
libbcc_version: [0.17.0
|
|
13
|
-
ruby_version: [
|
|
12
|
+
libbcc_version: [0.17.0]
|
|
13
|
+
ruby_version: [3.0.0]
|
|
14
14
|
|
|
15
|
-
runs-on: ubuntu-
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
16
|
steps:
|
|
17
17
|
- uses: actions/checkout@v2
|
|
18
18
|
- name: Login to ghcr.io
|
|
@@ -35,4 +35,4 @@ jobs:
|
|
|
35
35
|
rbbcc-ci-${{ matrix.libbcc_version }}-${{ matrix.ruby_version }} \
|
|
36
36
|
/bin/bash -c \
|
|
37
37
|
'cd /rbbcc && bundle install && bundle exec rake test'"
|
|
38
|
-
|
|
38
|
+
|
data/Gemfile.lock
CHANGED
|
@@ -8,7 +8,7 @@ GIT
|
|
|
8
8
|
PATH
|
|
9
9
|
remote: .
|
|
10
10
|
specs:
|
|
11
|
-
rbbcc (0.9.
|
|
11
|
+
rbbcc (0.9.1)
|
|
12
12
|
|
|
13
13
|
GEM
|
|
14
14
|
remote: https://rubygems.org/
|
|
@@ -16,24 +16,33 @@ GEM
|
|
|
16
16
|
appbundler (0.13.4)
|
|
17
17
|
mixlib-cli (>= 1.4, < 3.0)
|
|
18
18
|
mixlib-shellout (>= 2.0, < 4.0)
|
|
19
|
-
chef-utils (
|
|
19
|
+
chef-utils (19.2.12)
|
|
20
20
|
concurrent-ruby
|
|
21
21
|
coderay (1.1.3)
|
|
22
|
-
concurrent-ruby (1.
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
concurrent-ruby (1.3.6)
|
|
23
|
+
drb (2.2.3)
|
|
24
|
+
io-console (0.8.2)
|
|
25
|
+
method_source (1.1.0)
|
|
26
|
+
minitest (6.0.2)
|
|
27
|
+
drb (~> 2.0)
|
|
28
|
+
prism (~> 1.5)
|
|
25
29
|
mixlib-cli (2.1.8)
|
|
26
|
-
mixlib-shellout (3.
|
|
30
|
+
mixlib-shellout (3.4.10)
|
|
27
31
|
chef-utils
|
|
28
|
-
|
|
32
|
+
prism (1.9.0)
|
|
33
|
+
pry (0.16.0)
|
|
29
34
|
coderay (~> 1.1)
|
|
30
35
|
method_source (~> 1.0)
|
|
31
|
-
|
|
32
|
-
|
|
36
|
+
reline (>= 0.6.0)
|
|
37
|
+
rake (13.3.1)
|
|
38
|
+
reline (0.6.3)
|
|
39
|
+
io-console (~> 0.5)
|
|
40
|
+
specific_install (0.3.8)
|
|
33
41
|
|
|
34
42
|
PLATFORMS
|
|
35
43
|
aarch64-linux
|
|
36
44
|
arm64-darwin-21
|
|
45
|
+
arm64-darwin-25
|
|
37
46
|
|
|
38
47
|
DEPENDENCIES
|
|
39
48
|
appbundler
|
data/lib/rbbcc/clib.rb
CHANGED
|
@@ -24,13 +24,27 @@ module RbBCC
|
|
|
24
24
|
@@libbcc_version >= Gem::Version.new(ver)
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
def self.system_libbcc_versions
|
|
28
|
+
paths = ['/usr/lib', '/usr/lib64', '/usr/local/lib', '/usr/lib/x86_64-linux-gnu'].freeze
|
|
29
|
+
candidates = paths.flat_map do |path|
|
|
30
|
+
Dir.glob("#{path}/libbcc.so.[0-9]*")
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
candidates.map do |path|
|
|
34
|
+
path.match(/libbcc\.so\.([\d.]+)/)&.captures&.first
|
|
35
|
+
end.compact.uniq.sort_by { |v| Gem::Version.new(v) }.reverse
|
|
36
|
+
rescue
|
|
37
|
+
[]
|
|
32
38
|
end
|
|
33
39
|
|
|
40
|
+
extend Fiddle::Importer
|
|
41
|
+
|
|
42
|
+
targets = if (env_ver = ENV['LIBBCC_VERSION'])
|
|
43
|
+
[env_ver]
|
|
44
|
+
else
|
|
45
|
+
self.system_libbcc_versions
|
|
46
|
+
end
|
|
47
|
+
raise LoadError, "no target libbcc to load" if targets.empty?
|
|
34
48
|
targets.each do |to_load|
|
|
35
49
|
begin
|
|
36
50
|
dlload "libbcc.so.#{to_load}"
|
data/lib/rbbcc/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rbbcc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Uchio Kondo
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies: []
|
|
13
12
|
description: BCC port for MRI. See https://github.com/iovisor/bcc
|
|
14
13
|
email:
|
|
@@ -112,7 +111,6 @@ homepage: https://github.com/udzura/rbbcc
|
|
|
112
111
|
licenses:
|
|
113
112
|
- Apache-2.0
|
|
114
113
|
metadata: {}
|
|
115
|
-
post_install_message:
|
|
116
114
|
rdoc_options: []
|
|
117
115
|
require_paths:
|
|
118
116
|
- lib
|
|
@@ -127,8 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
127
125
|
- !ruby/object:Gem::Version
|
|
128
126
|
version: '0'
|
|
129
127
|
requirements: []
|
|
130
|
-
rubygems_version:
|
|
131
|
-
signing_key:
|
|
128
|
+
rubygems_version: 4.0.6
|
|
132
129
|
specification_version: 4
|
|
133
130
|
summary: BCC port for MRI
|
|
134
131
|
test_files: []
|