{"id":26241688,"url":"https://github.com/booyaa/vagrant-bcctools","last_synced_at":"2025-04-23T06:19:10.943Z","repository":{"id":45681695,"uuid":"214668968","full_name":"booyaa/vagrant-bcctools","owner":"booyaa","description":"because playing with bcctools on macOS is a PITA","archived":false,"fork":false,"pushed_at":"2021-01-04T10:37:24.000Z","size":7,"stargazers_count":13,"open_issues_count":1,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T06:19:05.151Z","etag":null,"topics":["bcc","ebpf","iovisor"],"latest_commit_sha":null,"homepage":null,"language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/booyaa.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}},"created_at":"2019-10-12T15:21:23.000Z","updated_at":"2024-07-29T08:57:39.000Z","dependencies_parsed_at":"2022-07-30T12:08:08.229Z","dependency_job_id":null,"html_url":"https://github.com/booyaa/vagrant-bcctools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/booyaa%2Fvagrant-bcctools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/booyaa%2Fvagrant-bcctools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/booyaa%2Fvagrant-bcctools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/booyaa%2Fvagrant-bcctools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/booyaa","download_url":"https://codeload.github.com/booyaa/vagrant-bcctools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250379809,"owners_count":21420841,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","ebpf","iovisor"],"created_at":"2025-03-13T08:33:19.748Z","updated_at":"2025-04-23T06:19:10.918Z","avatar_url":"https://github.com/booyaa.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vagrant-bcctools\n\nI created this repo because it turns out that playing with [bcctools](https://github.com/iovisor/bcc) on macOS is a PITA.\n\nYou can't use the following:\n\n* the docker image mentioned in the bcc repo's [`QUICKSTART.md`](https://github.com/iovisor/bcc/blob/master/QUICKSTART.md) because that's expected a Linux Docker host.\n* the [vagrant](https://github.com/iovisor/vagrant) repo is 4 years old and doesn't appear to play nice with a modern version of Vagrant.\n\n## usage\n\n* We'll assume you've installed VirtualBox and Vagrant.\n\nSetup the vagrant session (this will take a while).\n\n```sh\nmake setup\n```\n\nOnce vagrant session is up, you can verify your install using the \"hello world\" python script:\n\n```sh\nvagrant ssh\nsudo /usr/share/doc/bpfcc-tools/examples/hello_world.py\n```\n\nIn another terminal session\n\n```sh\nvagrant ssh\n```\n\nIn the first terminal session you'll see something similar as the ssh session begins and [`clone`](https://linux.die.net/man/2/clone) syscall is triggered.\n\n```sh\n            bash-5259  [000] ....  1069.839261: 0x00000001: Hello, World!\n systemd-journal-404   [000] ....  1204.523418: 0x00000001: Hello, World!\n systemd-journal-404   [000] ....  1204.524228: 0x00000001: Hello, World!\n            cron-600   [000] ....  1341.196720: 0x00000001: Hello, World!\n   systemd-udevd-424   [000] ....  1341.197997: 0x00000001: Hello, World!\n   systemd-udevd-424   [000] ....  1341.200345: 0x00000001: Hello, World!\n   systemd-udevd-424   [000] ....  1341.201614: 0x00000001: Hello, World!\n            cron-5301  [000] ....  1341.204409: 0x00000001: Hello, World!\n   systemd-udevd-424   [000] ....  1341.205735: 0x00000001: Hello, World!\n              sh-5304  [000] ....  1341.206716: 0x00000001: Hello, World!\n   systemd-udevd-424   [000] ....  1341.207485: 0x00000001: Hello, World!\n systemd-journal-404   [000] ....  1641.273555: 0x00000001: Hello, World!\n```\n\nto tear down\n\n```sh\nmake clean\n```\n\n### Running BCC tools\nThe tools are installed in `/sbin` (`/usr/sbin` in Ubuntu 18.04) with a -bpfcc extension. More information can be found in the [BCC install docs](https://github.com/iovisor/bcc/blob/master/INSTALL.md#ubuntu---binary).\n\nAfter `vagrant ssh`, you can run any tool such as `execsnoop` by calling it directly or from the `/usr/sbin` directory. e.g.\n\n```sh\nsudo execsnoop-bpfcc\n\nsudo /usr/sbin/execsnoop-bpfcc\n```\n\n## copyright\n\n2019 \u0026copy; Mark Sta Ana\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbooyaa%2Fvagrant-bcctools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbooyaa%2Fvagrant-bcctools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbooyaa%2Fvagrant-bcctools/lists"}