Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/udzura/mruby-bcc
mruby Binding of BPF-Based Linux Tracing: see https://github.com/iovisor/bcc
https://github.com/udzura/mruby-bcc
bcc bpf kernel libbcc mruby tracing
Last synced: 1 day ago
JSON representation
mruby Binding of BPF-Based Linux Tracing: see https://github.com/iovisor/bcc
- Host: GitHub
- URL: https://github.com/udzura/mruby-bcc
- Owner: udzura
- License: apache-2.0
- Created: 2019-06-20T10:03:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-27T08:39:26.000Z (over 5 years ago)
- Last Synced: 2024-11-30T17:48:05.720Z (2 months ago)
- Topics: bcc, bpf, kernel, libbcc, mruby, tracing
- Language: C
- Size: 15.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mruby-bcc [![Build Status](https://travis-ci.org/udzura/mruby-bcc.svg?branch=master)](https://travis-ci.org/udzura/mruby-bcc)
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`
```ruby
MRuby::Build.new do |conf|# ... (snip) ...
conf.gem github: 'udzura/mruby-bcc'
end
```## example
```ruby
# 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