{"id":18344248,"url":"https://github.com/mmisono/bpftrace-tetris","last_synced_at":"2025-04-06T07:33:00.467Z","repository":{"id":56285337,"uuid":"225959726","full_name":"mmisono/bpftrace-tetris","owner":"mmisono","description":"Tetris in bpftrace","archived":false,"fork":false,"pushed_at":"2020-11-18T01:27:51.000Z","size":11,"stargazers_count":104,"open_issues_count":2,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-21T20:46:35.216Z","etag":null,"topics":["bpf","bpftrace"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/mmisono.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":"2019-12-04T21:24:21.000Z","updated_at":"2024-07-14T11:10:04.000Z","dependencies_parsed_at":"2022-08-15T16:00:49.095Z","dependency_job_id":null,"html_url":"https://github.com/mmisono/bpftrace-tetris","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/mmisono%2Fbpftrace-tetris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmisono%2Fbpftrace-tetris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmisono%2Fbpftrace-tetris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmisono%2Fbpftrace-tetris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmisono","download_url":"https://codeload.github.com/mmisono/bpftrace-tetris/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247450713,"owners_count":20940937,"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","bpftrace"],"created_at":"2024-11-05T21:05:26.070Z","updated_at":"2025-04-06T07:33:00.242Z","avatar_url":"https://github.com/mmisono.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bpftrace-tetris\n\nThis is the ported version of [tetris.spt](https://github.com/mhiramat/stapgames/blob/master/games/tetris.stp).\n\n\u003cimage src=\"https://user-images.githubusercontent.com/186170/69949674-4eefa680-1535-11ea-8def-64058a098e51.gif\" width=\"40%\"/\u003e\n\n## Requirements\n- Linux 5.3+\n- [bcc](https://github.com/iovisor/bcc) master branch version\n- [bpftrace](https://github.com/iovisor/bpftrace) master branch version\n\n## How to run\n\n- `./run.sh`\n\n### In Vagrant\n\nIf you do not readily have access to a recent linux kernel and bpftrace, you can try the included Vagrant file which launches ubuntu eoan so you can still play tetris!\n\n\nDownload vagrant from https://www.vagrantup.com/downloads.html, and make sure you have either VMWare or [Virtualbox 6.0 installed](https://www.virtualbox.org/wiki/Download_Old_Builds_6_0).\n\nInstall both, then run:\n\n```\nvagrant plugin install vagrant-vbguest\n```\n\nYou can then run tetris with:\n\n```\n./run-in-vagrant.sh\n```\n\n### In Docker\n\n```\n./run-in-docker.sh\n```\n\nNote that this also run with a recent Docker Desktop for Mac.\n\n## FAQ\n\n### Q. Why is Linux 5.3+ required?\nOtherwise the BPF program will be rejected due to the maximum instruction limit (see [this commit](https://github.com/torvalds/linux/commit/c04c0d2b968ac45d6ef020316808ef6c82325a82).)\n\n### Q. How do I change the dropping speed?\nIt can be changed by modifying the interval value of `interval:ms:99`.\n\n### Q. How are blocks represented?\n\u003cimg src=\"https://user-images.githubusercontent.com/186170/69930048-c0fbc780-1504-11ea-87a0-78e6e292e3a2.png\" width=\"60%\" /\u003e\n\n## License\nGPL v2 or later\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmisono%2Fbpftrace-tetris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmisono%2Fbpftrace-tetris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmisono%2Fbpftrace-tetris/lists"}