{"id":16306149,"url":"https://github.com/gfx/hello-bpf-core","last_synced_at":"2025-03-22T20:32:59.989Z","repository":{"id":41974779,"uuid":"477995139","full_name":"gfx/hello-bpf-core","owner":"gfx","description":"An example app for BPF CO-RE and CI settings with GitHub Actions","archived":false,"fork":false,"pushed_at":"2022-08-23T06:45:49.000Z","size":22,"stargazers_count":14,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-11T21:09:54.569Z","etag":null,"topics":["bpf","bpf-core","ebpf","example"],"latest_commit_sha":null,"homepage":"","language":"C","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/gfx.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}},"created_at":"2022-04-05T06:01:07.000Z","updated_at":"2024-08-07T08:56:02.000Z","dependencies_parsed_at":"2022-08-12T01:10:26.132Z","dependency_job_id":null,"html_url":"https://github.com/gfx/hello-bpf-core","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/gfx%2Fhello-bpf-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfx%2Fhello-bpf-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfx%2Fhello-bpf-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gfx%2Fhello-bpf-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gfx","download_url":"https://codeload.github.com/gfx/hello-bpf-core/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221839139,"owners_count":16889590,"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","bpf-core","ebpf","example"],"created_at":"2024-10-10T21:09:47.387Z","updated_at":"2024-10-28T14:16:43.732Z","avatar_url":"https://github.com/gfx.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hello, BPF CO-RE!\n\n## Trouble Shooting\n\n### `clang` cannot compile BPF source files\n\nIf you cannot build a BPF source file with the following messages:\n\n```\nbuild/vmlinux.h:4629:20: error: expected member name or ';' after declaration specifiers\n        struct cgroup_bpf bpf;\n                          ^\n\u003cbuilt-in\u003e:284:13: note: expanded from here\n#define bpf 1\n```\n\nThen, your `clang` could be too old. I've confirmed clang-8 cannot build BPF source files but clang-10 can do.\n\n## References\n\n* https://www.sartura.hr/blog/simple-ebpf-core-application/\n  * repo: https://github.com/sartura/ebpf-hello-world\n* [BPF Documentation - kernel.org](https://www.kernel.org/doc/html/latest/bpf/)\n* [BPF CO-RE Reference Guide - nakryiko.com](https://nakryiko.com/posts/bpf-core-reference-guide/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfx%2Fhello-bpf-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgfx%2Fhello-bpf-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgfx%2Fhello-bpf-core/lists"}