Skip to content
mruby Binding of BPF-Based Linux Tracing: see https://github.com/iovisor/bcc
C Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
mrblib
src
test
.gitignore
.travis.yml
.travis_build_config.rb
LICENSE
README.md
Rakefile
mrbgem.rake
mruby-bcc.gem

README.md

mruby-bcc Build Status

mruby Binding of BPF-Based Linux Tracing: see https://github.com/iovisor/bcc

Install as a mrbgems

Add conf.gem line to build_config.rb

MRuby::Build.new do |conf|

  # ... (snip) ...

  conf.gem github: 'udzura/mruby-bcc'
end

example

# TODO: Make this code work:
# a clone of https://github.com/iovisor/bcc/blob/master/examples/hello_world.py
bpf = BCC::BPF.new(
  text: 'int kprobe__sys_clone(void *ctx) { bpf_trace_printk("Hello, World!\\n"); return 0; }'
)
bpf.trace_print

License

Apache License 2.0 (as BCC itself is): See LICENSE file

You can’t perform that action at this time.