{"id":15190184,"url":"https://github.com/mmat11/usdt","last_synced_at":"2025-07-25T22:07:29.789Z","repository":{"id":41852977,"uuid":"425987494","full_name":"mmat11/usdt","owner":"mmat11","description":"go package for linking ebpf.Program to USDTs","archived":false,"fork":false,"pushed_at":"2024-05-27T20:59:09.000Z","size":19,"stargazers_count":2,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T15:43:21.503Z","etag":null,"topics":["ebpf","go","tracing","usdt"],"latest_commit_sha":null,"homepage":"","language":"Go","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/mmat11.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}},"created_at":"2021-11-08T20:42:20.000Z","updated_at":"2024-05-27T20:11:52.000Z","dependencies_parsed_at":"2024-06-21T15:15:06.701Z","dependency_job_id":"cd576f10-03a0-40ee-960f-3c8003614615","html_url":"https://github.com/mmat11/usdt","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmat11%2Fusdt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmat11%2Fusdt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmat11%2Fusdt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmat11%2Fusdt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmat11","download_url":"https://codeload.github.com/mmat11/usdt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245755680,"owners_count":20667027,"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":["ebpf","go","tracing","usdt"],"created_at":"2024-09-27T20:05:50.280Z","updated_at":"2025-03-27T00:16:09.153Z","avatar_url":"https://github.com/mmat11.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# usdt\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/mmat11/usdt)](https://goreportcard.com/report/github.com/mmat11/usdt)\n[![Go Reference](https://pkg.go.dev/badge/github.com/mmat11/usdt)](https://pkg.go.dev/github.com/mmat11/usdt)\n[![CI](https://github.com/mmat11/usdt/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/mmat11/usdt/actions/workflows/ci.yml)\n\n## Introduction\n\n`usdt` is a Go package for linking `cilium/ebpf`'s `Program` to userspace statically defined tracepoints.\n\n## Getting started\n\nYou can find an example in the examples folder.\n\nTo try it, start a python process:\n\n```\n(venv) ➜  cpython git:(main) ✗ python\nPython 3.10.4 (main, Mar 25 2022, 00:00:00) [GCC 11.2.1 20220127 (Red Hat 11.2.1-9)] on linux\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n\u003e\u003e\u003e import os\n\u003e\u003e\u003e os.getpid()\n373829\n```\n\nThen run the Go process and observe `function__entry` tracepoint events:\n\n```\ngo run -exec sudo ./ -pid 373829\n\n/usr/lib64/python3.10/random.py:366 -\u003e randint()\n/usr/lib64/python3.10/random.py:292 -\u003e randrange()\n/usr/lib64/python3.10/random.py:239 -\u003e _randbelow_with_getrandbits()\n```\n\n### Testing\n\nInstall dev dependencies\n\n- clang 12\n- `apt install systemtap-sdt-dev` (Debian/Ubuntu), `dnf install systemtap-sdt-devel` (Fedora)\n- `pip install stapsdt black isort`\n- https://github.com/linux-usdt/libstapsdt\n\n```\nmake -C testdata\ngo test -exec sudo -v ./\n```\n\n## More links and documentation\n\n* https://lwn.net/Articles/753601/\n* https://sourceware.org/systemtap/wiki/UserSpaceProbeImplementation\n* https://bpf.sh/usdt-report-doc/index.html\n* https://bpf.sh/production-breakpoints-doc/index.html\n* https://medium.com/sthima-insights/we-just-got-a-new-super-power-runtime-usdt-comes-to-linux-814dc47e909f\n* https://github.com/goldshtn/linux-tracing-workshop/blob/master/bpf-usdt.md\n\n## License\n\nThe code and docs are released under the [MIT](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmat11%2Fusdt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmat11%2Fusdt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmat11%2Fusdt/lists"}