{"id":15057000,"url":"https://github.com/asphaltt/ethtoolsnoop","last_synced_at":"2025-04-10T05:07:11.469Z","repository":{"id":217509275,"uuid":"744051943","full_name":"Asphaltt/ethtoolsnoop","owner":"Asphaltt","description":"ethtoolsnoop is an ethtool tracing tool based on Go+eBPF. License Apache 2.0","archived":false,"fork":false,"pushed_at":"2024-01-20T09:49:34.000Z","size":769,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T05:07:04.120Z","etag":null,"topics":["ebpf","ethtool","ethtoolsnoop"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Asphaltt.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-01-16T14:36:09.000Z","updated_at":"2024-12-10T12:42:55.000Z","dependencies_parsed_at":"2024-01-16T23:32:05.712Z","dependency_job_id":"e0f088e5-4d91-4311-a6eb-46cbebb76f85","html_url":"https://github.com/Asphaltt/ethtoolsnoop","commit_stats":null,"previous_names":["asphaltt/ethtoolsnoop"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asphaltt%2Fethtoolsnoop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asphaltt%2Fethtoolsnoop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asphaltt%2Fethtoolsnoop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Asphaltt%2Fethtoolsnoop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Asphaltt","download_url":"https://codeload.github.com/Asphaltt/ethtoolsnoop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248161273,"owners_count":21057555,"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","ethtool","ethtoolsnoop"],"created_at":"2024-09-24T21:59:51.999Z","updated_at":"2025-04-10T05:07:11.434Z","avatar_url":"https://github.com/Asphaltt.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ethtoolsnoop\n\n`ethtoolsnoop` is a tool for tracing the execution of `ethtool`.\n\n## Use example\n\n```bash\n# echo Execute `ethtool -i enp0s1; ethtool -l enp0s1; ethtool -g enp0s1` in another terminal.\n# ./ethtoolsnoop\nInterface             PID:Process                          IOCTL_CMD/GENL_CMD             ethtool args\nenp0s1              11198:ethtool(parent 6373:zsh)         ETHTOOL_GDRVINFO               -d|--register-dump(Do a register dump), -e|--eeprom-dump(Do a EEPROM dump), -i|--driver(Show driver information)\nenp0s1              11199:ethtool(parent 6373:zsh)         ETHTOOL_MSG_CHANNELS_GET       -l|--show-channels(Query Channels)\nenp0s1              11200:ethtool(parent 6373:zsh)         ETHTOOL_MSG_RINGS_GET          -g|--show-ring(Query RX/TX ring parameters)\n```\n\nIn the output:\n\n- First column is the interface name.\n- Second column is the PID and process name of the process that called\n  `ethtool`'s `ioctl()` syscall or sent `ethtool`'s genetlink message, and the\n  PID and process name of the parent process if the tracee process is `ethtool`.\n- Third column is the underneath command for kernel to execute, including ways\n  of `ioctl()` syscall and genetlink message.\n- Fourth column is the arguments of `ethtool` command, which may be\n  corresponding to the third column. *But this column maybe incomplete.*\n\n## Download\n\nPlease download the latest release from this repo's release page.\n\n`ethtoolsnoop` is expected to run on Linux kernel 5.2 and later with BTF support.\n\n## Intenals\n\n`ethtoolsnoop` uses `kprobe` on `dev_ethtool()` to trace the execution of\n`ethtool`'s `ioctl()` syscall.\n\nAnd it uses `kprobe` on `ethnl_default_doit()`, `ethnl_parse_header_dev_get()`\nand `kretprobe` on `ethnl_parse_header_dev_get()` to trace the execution of\n`ethtool`'s genetlink message.\n\n## License\n\n`ethtoolsnoop` is licensed under the Apache 2.0 license, and its bpf code is\nlicensed under the GPL 2.0 license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasphaltt%2Fethtoolsnoop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasphaltt%2Fethtoolsnoop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasphaltt%2Fethtoolsnoop/lists"}