{"id":26814509,"url":"https://github.com/digimortl/ftrace","last_synced_at":"2026-04-13T22:33:50.666Z","repository":{"id":285043930,"uuid":"956900782","full_name":"digimortl/ftrace","owner":"digimortl","description":"Simple ftrace'ing script","archived":false,"fork":false,"pushed_at":"2025-05-22T08:17:58.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-22T08:58:40.668Z","etag":null,"topics":["bash","bash-scripting","debug","debugging","ftrace","graph","linux","linux-debugging","linux-kernel","shell","shell-scripting","tracing"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/digimortl.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,"zenodo":null}},"created_at":"2025-03-29T04:41:34.000Z","updated_at":"2025-05-22T08:18:02.000Z","dependencies_parsed_at":"2025-03-29T05:26:49.412Z","dependency_job_id":"28dc3b42-f589-480d-9535-288c14b2174e","html_url":"https://github.com/digimortl/ftrace","commit_stats":null,"previous_names":["digimortl/ftrace"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/digimortl/ftrace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digimortl%2Fftrace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digimortl%2Fftrace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digimortl%2Fftrace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digimortl%2Fftrace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digimortl","download_url":"https://codeload.github.com/digimortl/ftrace/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digimortl%2Fftrace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31774028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"last_error":"SSL_read: 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":["bash","bash-scripting","debug","debugging","ftrace","graph","linux","linux-debugging","linux-kernel","shell","shell-scripting","tracing"],"created_at":"2025-03-30T02:15:44.259Z","updated_at":"2026-04-13T22:33:50.643Z","avatar_url":"https://github.com/digimortl.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Simple ftrace script\n\n### Usage\n```bash\n# ./ftrace                                         \nUsage: ftrace start [-g|--graph] [PROGRAM|PID]\nUsage: ftrace stop\n```\n\n### Starting ftrace for a program\n```bash\n# ./ftrace start --graph cat /515f5cfd/a.txt\nfunction_graph tracer enabled\ntracee: cat /515f5cfd/a.txt\ncat /515f5cfd/a.txt: Input/output error\n```\n\n### Starting ftrace for a running process (by PID)\n```bash\n# ./ftrace -g start 1\nfunction_graph tracer enabled\ntracee: PID 1\n```\n\n### Stopping ftrace\n```bash\n# ./ftrace stop\nTracer disabled, check trace.txt file.\n```\n\n### Checking collected traces\n```bash\n# cat trace.txt\n...\n 7)               |  __x64_sys_openat() {\n 7)               |    do_sys_openat2() {\n 7)               |      getname() {\n 7)   0.161 us    |        __audit_reusename();\n 7)               |        getname_flags.part.0() {\n 7)               |          kmem_cache_alloc() {\n...\n 7)   0.165 us    |                      __cond_resched();\n 7)   0.269 us    |                      __ext4_error_inode [ext4]();\n 7)   0.174 us    |                      __brelse();\n 7) + 51.008 us   |                    }\n...\n 7)               |      put_unused_fd() {\n 7)   0.180 us    |        _raw_spin_lock();\n 7)   0.167 us    |        _raw_spin_unlock();\n 7)   0.834 us    |      }\n 7)   0.160 us    |      putname();\n 7) ! 136.884 us  |    }\n 7) ! 137.267 us  |  }\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigimortl%2Fftrace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigimortl%2Fftrace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigimortl%2Fftrace/lists"}