{"id":15282523,"url":"https://github.com/udzura/rbbcc","last_synced_at":"2026-05-31T07:00:59.316Z","repository":{"id":38550972,"uuid":"199186810","full_name":"udzura/rbbcc","owner":"udzura","description":"BCC port for MRI - this is unofficial bonsai project.","archived":false,"fork":false,"pushed_at":"2026-05-16T06:46:11.000Z","size":2412,"stargazers_count":51,"open_issues_count":0,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-05-16T08:54:48.181Z","etag":null,"topics":["bcc","dl","ebpf","ruby","tracing"],"latest_commit_sha":null,"homepage":"https://github.com/iovisor/bcc","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/udzura.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-07-27T16:09:05.000Z","updated_at":"2026-05-16T06:46:04.000Z","dependencies_parsed_at":"2024-07-10T16:00:24.090Z","dependency_job_id":"9dd7cea5-929e-4847-b4dd-63e1145275cb","html_url":"https://github.com/udzura/rbbcc","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/udzura/rbbcc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udzura%2Frbbcc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udzura%2Frbbcc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udzura%2Frbbcc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udzura%2Frbbcc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/udzura","download_url":"https://codeload.github.com/udzura/rbbcc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udzura%2Frbbcc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33722156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bcc","dl","ebpf","ruby","tracing"],"created_at":"2024-09-30T14:26:41.923Z","updated_at":"2026-05-31T07:00:59.279Z","avatar_url":"https://github.com/udzura.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RbBCC\n\n[![Gem Version](https://badge.fury.io/rb/rbbcc.svg)](https://badge.fury.io/rb/rbbcc) [![CI Status](https://github.com/udzura/rbbcc/workflows/Tests/badge.svg)](https://github.com/udzura/rbbcc/actions?query=workflow%3ATests)\n\nRbBCC is a port of [BCC](https://github.com/iovisor/bcc) in MRI. See iovisor project page.\n\n![Movie](examples/example.gif)\n\nThis gem requires `libbcc.so`. Please install it [following BCC's instruction](https://github.com/iovisor/bcc/blob/master/INSTALL.md).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rbbcc'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rbbcc\n\n## Usage\n\n```ruby\nrequire 'rbbcc' \n\ncode = \u003c\u003cCLANG\nint kprobe__sys_clone(void *ctx)\n{\n  bpf_trace_printk(\"Hello, World!\\\\n\");\n  return 0;\n}\nCLANG\nRbBCC::BCC.new(text: code).trace_print\n```\n\nSee examples (both in rbbcc and BCC)\n\n## Trying with docker\n\n[`udzura/rbbcc:${version}` is available.](https://hub.docker.com/r/udzura/rbbcc)\n\n* On generic linux:\n\n```console\n$ docker run --privileged \\\n    -v/lib/modules:/lib/modules \\\n    -v/sys:/sys \\\n    -v/usr/src:/usr/src \\\n    -v`pwd`:/opt \\\n    -ti \\\n    udzura/rbbcc:0.0.2 /opt/hello_world.rb\nFound fnc: kprobe__sys_clone\nAttach: p_sys_clone\n\n            bash-20113 [000] ....   377.602655: 0x00000001: Hello, World!\n            bash-20113 [000] ....   385.367309: 0x00000001: Hello, World!\n            bash-20113 [000] ....   391.203779: 0x00000001: Hello, World!\n            curl-20316 [001] ....   391.218226: 0x00000001: Hello, World!\n            bash-20113 [000] ....   402.528271: 0x00000001: Hello, World!\n docker-containe-20236 [000] ....   403.090058: 0x00000001: Hello, World!\n...\n```\n\n* On Docker for Mac:\n  * Docker for Mac host does not have heders file in `/usr/src`, so you should extract headers in each container inside.\n\n```console\n### I have prepared an example Dockerfile\n$ docker build -t udzura/rbbcc:0.0.2-dfm -f Dockerfile.dfm-example .\n$ docker run --privileged \\\n    -v/lib/modules:/lib/modules \\\n    -v`pwd`/examples:/opt \\\n    -ti \\\n    udzura/rbbcc:0.0.2-dfm /opt/hello_world.rb\n...\n containerd-shim-4932  [002] d...  1237.795421: : Hello, World!\n           httpd-4958  [000] d...  1237.795666: : Hello, World!\n           httpd-4958  [000] d...  1237.795794: : Hello, World!\n           httpd-4967  [000] d...  1237.795988: : Hello, World!\n           httpd-4967  [000] d...  1237.796211: : Hello, World!\n           httpd-4967  [000] d...  1237.796289: : Hello, World!\n           httpd-4967  [000] d...  1237.796325: : Hello, World!\n           \u003c...\u003e-5025  [003] d...  1237.796956: : Hello, World!\n            runc-5025  [003] d...  1237.797133: : Hello, World!\n           httpd-4967  [000] d...  1237.797156: : Hello, World!\n           httpd-4967  [000] d...  1237.797198: : Hello, World!\n           httpd-4967  [000] d...  1237.797340: : Hello, World!\n            runc-5025  [003] d...  1237.797464: : Hello, World!\n```\n\n## Documents\n\nSee [docs/](docs/) for getting started and tutorial.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/udzura/rbbcc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudzura%2Frbbcc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fudzura%2Frbbcc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudzura%2Frbbcc/lists"}