{"id":19548846,"url":"https://github.com/sbcd90/tcp-hello-world-kernel-trace","last_synced_at":"2025-06-14T06:03:05.789Z","repository":{"id":146466586,"uuid":"466816972","full_name":"sbcd90/tcp-hello-world-kernel-trace","owner":"sbcd90","description":"This is a simple project which shows how to use Linux Kernel static tracepoints to trace details of tcp packets","archived":false,"fork":false,"pushed_at":"2022-03-07T05:38:55.000Z","size":181,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T06:31:46.816Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sbcd90.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-06T18:07:30.000Z","updated_at":"2022-03-06T18:16:11.000Z","dependencies_parsed_at":"2023-07-17T16:34:47.204Z","dependency_job_id":null,"html_url":"https://github.com/sbcd90/tcp-hello-world-kernel-trace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sbcd90/tcp-hello-world-kernel-trace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbcd90%2Ftcp-hello-world-kernel-trace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbcd90%2Ftcp-hello-world-kernel-trace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbcd90%2Ftcp-hello-world-kernel-trace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbcd90%2Ftcp-hello-world-kernel-trace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbcd90","download_url":"https://codeload.github.com/sbcd90/tcp-hello-world-kernel-trace/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbcd90%2Ftcp-hello-world-kernel-trace/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259768512,"owners_count":22908228,"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":[],"created_at":"2024-11-11T03:57:11.599Z","updated_at":"2025-06-14T06:03:05.784Z","avatar_url":"https://github.com/sbcd90.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"tcp-hello-world-kernel-tracing\n==============================\n\nThis is a simple project which shows how to use Linux Kernel static tracepoints to trace details of tcp packets.\n\nC++ files\n=========\n\n- [HelloServer.cpp](src/HelloServer.cpp)\n- [HelloClient.cpp](src/HelloClient.cpp)\n\nTracepoints used\n================\n\n```\nevents/net/netif_receive_skb/enable\nevents/tcp/enable\n```\n\nExecute\n=======\n\n```\ncd /sys/kernel/debug/tracing\necho 0 \u003e events/enable\necho 1 \u003e events/net/netif_receive_skb/enable\necho 0 \u003e trace\necho nop \u003e current_tracer (other options function, function_graph)\necho 1 \u003e tracing_on\n\n./tcp_hello_server 8080\n./tcp_hello_client 127.0.0.1 8080\n\necho 0 \u003e tracing_on\ncat trace | head -100\n```\n\nTraces\n======\n\n- [netif_receive_skb trace](trace/net_receive_skb_trace.txt)\n- [tcp trace](trace/tcp_trace.txt)\n\nNext steps\n==========\n\n- [Analyze a packet's journey](https://blog.yadutaf.fr/2017/07/28/tracing-a-packet-journey-using-linux-tracepoints-perf-ebpf/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbcd90%2Ftcp-hello-world-kernel-trace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbcd90%2Ftcp-hello-world-kernel-trace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbcd90%2Ftcp-hello-world-kernel-trace/lists"}