{"id":15916815,"url":"https://github.com/arcjustin/bpf-api","last_synced_at":"2025-03-24T07:31:39.398Z","repository":{"id":62003698,"uuid":"536802458","full_name":"arcjustin/bpf-api","owner":"arcjustin","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-24T09:59:09.000Z","size":57,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-25T13:20:22.119Z","etag":null,"topics":["bpf","ebpf","linux","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arcjustin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-09-15T00:15:11.000Z","updated_at":"2024-01-23T11:20:12.000Z","dependencies_parsed_at":"2024-10-06T18:05:13.510Z","dependency_job_id":"5378e407-d7c8-4a6d-8fe4-750acc6418e4","html_url":"https://github.com/arcjustin/bpf-api","commit_stats":{"total_commits":44,"total_committers":2,"mean_commits":22.0,"dds":"0.022727272727272707","last_synced_commit":"b3ed9bb6b8315757c1f61c01fc20ca2d7faa7536"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjustin%2Fbpf-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjustin%2Fbpf-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjustin%2Fbpf-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arcjustin%2Fbpf-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arcjustin","download_url":"https://codeload.github.com/arcjustin/bpf-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245227417,"owners_count":20580873,"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":["bpf","ebpf","linux","rust"],"created_at":"2024-10-06T18:04:59.823Z","updated_at":"2025-03-24T07:31:39.138Z","avatar_url":"https://github.com/arcjustin.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bpf-api\n[![Build Status](https://github.com/arcjustin/bpf-api/workflows/build/badge.svg)](https://github.com/arcjustin/bpf-api/actions?query=workflow%3Abuild)\n[![crates.io](https://img.shields.io/crates/v/bpf-api.svg)](https://crates.io/crates/bpf-api)\n[![mio](https://docs.rs/bpf-api/badge.svg)](https://docs.rs/bpf-api/)\n[![Lines of Code](https://tokei.rs/b1/github/arcjustin/bpf-api?category=code)](https://tokei.rs/b1/github/arcjustin/bpf-api?category=code)\n\nIdomatic Rust bindings for eBPF programs, probes, and maps.\n\nThe motive behind this crate and sister crates: `btf`, `btf-derive`, `bpf-ins`, and `bpf-script`, aside from learning more about eBPF, was to be able to have a fully Rust eBPF solution. That is, the ability to easily write, compile, and attach BPF programs and use maps without any dependencies on bcc, libbpf or any other non-Rust BPF dependencies.\n\n## Usage\n\nFor usage examples, see code located in [examples/](examples/) :\n\n  | Examples | Description |\n  |----------|-------------|\n  |[array](examples/array.rs)| A short example using a BPF array|\n  |[print-programs](examples/print-programs.rs)| A short example that attachs a probe to `sched_process_exec` and prints program executions|\n  |[user-tracer](examples/user-tracer.rs)| Probes a given image path and symbol name using uprobes|\n\n## TODO\n\n* Add ARM support.\n* Make probe attachment easier / write convenience macros.\n\n## License\n\n* [MIT license](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcjustin%2Fbpf-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farcjustin%2Fbpf-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcjustin%2Fbpf-api/lists"}