{"id":15056960,"url":"https://github.com/danteslimbo/elysium","last_synced_at":"2026-04-02T18:44:51.795Z","repository":{"id":242240707,"uuid":"809039842","full_name":"danteslimbo/elysium","owner":"danteslimbo","description":"An easy epbf probe tool.","archived":false,"fork":false,"pushed_at":"2024-06-12T07:05:27.000Z","size":817,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T16:33:58.566Z","etag":null,"topics":["ebpf"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danteslimbo.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":"2024-06-01T14:12:15.000Z","updated_at":"2024-06-12T06:57:37.000Z","dependencies_parsed_at":"2024-06-12T09:19:37.738Z","dependency_job_id":"9fe7a16b-df2d-4292-b0d6-686a55602b20","html_url":"https://github.com/danteslimbo/elysium","commit_stats":null,"previous_names":["danteslimbo/elysium"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/danteslimbo/elysium","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danteslimbo%2Felysium","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danteslimbo%2Felysium/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danteslimbo%2Felysium/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danteslimbo%2Felysium/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danteslimbo","download_url":"https://codeload.github.com/danteslimbo/elysium/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danteslimbo%2Felysium/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31313270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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"],"created_at":"2024-09-24T21:59:15.054Z","updated_at":"2026-04-02T18:44:51.771Z","avatar_url":"https://github.com/danteslimbo.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elysium\n## About elysium\n`elysium` is a simple tool to stat arbitrary kprobes.\n\nTODO:\n\n- [ ] uprobe support.\n- [ ] more filter options.\n\n## TL;DR\nUsage:\n```bash\n./elysium -h\nUsage: ./elysium [options]\n    Available options:\n  -h, --help              show help\n  -i, --interval uint32   set monitor time in seconds\n  -k, --kprobe string     kprobe to be monitored\n  -p, --pid uint32        filter pid\n  -s, --self elysium      show stat of elysium itself, default `false`\n  -t, --tid uint32        filter tid\n  -v, --version           show version\n```\nExample, stat `__x64_sys_read` for 3 seconds,\nand omit the `__x64_sys_read` called from elysium.\n```bash\nsudo ./elysium -k __x64_sys_read -i 3 \n\nFetching __x64_sys_read for 3 seconds...\nRecords:\nTid     Pid     Comm    Count   Ave Latency\n372     372     systemd-journal 16      8699\n759     750     gmain   8       2417\n573     569     multipathd      4       4231\n1734246 1734246 sshd    1       4544\n1109    806     containerd      1       4031\n```\nFilter by pid:\n```bash\nsudo ./elysium -k __x64_sys_read -i 3  -p $(pidof containerd)\n\nFetching __x64_sys_read for 3 seconds...\nRecords:\nTid     Pid     Comm    Count   Ave Latency\n895     806     containerd      4       2786\n```\n\n## FAQ\n1. Why not BCC funccount?\n\nDon't want to install BCC on servers.\n\n2. Why not bpftrace?\n\nWe cannot pass a kprobe to be tracked to bpftrace scripts.\nWhen I want to trace and stat different kprobes by one script,\nI have to pass the kprobe to the bash script and render a bpftrace script.\nThis is also why I develop `elysium`.\n\n```bash\n#!/bin/bash\n\nif [ -z \"$1\" ]; then\n  echo \"Usage: $0 \u003ckprobe_name\u003e\"\n  exit 1\nfi\n\nKPROBE_NAME=$1\n\ncat \u003c\u003cEOL \u003e trace.bt\n#!/usr/bin/env bpftrace\n\nBEGIN\n{\n  printf(\"Tracing kprobe %s\\\\n\", \"$KPROBE_NAME\");\n}\n\nkprobe:$KPROBE_NAME\n{\n  @start[comm, tid] = nsecs;\n  @result[comm, tid] = count();\n}\n\nkretprobe:$KPROBE_NAME\n{\n  @delta[comm, tid] = nsecs - @start[comm, tid];\n  delete(@start[comm, tid]);\n}\n\nEND\n{\n  clear(@start);\n}\nEOL\n\nchmod +x trace.bt\n\nbpftrace ./trace.bt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanteslimbo%2Felysium","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanteslimbo%2Felysium","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanteslimbo%2Felysium/lists"}