├── .clang-format ├── .editorconfig ├── .github └── workflows │ ├── bpf_generate.yaml │ ├── lint.yaml │ ├── release.yaml │ └── test.yaml ├── .gitignore ├── .goreleaser.yaml ├── .release-please-manifest.json ├── .yamllint ├── CHANGELOG.md ├── Dockerfile.bpf ├── LICENSE ├── Makefile ├── README.md ├── cmd └── xdperf │ └── main.go ├── docs ├── cli.md ├── imgs │ ├── logo.png │ └── logo_with_name.png ├── ja │ └── tips.md └── xdperf.pdf ├── go.mod ├── go.sum ├── lefthook.yaml ├── mise.toml ├── pkg ├── coreelf │ ├── bpf_bpfeb.go │ ├── bpf_bpfeb.o │ ├── bpf_bpfel.go │ ├── bpf_bpfel.o │ └── elf.go ├── guest │ ├── api.go │ ├── go.mod │ ├── go.sum │ ├── goshim │ │ ├── dummy.go │ │ ├── goshim.go │ │ └── mem.go │ ├── memutils.go │ └── surface.go ├── logger │ └── logger.go ├── plugin │ ├── api.go │ ├── generator.go │ ├── goshim.go │ ├── manager.go │ ├── types.go │ └── verifier.go ├── probe │ ├── attachmode.go │ ├── probe.go │ └── xdp.go └── xdperf │ ├── bpf.go │ ├── config.go │ ├── packet.go │ ├── pps.go │ ├── pps_test.go │ ├── server.go │ ├── stats.go │ ├── template.go │ ├── template_test.go │ └── xdperf.go ├── plugins ├── README.md ├── imixudp.go │ ├── config.go │ ├── go.mod │ ├── go.sum │ ├── main.go │ └── packet.go ├── simpleudp.go │ ├── config.go │ ├── go.mod │ ├── go.sum │ ├── main.go │ └── packet.go └── simpleudp.tinygo │ ├── config.go │ ├── go.mod │ ├── go.sum │ ├── main.go │ └── packet.go ├── release-please-config.json ├── scripts ├── install_build_tools.sh ├── install_dev_tools.sh ├── install_lint_tools.sh ├── install_xdperf.sh └── libs │ └── install_utils.sh └── src ├── xdp_prog.c ├── xdp_prog.h ├── xdp_utils.h └── xdpcap.h /.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/.clang-format -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/bpf_generate.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/.github/workflows/bpf_generate.yaml -------------------------------------------------------------------------------- /.github/workflows/lint.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/.github/workflows/lint.yaml -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/.github/workflows/release.yaml -------------------------------------------------------------------------------- /.github/workflows/test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/.github/workflows/test.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/.gitignore -------------------------------------------------------------------------------- /.goreleaser.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/.goreleaser.yaml -------------------------------------------------------------------------------- /.release-please-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | ".": "0.9.0" 3 | } 4 | -------------------------------------------------------------------------------- /.yamllint: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/.yamllint -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Dockerfile.bpf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/Dockerfile.bpf -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/README.md -------------------------------------------------------------------------------- /cmd/xdperf/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/cmd/xdperf/main.go -------------------------------------------------------------------------------- /docs/cli.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/docs/cli.md -------------------------------------------------------------------------------- /docs/imgs/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/docs/imgs/logo.png -------------------------------------------------------------------------------- /docs/imgs/logo_with_name.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/docs/imgs/logo_with_name.png -------------------------------------------------------------------------------- /docs/ja/tips.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/docs/ja/tips.md -------------------------------------------------------------------------------- /docs/xdperf.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/docs/xdperf.pdf -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/go.sum -------------------------------------------------------------------------------- /lefthook.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/lefthook.yaml -------------------------------------------------------------------------------- /mise.toml: -------------------------------------------------------------------------------- 1 | [tools] 2 | go = "1.25.2" 3 | -------------------------------------------------------------------------------- /pkg/coreelf/bpf_bpfeb.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/coreelf/bpf_bpfeb.go -------------------------------------------------------------------------------- /pkg/coreelf/bpf_bpfeb.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/coreelf/bpf_bpfeb.o -------------------------------------------------------------------------------- /pkg/coreelf/bpf_bpfel.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/coreelf/bpf_bpfel.go -------------------------------------------------------------------------------- /pkg/coreelf/bpf_bpfel.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/coreelf/bpf_bpfel.o -------------------------------------------------------------------------------- /pkg/coreelf/elf.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/coreelf/elf.go -------------------------------------------------------------------------------- /pkg/guest/api.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/guest/api.go -------------------------------------------------------------------------------- /pkg/guest/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/guest/go.mod -------------------------------------------------------------------------------- /pkg/guest/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/guest/go.sum -------------------------------------------------------------------------------- /pkg/guest/goshim/dummy.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/guest/goshim/dummy.go -------------------------------------------------------------------------------- /pkg/guest/goshim/goshim.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/guest/goshim/goshim.go -------------------------------------------------------------------------------- /pkg/guest/goshim/mem.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/guest/goshim/mem.go -------------------------------------------------------------------------------- /pkg/guest/memutils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/guest/memutils.go -------------------------------------------------------------------------------- /pkg/guest/surface.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/guest/surface.go -------------------------------------------------------------------------------- /pkg/logger/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/logger/logger.go -------------------------------------------------------------------------------- /pkg/plugin/api.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/plugin/api.go -------------------------------------------------------------------------------- /pkg/plugin/generator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/plugin/generator.go -------------------------------------------------------------------------------- /pkg/plugin/goshim.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/plugin/goshim.go -------------------------------------------------------------------------------- /pkg/plugin/manager.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/plugin/manager.go -------------------------------------------------------------------------------- /pkg/plugin/types.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/plugin/types.go -------------------------------------------------------------------------------- /pkg/plugin/verifier.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/plugin/verifier.go -------------------------------------------------------------------------------- /pkg/probe/attachmode.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/probe/attachmode.go -------------------------------------------------------------------------------- /pkg/probe/probe.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/probe/probe.go -------------------------------------------------------------------------------- /pkg/probe/xdp.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/probe/xdp.go -------------------------------------------------------------------------------- /pkg/xdperf/bpf.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/xdperf/bpf.go -------------------------------------------------------------------------------- /pkg/xdperf/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/xdperf/config.go -------------------------------------------------------------------------------- /pkg/xdperf/packet.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/xdperf/packet.go -------------------------------------------------------------------------------- /pkg/xdperf/pps.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/xdperf/pps.go -------------------------------------------------------------------------------- /pkg/xdperf/pps_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/xdperf/pps_test.go -------------------------------------------------------------------------------- /pkg/xdperf/server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/xdperf/server.go -------------------------------------------------------------------------------- /pkg/xdperf/stats.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/xdperf/stats.go -------------------------------------------------------------------------------- /pkg/xdperf/template.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/xdperf/template.go -------------------------------------------------------------------------------- /pkg/xdperf/template_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/xdperf/template_test.go -------------------------------------------------------------------------------- /pkg/xdperf/xdperf.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/pkg/xdperf/xdperf.go -------------------------------------------------------------------------------- /plugins/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/plugins/README.md -------------------------------------------------------------------------------- /plugins/imixudp.go/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/plugins/imixudp.go/config.go -------------------------------------------------------------------------------- /plugins/imixudp.go/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/plugins/imixudp.go/go.mod -------------------------------------------------------------------------------- /plugins/imixudp.go/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/plugins/imixudp.go/go.sum -------------------------------------------------------------------------------- /plugins/imixudp.go/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/plugins/imixudp.go/main.go -------------------------------------------------------------------------------- /plugins/imixudp.go/packet.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/plugins/imixudp.go/packet.go -------------------------------------------------------------------------------- /plugins/simpleudp.go/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/plugins/simpleudp.go/config.go -------------------------------------------------------------------------------- /plugins/simpleudp.go/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/plugins/simpleudp.go/go.mod -------------------------------------------------------------------------------- /plugins/simpleudp.go/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/plugins/simpleudp.go/go.sum -------------------------------------------------------------------------------- /plugins/simpleudp.go/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/plugins/simpleudp.go/main.go -------------------------------------------------------------------------------- /plugins/simpleudp.go/packet.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/plugins/simpleudp.go/packet.go -------------------------------------------------------------------------------- /plugins/simpleudp.tinygo/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/plugins/simpleudp.tinygo/config.go -------------------------------------------------------------------------------- /plugins/simpleudp.tinygo/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/plugins/simpleudp.tinygo/go.mod -------------------------------------------------------------------------------- /plugins/simpleudp.tinygo/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/plugins/simpleudp.tinygo/go.sum -------------------------------------------------------------------------------- /plugins/simpleudp.tinygo/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/plugins/simpleudp.tinygo/main.go -------------------------------------------------------------------------------- /plugins/simpleudp.tinygo/packet.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/plugins/simpleudp.tinygo/packet.go -------------------------------------------------------------------------------- /release-please-config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/release-please-config.json -------------------------------------------------------------------------------- /scripts/install_build_tools.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/scripts/install_build_tools.sh -------------------------------------------------------------------------------- /scripts/install_dev_tools.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/scripts/install_dev_tools.sh -------------------------------------------------------------------------------- /scripts/install_lint_tools.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/scripts/install_lint_tools.sh -------------------------------------------------------------------------------- /scripts/install_xdperf.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/scripts/install_xdperf.sh -------------------------------------------------------------------------------- /scripts/libs/install_utils.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/scripts/libs/install_utils.sh -------------------------------------------------------------------------------- /src/xdp_prog.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/src/xdp_prog.c -------------------------------------------------------------------------------- /src/xdp_prog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/src/xdp_prog.h -------------------------------------------------------------------------------- /src/xdp_utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/src/xdp_utils.h -------------------------------------------------------------------------------- /src/xdpcap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/takehaya/xdperf/HEAD/src/xdpcap.h --------------------------------------------------------------------------------